[PATCH] Allow per-file clang-tidy options.

Alexander Kornienko alexfh at google.com
Sat May 31 14:51:56 PDT 2014


Hi klimek,

This patch makes it possible for clang-tidy clients to provide
different options for different translation units. The option, which doesn't
make sense to be file-dependent, was moved to a separate ClangTidyGlobalOptions
struct. Added parsing of ClangTidyOptions.

http://reviews.llvm.org/D3979

Files:
  clang-tidy/ClangTidy.cpp
  clang-tidy/ClangTidy.h
  clang-tidy/ClangTidyDiagnosticConsumer.cpp
  clang-tidy/ClangTidyDiagnosticConsumer.h
  clang-tidy/ClangTidyOptions.cpp
  clang-tidy/ClangTidyOptions.h
  clang-tidy/tool/ClangTidyMain.cpp
  unittests/clang-tidy/ClangTidyOptionsTest.cpp
  unittests/clang-tidy/ClangTidyTest.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3979.9990.patch
Type: text/x-patch
Size: 27509 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140531/f1cf1a57/attachment.bin>


More information about the cfe-commits mailing list