9#include "../ClangTidy.h"
10#include "../ClangTidyModule.h"
11#include "../ClangTidyModuleRegistry.h"
12#include "../readability/BracesAroundStatementsCheck.h"
13#include "../readability/FunctionSizeCheck.h"
14#include "../readability/NamespaceCommentCheck.h"
41 "google-build-explicit-make-pair");
43 "google-build-namespaces");
45 "google-build-using-namespace");
47 "google-default-arguments");
49 "google-explicit-constructor");
51 "google-global-names-in-headers");
53 "google-objc-avoid-nsobject-new");
55 "google-objc-avoid-throwing-exception");
57 "google-objc-function-naming");
59 "google-objc-global-variable-declaration");
61 "google-runtime-int");
63 "google-runtime-operator");
66 "google-readability-avoid-underscore-in-googletest-name");
68 "google-readability-casting");
70 "google-readability-todo");
73 "google-readability-braces-around-statements");
75 "google-readability-function-size");
78 "google-readability-namespace-comments");
80 "google-upgrade-googletest-case");
86 Opts[
"google-readability-braces-around-statements.ShortStatementLines"] =
88 Opts[
"google-readability-function-size.StatementThreshold"] =
"800";
89 Opts[
"google-readability-namespace-comments.ShortNamespaceLines"] =
"10";
90 Opts[
"google-readability-namespace-comments.SpacesBeforeComments"] =
"2";
96static ClangTidyModuleRegistry::Add<GoogleModule>
X(
"google-module",
97 "Adds Google lint checks.");
A collection of ClangTidyCheckFactory instances.
void registerCheck(llvm::StringRef CheckName)
Registers the CheckType with the name Name.
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
Checks that default parameters are not given for virtual methods.
Checks that all single-argument constructors are explicit.
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module.
ClangTidyOptions getModuleOptions() override
Gets default options for checks defined in this module.
Finds uses of deprecated Googletest APIs with names containing "case" and replaces them with equivale...
Check that make_pair's template arguments are deduced.
Finds using namespace directives.
This check finds Objective-C code that uses +new to create object instances, or overrides +new in cla...
The check is to find usage of.
Finds function names that do not conform to the recommendations of the Google Objective-C Style Guide...
The check for Objective-C global variables and constants naming convention.
Finds usages of C-style casts.
For the user-facing documentation see: http://clang.llvm.org/extra/clang-tidy/checks/google/readabili...
Finds uses of short, long and long long and suggest replacing them with u?intXX(_t)?...
Finds overloads of unary operator &.
Checks that bodies of if statements and loops (for, range-for, do-while, and while) are inside braces...
Checks for large functions based on various metrics.
volatile int GoogleModuleAnchorSource
Contains options for clang-tidy.
OptionMap CheckOptions
Key-value mapping used to store check-specific options.