Skip to content
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

ignore space after a semi colon #43

Merged
merged 2 commits into from
Dec 11, 2015
Merged

Conversation

wjwwood
Copy link
Contributor

@wjwwood wjwwood commented Dec 11, 2015

Sometimes it makes sense to not have whitespace after a semicolon, e.g. if (true) {return foo;}. Other times it is appropriate, e.g. #define FOO(arg) bar(); foo(arg); baz();. Since uncrustify cannot know when it is appropriate I propose we tell it to ignore this rule and we can leave this to the developer's discretion. Since it is ignored, existing code should not be affected, but I could go through and find places it really should not have space after it, but I don't think it matters that much.

@wjwwood wjwwood added in progress Actively being worked on (Kanban column) in review Waiting for review (Kanban column) and removed in progress Actively being worked on (Kanban column) labels Dec 11, 2015
@dirk-thomas
Copy link
Contributor

lgtm

wjwwood added a commit that referenced this pull request Dec 11, 2015
@wjwwood wjwwood merged commit e1a869c into master Dec 11, 2015
@wjwwood wjwwood removed the in review Waiting for review (Kanban column) label Dec 11, 2015
@wjwwood wjwwood deleted the ignore_space_after_semicolon branch December 11, 2015 01:35
kenji-miyake referenced this pull request in kenji-miyake/ament_lint Oct 20, 2021
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.

None yet

2 participants