[PATCH] Refactored Clang-tidy for better reusability.

Alexander Kornienko alexfh at google.com
Fri Dec 27 14:25:38 PST 2013


Hi klimek,

Made ClangTidyAction more slim and moved its declaration to header to
allow easy creation of Clang-tidy ASTConsumer. Don't derive from
clang::ento::AnalysisAction, use clang::ento::CreateAnalysisConsumer instead
(I'll propose making this function a part of a public API in a separate patch).

Use MultiplexConsumer instead of a custom class.

Don't re-filter checkers list for each TU.

http://llvm-reviews.chandlerc.com/D2481

Files:
  clang-tidy/ClangTidy.cpp
  clang-tidy/ClangTidy.h
  clang-tidy/ClangTidyDiagnosticConsumer.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2481.1.patch
Type: text/x-patch
Size: 11745 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131227/efa22bfa/attachment.bin>


More information about the cfe-commits mailing list