[PATCH] [clang-tidy] Default options in modules.

Alexander Kornienko alexfh at google.com
Wed Oct 15 07:14:16 PDT 2014


Hi djasper,

This patch allows modules to specify default options for the checks
defined in them. This way a sufficiently configurable check can be registered in
multiple modules with different default options. E.g. the SpacesBeforeComments
option may be set to 1 for the "llvm-namespace-comments" check and to 2 for the
"google-readability-namespace-comment" check without modifying or extending the
check code.

This patch also registers the google-readability-braces-around-statements check
with suitable defaults.

http://reviews.llvm.org/D5798

Files:
  clang-tidy/ClangTidyModule.cpp
  clang-tidy/ClangTidyModule.h
  clang-tidy/ClangTidyOptions.cpp
  clang-tidy/ClangTidyOptions.h
  clang-tidy/google/GoogleTidyModule.cpp
  clang-tidy/readability/NamespaceCommentCheck.cpp
  test/clang-tidy/google-module.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5798.14940.patch
Type: text/x-patch
Size: 5650 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141015/a8506876/attachment.bin>


More information about the cfe-commits mailing list