Skip to content

Update Doxygen config file and fix Doxygen warnings #2324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 18, 2018

Conversation

LaszloLango
Copy link
Contributor

A lot of warnings remained hibben because 'EXTRACT_ALL' was previously set to YES.

JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]

@LaszloLango LaszloLango added bug Undesired behaviour documentation Related to documentation labels May 11, 2018
@LaszloLango
Copy link
Contributor Author

@zherczeg there are some TODOs in this patch where I was not sure what would be the appropriate comment. Could you help me to fix them?

@@ -55,6 +55,9 @@

/**
* Get next object in list of objects with same generation.
*
* @return pointer to the next ecma-object
* NULL - if there is not next ecma-object
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not -> no

#define EPSILON 0.0000001

#if CONFIG_ECMA_NUMBER_TYPE == CONFIG_ECMA_NUMBER_FLOAT64
/**
* Number.MAX_VALUE and Number.MIN_VALUE exponent parts while using 64 bit float representation
* Number.MAX_VALUE exponent parts while using 64 bit float representation.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parts while -> part when
Similar comments below.

@@ -512,6 +512,8 @@ ecma_make_uint32_value (uint32_t uint32_number) /**< uint32 number to be encoded

/**
* String value constructor
*
* @return ecma-value containing the constructed string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not construct a string. I think this comment is better:
@return ecma-value representation of the string argument
similar cases below

@@ -340,6 +360,9 @@ ecma_get_property_list (const ecma_object_t *object_p) /**< object or lexical en

/**
* Get lexical environment's 'provideThis' property
*
* @return true - if has 'this'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it has this property

@@ -125,6 +125,11 @@ ecma_builtin_number_prototype_helper_to_string (lit_utf8_byte_t *digits_p, /**<
return (lit_utf8_size_t) (p - to_digits_p);
} /* ecma_builtin_number_prototype_helper_to_string */

/**
* Helper function to convert floating point number in binary format to string.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Helper function to convert a binary floating point number to string

*
* @param context_p TODO
* @param byte TODO
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Append byte to the end of the current byte code stream.

*
* @param page_p TODO
* @param offset TODO
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forward iterator: move to the next byte code

* @param page_p TODO
* @param offset TODO
* @param real_offset TODO
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forward iterator: move to the next byte code. Also updates the offset of the previous byte code.

* TODO
*
* @param destination TODO
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read literal index from the byte code stream into destination.

* When we are able to construct a function with similar speed,
* we can remove this macro. */
* we can remove this macro.
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get literal value by literal index.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

A lot of warnings remained hibben because 'EXTRACT_ALL' was previously set to YES.

JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]
@LaszloLango LaszloLango changed the title [WIP] Update Doxygen config file and fix Doxygen warnings Update Doxygen config file and fix Doxygen warnings May 16, 2018
@LaszloLango
Copy link
Contributor Author

@zherczeg thanks for the review, I've updated the PR.

/**
* One character long token (e.g. comma).
*
* @param char1 character
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we use at-param with macro functions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we do. There are a few examples in the current master. Unfortunately we cannot use inline comments for macro functions parameters.

Copy link
Member

@zherczeg zherczeg May 17, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few examples do not make a rule. I found far less positive examples than negative, so I would rather remove these.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doxygen will warn if I remove these.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

Copy link
Member

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yichoi
Copy link
Contributor

yichoi commented May 18, 2018

LGTM

@yichoi yichoi merged commit 64b16bf into jerryscript-project:master May 18, 2018
@LaszloLango LaszloLango deleted the update-docs branch September 20, 2018 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesired behaviour documentation Related to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants