Go to the documentation of this file.
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"
43 "google-build-explicit-make-pair");
45 "google-build-namespaces");
47 "google-build-using-namespace");
49 "google-default-arguments");
51 "google-explicit-constructor");
53 "google-global-names-in-headers");
55 "google-objc-avoid-nsobject-new");
57 "google-objc-avoid-throwing-exception");
59 "google-objc-function-naming");
61 "google-objc-global-variable-declaration");
63 "google-runtime-int");
65 "google-runtime-operator");
67 "google-runtime-references");
70 "google-readability-avoid-underscore-in-googletest-name");
72 "google-readability-casting");
74 "google-readability-todo");
77 "google-readability-braces-around-statements");
79 "google-readability-function-size");
82 "google-readability-namespace-comments");
84 "google-upgrade-googletest-case");
90 Opts[
"google-readability-braces-around-statements.ShortStatementLines"] =
92 Opts[
"google-readability-function-size.StatementThreshold"] =
"800";
93 Opts[
"google-readability-namespace-comments.ShortNamespaceLines"] =
"10";
94 Opts[
"google-readability-namespace-comments.SpacesBeforeComments"] =
"2";
100 static ClangTidyModuleRegistry::Add<GoogleModule>
X(
"google-module",
101 "Adds Google lint checks.");
Checks that bodies of if statements and loops (for, range-for, do-while, and while) are inside braces...
Checks that all single-argument constructors are explicit.
OptionMap CheckOptions
Key-value mapping used to store check-specific options.
Finds function names that do not conform to the recommendations of the Google Objective-C Style Guide...
Contains options for clang-tidy.
Checks the usage of non-constant references in function parameters.
A collection of ClangTidyCheckFactory instances.
The check for Objective-C global variables and constants naming convention.
Finds using namespace directives.
Finds uses of deprecated Googletest APIs with names containing "case" and replaces them with equivale...
Checks that default parameters are not given for virtual methods.
Check that make_pair's template arguments are deduced.
static ClangTidyModuleRegistry::Add< GoogleModule > X("google-module", "Adds Google lint checks.")
Checks for large functions based on various metrics.
Finds uses of short, long and long long and suggest replacing them with u?intXX(_t)?...
Finds usages of C-style casts.
The check is to find usage of.
This check finds Objective-C code that uses +new to create object instances, or overrides +new in cla...
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Finds overloads of unary operator &.
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
ClangTidyOptions getModuleOptions() override
Gets default options for checks defined in this module.
void registerCheck(llvm::StringRef CheckName)
Registers the CheckType with the name Name.
volatile int GoogleModuleAnchorSource