[PATCH] Implemented clang-tidy-check-specific options.

Alexander Kornienko alexfh at google.com
Wed Sep 10 10:08:44 PDT 2014


This is another variant of doing the same. Here we pass check name and context
via constructor arguments. This way we need to delegate the corresponding
constructor in each check, but we reduce the ClangTidyCheck API significantly
and allow getting options in the constructor, which is more straightforward.

http://reviews.llvm.org/D5296

Files:
  clang-tidy/ClangTidy.cpp
  clang-tidy/ClangTidy.h
  clang-tidy/ClangTidyModule.cpp
  clang-tidy/ClangTidyModule.h
  clang-tidy/ClangTidyOptions.cpp
  clang-tidy/ClangTidyOptions.h
  clang-tidy/google/AvoidCStyleCastsCheck.h
  clang-tidy/google/ExplicitConstructorCheck.h
  clang-tidy/google/ExplicitMakePairCheck.h
  clang-tidy/google/IntegerTypesCheck.h
  clang-tidy/google/MemsetZeroLengthCheck.h
  clang-tidy/google/NamedParameterCheck.h
  clang-tidy/google/OverloadedUnaryAndCheck.h
  clang-tidy/google/StringReferenceMemberCheck.h
  clang-tidy/google/UnnamedNamespaceInHeaderCheck.h
  clang-tidy/google/UsingNamespaceDirectiveCheck.h
  clang-tidy/llvm/HeaderGuardCheck.h
  clang-tidy/llvm/IncludeOrderCheck.h
  clang-tidy/llvm/NamespaceCommentCheck.cpp
  clang-tidy/llvm/NamespaceCommentCheck.h
  clang-tidy/llvm/TwineLocalCheck.cpp
  clang-tidy/llvm/TwineLocalCheck.h
  clang-tidy/misc/ArgumentCommentCheck.cpp
  clang-tidy/misc/ArgumentCommentCheck.h
  clang-tidy/misc/BoolPointerImplicitConversion.h
  clang-tidy/misc/RedundantSmartptrGet.h
  clang-tidy/misc/SwappedArgumentsCheck.h
  clang-tidy/misc/UndelegatedConstructor.h
  clang-tidy/misc/UnusedRAII.h
  clang-tidy/misc/UseOverride.h
  clang-tidy/tool/ClangTidyMain.cpp
  clang-tidy/utils/HeaderGuard.h
  unittests/clang-tidy/ClangTidyDiagnosticConsumerTest.cpp
  unittests/clang-tidy/ClangTidyTest.h
  unittests/clang-tidy/LLVMModuleTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5296.13550.patch
Type: text/x-patch
Size: 35578 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140910/85151bd2/attachment.bin>


More information about the cfe-commits mailing list