Fix false positive readability/braces warning for trailing comma on c… by jordancharest · Pull Request #229 · cpplint/cpplint · GitHub
Skip to content

Fix false positive readability/braces warning for trailing comma on c…#229

Closed
jordancharest wants to merge 1 commit into
cpplint:developfrom
jordancharest:patch-1
Closed

Fix false positive readability/braces warning for trailing comma on c…#229
jordancharest wants to merge 1 commit into
cpplint:developfrom
jordancharest:patch-1

Conversation

@jordancharest

Copy link
Copy Markdown

…oncepts.

Currently a readability/braces error is triggered for C++20 concepts. This change ignores trailing semi-colons that follow concept definitions.

@jordancharest

Copy link
Copy Markdown
Author

@aaronliu0130 aaronliu0130 linked an issue Mar 31, 2024 that may be closed by this pull request

@aaronliu0130 aaronliu0130 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would you kindly write some tests? Also, I doubt that this would work on multi-line concepts. Maybe we could take some inspiration from structs' detection.

@aaronliu0130

Copy link
Copy Markdown
Member

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.

C++20 concepts require a semicolon after the braces

2 participants