Skip to content

Fixes/space removed between dc member and keyword - #30

Merged
hschlichter merged 1 commit into
masterfrom
fixes/space-removed-between-dcmember-between-keyword
Oct 25, 2017
Merged

hschlichter merged 1 commit into
masterfrom
fixes/space-removed-between-dcmember-between-keyword

Conversation

@KalyanaChakravarthi

Copy link
Copy Markdown

Fixes issues 1249 and 1005. 1288 issue is caused by the previous fix for 1005.
Corrected the fix for 1005, so that issue 1288 will be resolved.

Fixes issues 1249 and 1005. 1288 issue is caused by the previous fix for 1005.
Corrected the fix for 1005, so that issue 1288 will be resolved.

@hschlichter hschlichter left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Besides the stylistic comment, it looks good. But please fix :-)

Comment thread src/chunk_list.h
*/
static_inline bool chunk_is_keyword(chunk_t *pc)
{
return(find_keyword_type(pc->text(), strlen(pc->text())) != CT_WORD);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Small stylistic comment. You shouldn't wrap it in parens unless it has semantic value. Which it doesn't do in this case.

When quickly scanning the code, you would think that return is a function.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unfortunately it's the style chosen and enforced by upstream.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hmm ... ok. Makes me a bit worried that it actually adds the parens. But if this is the style for the uncrustify repo, then thats how it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants