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

cpplint false positive [readability/braces] with requires expression (C++20) #752

Open
martinzink opened this issue Jan 12, 2023 · 0 comments
Labels

Comments

@martinzink
Copy link

The new requires expression (since C++20) generates false positives
e.g.
concept Addable = requires(T x) { x + x; }; generates You don't need a ; after a } [readability/braces] [4]


This repository publishes copies of Google's internal style guides to
assist developers working on Google owned and originated open source
projects. Development on these guides does not take place here.

Substantive changes to the style rules and suggested new rules should
not be submitted as issues in this repository. Material changes must be
proposed, discussed, and approved on the internal forums first.

If an issue points out a simple mistake — a typo, a broken link, etc. —
then a correction might be made. However there is no commitment to do
so. Issues are normally closed without comment.

@martinzink martinzink changed the title cpplint [readability/braces] false positive with requires expression (C++20) cpplint false positive [readability/braces] with requires expression (C++20) Jan 12, 2023
martinzink added a commit to martinzink/cpplint that referenced this issue Jan 12, 2023
martinzink added a commit to martinzink/cpplint that referenced this issue Jan 12, 2023
@vapier vapier added the cpplint label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants