This is an archive of the discontinued LLVM Phabricator instance.

Add clang-tidy -header-filter option
ClosedPublic

Authored by alexfh on May 2 2014, 4:16 AM.

Details

Summary

Add clang-tidy -header-filter option to specify from which headers we
want diagnostics to be printed. By default we don't print diagnostics from
headers. We always print diagnostics from the main file of each translation
unit.

Diff Detail

Event Timeline

alexfh updated this revision to Diff 9031.May 2 2014, 4:16 AM
alexfh retitled this revision from to Add clang-tidy -header-filter option.
alexfh updated this object.
alexfh edited the test plan for this revision. (Show Details)
alexfh added a reviewer: djasper.
alexfh added a subscriber: Unknown Object (MLST).
klimek added a subscriber: klimek.May 4 2014, 11:59 AM
klimek added inline comments.
clang-tidy/ClangTidyDiagnosticConsumer.cpp
235

Isn't usually the spelling location the problem?

alexfh updated this revision to Diff 9076.May 5 2014, 7:54 AM

Added a FIXME regarding the type of location used for filtering. PTAL.

klimek accepted this revision.May 5 2014, 7:59 AM
klimek added a reviewer: klimek.

lg

This revision is now accepted and ready to land.May 5 2014, 7:59 AM
alexfh closed this revision.May 5 2014, 8:01 AM