[PATCH] D54141: [clang-tidy] add deduplication support for run-clang-tidy.py
Jonas Toth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 6 02:20:00 PST 2018
JonasToth created this revision.
JonasToth added reviewers: alexfh, aaron.ballman, hokein, sammccall, lebedev.ri.
Herald added subscribers: cfe-commits, xazax.hun, mgorny.
`run-clang-tidy.py` is the parallel executor for `clang-tidy`. Due to the
common header-inclusion problem in C++/C diagnostics that are usually emitted
in class declarations are emitted every time their corresponding header is
This results in a *VERY* high amount of spam and renders the output basically
useles for bigger projects.
With this patch `run-clang-tidy.py` gets another option that enables
deduplication of all emitted diagnostics. This is achieved with parsing the
diagnostic output from each `clang-tidy` invocation, identifying warnings and
error and parsing until the next occurence of an error or warning. The collected
diagnostic is hashed and stored in a set. Every new diagnostic will only be
emitted if its hash is not in the set already.
rCTE Clang Tools Extra
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 40045 bytes
Desc: not available
More information about the cfe-commits