Add IgnoreMainLikeFunctions to the per file config. This can be extended for new options added to the check easily.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
There's already tests for loading the individual styles from other files, I'm sure I could extend that
Comment Actions
I'd appreciate that, otherwise the changes here all seem reasonable to me so far (though if you wanted to split the formatting changes out into an NFC, those don't even require a review).
Comment Actions
Removed unnecessary formatting changes
Added test cases.
With the test cases I removed some cases that actually were never tested due to the order in which clang-tidy handles applying configurations. Right now there just isnt the infrastructure needed to fully test those cases.
Comment Actions
LGTM aside from some tiny nits!
clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp | ||
---|---|---|
175 | Don't use auto when the type isn't spelled out in the initialization. | |
clang-tools-extra/test/clang-tidy/checkers/readability-identifier-naming-multiple-styles.cpp | ||
63 ↗ | (On Diff #303198) | Should end the newline back to the end of the file. |
Don't use auto when the type isn't spelled out in the initialization.