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
We used to use checkpatch.pl, but it's for C, not C++, and doesn't follow the style conventions we want.
clang-tidy src/**/*.cpp -- -Iinclude -extra-arg=-std=c++20 gives lots of false positives (I might be using it wrong), but might be a good starting point for CI or at least a manual analysis.
Most files will need clang-formatting, plus manual work to get rid of old conventions like "blank line after declaration" and "no braces for single-statement control blocks".
The text was updated successfully, but these errors were encountered:
Rangi42
added
the
meta
This isn't related to the tools directly: repo organization, maintainership...
label
Nov 8, 2023
Rangi42
changed the title
Check code with clang-format and/or clang-tidy, not checkpatch.pl
CI should check code with clang-format and/or clang-tidyAug 7, 2024
We used to use checkpatch.pl, but it's for C, not C++, and doesn't follow the style conventions we want.
clang-tidy src/**/*.cpp -- -Iinclude -extra-arg=-std=c++20
gives lots of false positives (I might be using it wrong), but might be a good starting point for CI or at least a manual analysis.Most files will need
clang-format
ting, plus manual work to get rid of old conventions like "blank line after declaration" and "no braces for single-statement control blocks".The text was updated successfully, but these errors were encountered: