llvm-project/clang-tools-extra/clang-tidy/google
Alexander Kornienko 1efc425551 [clang-tidy] Default options in modules.
Summary:
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.

Reviewers: djasper

Reviewed By: djasper

Subscribers: curdeius, cfe-commits

Differential Revision: http://reviews.llvm.org/D5798

llvm-svn: 219923
2014-10-16 11:27:57 +00:00
..
AvoidCStyleCastsCheck.cpp [clang-tidy] Clarify a comment. 2014-10-01 15:50:31 +00:00
AvoidCStyleCastsCheck.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
CMakeLists.txt Try to pacify dash-using linux distros with a very old-school shell variable compare. 2014-09-22 21:01:04 +00:00
ExplicitConstructorCheck.cpp Move google-explicit-constructor check to a separate source file. 2014-06-18 09:33:46 +00:00
ExplicitConstructorCheck.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
ExplicitMakePairCheck.cpp [clang-tidy] Eliminate inline copies of InTemplateInstantiation matcher. 2014-09-03 13:30:28 +00:00
ExplicitMakePairCheck.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
GoogleTidyModule.cpp [clang-tidy] Default options in modules. 2014-10-16 11:27:57 +00:00
IntegerTypesCheck.cpp Remove unused AST matcher. 2014-09-02 09:46:43 +00:00
IntegerTypesCheck.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
Makefile
MemsetZeroLengthCheck.cpp [clang-tidy] Use new ASTMatchers to identify template instantiations instead of copying it everywhere. 2014-09-03 13:21:51 +00:00
MemsetZeroLengthCheck.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
NamedParameterCheck.cpp Clang-tidy google-readability-function check: don't warn on gmock 2014-09-25 08:16:24 +00:00
NamedParameterCheck.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
OverloadedUnaryAndCheck.cpp [clang-tidy] Add a checker that flags all instances of overloaded unary operator& 2014-07-15 12:48:14 +00:00
OverloadedUnaryAndCheck.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
StringReferenceMemberCheck.cpp [clang-tidy] Use new ASTMatchers to identify template instantiations instead of copying it everywhere. 2014-09-03 13:21:51 +00:00
StringReferenceMemberCheck.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
TodoCommentCheck.cpp [clang-tidy] Allow space between "TODO" and "(user)" 2014-10-05 23:40:30 +00:00
TodoCommentCheck.h Provide user name in ClangTidyOptions. 2014-09-24 18:36:03 +00:00
UnnamedNamespaceInHeaderCheck.cpp [clang-tidy] Add namespaces checkers. 2014-07-16 14:16:56 +00:00
UnnamedNamespaceInHeaderCheck.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
UsingNamespaceDirectiveCheck.cpp [clang-tidy] Add namespaces checkers. 2014-07-16 14:16:56 +00:00
UsingNamespaceDirectiveCheck.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00