Repository navigation
Fixes/space removed between dc member and keyword - #30
Merged
hschlichter merged 1 commit intoOct 25, 2017
Merged
Conversation
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
suggested changes
Oct 25, 2017
hschlichter
left a comment
There was a problem hiding this comment.
Besides the stylistic comment, it looks good. But please fix :-)
| */ | ||
| static_inline bool chunk_is_keyword(chunk_t *pc) | ||
| { | ||
| return(find_keyword_type(pc->text(), strlen(pc->text())) != CT_WORD); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Unfortunately it's the style chosen and enforced by upstream.
There was a problem hiding this comment.
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.
hschlichter
approved these changes
Oct 25, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.