This changes the behavious of RenamerClangTidyCheck based checks by grouping declarations of the same thing into 1 warning where it is first declared.
This cleans up clang-tidy output and prevents issues where 1 fix-it couldn't be applied, yet all other warnings(and fix-its) for the same declaration would be applied.
The old behaviour of forward declaring a class without defining it isn't affected, i.e. no warnings will be emitted for that case.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM!
clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.cpp | ||
---|---|---|
379 | No need to introduce a new local scope here (there's no RAII for it to matter). |
No need to introduce a new local scope here (there's no RAII for it to matter).