[PATCH] Add clang-tidy -header-filter option

Alexander Kornienko alexfh at google.com
Fri May 2 04:16:47 PDT 2014


Hi djasper,

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.

http://reviews.llvm.org/D3590

Files:
  clang-tidy/ClangTidyDiagnosticConsumer.cpp
  clang-tidy/ClangTidyDiagnosticConsumer.h
  clang-tidy/ClangTidyOptions.h
  clang-tidy/tool/ClangTidyMain.cpp
  test/clang-tidy/Inputs/
  test/clang-tidy/Inputs/file-filter/
  test/clang-tidy/Inputs/file-filter/header1.h
  test/clang-tidy/Inputs/file-filter/header2.h
  test/clang-tidy/file-filter.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3590.9031.patch
Type: text/x-patch
Size: 7351 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140502/1af864f3/attachment.bin>


More information about the cfe-commits mailing list