Add IgnoreMainLikeFunctions to the per file config. This can be extended for new options added to the check easily.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
There's already tests for loading the individual styles from other files, I'm sure I could extend that
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).
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.
LGTM aside from some tiny nits!
clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp | ||
---|---|---|
172 | 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 | 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.