You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
The new
requires
expression (since C++20) generates false positivese.g.
concept Addable = requires(T x) { x + x; };
generatesYou 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.
The text was updated successfully, but these errors were encountered: