10 #include "../ClangTidy.h"
11 #include "../ClangTidyModule.h"
12 #include "../ClangTidyModuleRegistry.h"
33 namespace readability {
39 "readability-avoid-const-params-in-decls");
41 "readability-braces-around-statements");
43 "readability-container-size-empty");
45 "readability-deleted-default");
47 "readability-else-after-return");
49 "readability-function-size");
51 "readability-identifier-naming");
53 "readability-implicit-bool-cast");
55 "readability-inconsistent-declaration-parameter-name");
57 "readability-static-definition-in-anonymous-namespace");
59 "readability-named-parameter");
61 "readability-redundant-control-flow");
63 "readability-redundant-smartptr-get");
65 "readability-redundant-string-cstr");
67 "readability-redundant-string-init");
69 "readability-simplify-boolean-expr");
71 "readability-uniqueptr-delete-release");
76 static ClangTidyModuleRegistry::Add<ReadabilityModule>
77 X(
"readability-module",
"Adds readability-related checks.");
static ClangTidyModuleRegistry::Add< ReadabilityModule > X("readability-module","Adds readability-related checks.")
volatile int ReadabilityModuleAnchorSource
Checks when a constructor or an assignment operator is marked as '= default' but is actually deleted ...
void registerCheck(StringRef CheckName)
Registers the CheckType with the name Name.
Finds static function and variable definitions in anonymous namespace.
Looks for boolean expressions involving boolean constants and simplifies them to use the appropriate ...
Checks whether a call to the size() method can be replaced with a call to empty().
A collection of ClangTidyCheckFactory instances.
Flags the usages of else after return.
Checks for large functions based on various metrics.
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
Finds unnecessary string initializations.
Find and remove redundant calls to smart pointer's .get() method.
Checks for declarations of functions which differ in parameter names.
Find functions with unnamed arguments.
Flags statements of the form delete <unique_ptr expr>.release(); and replaces them with: <unique_ptr ...
Finds unnecessary calls to std::string::c_str().
Checks for use of implicit bool casts in expressions.
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module...
Checks that bodies of if statements and loops (for, range-for, do-while, and while) are inside braces...
Eliminates redundant return statements at the end of a function that returns void.
Checks for identifiers naming style mismatch.