10 #include "../ClangTidy.h" 11 #include "../ClangTidyModule.h" 12 #include "../ClangTidyModuleRegistry.h" 41 namespace readability {
47 "readability-avoid-const-params-in-decls");
49 "readability-braces-around-statements");
51 "readability-container-size-empty");
53 "readability-delete-null-pointer");
55 "readability-deleted-default");
57 "readability-else-after-return");
59 "readability-function-size");
61 "readability-identifier-naming");
63 "readability-implicit-bool-conversion");
65 "readability-inconsistent-declaration-parameter-name");
67 "readability-misleading-indentation");
69 "readability-misplaced-array-index");
71 "readability-redundant-function-ptr-dereference");
73 "readability-redundant-member-init");
75 "readability-static-accessed-through-instance");
77 "readability-static-definition-in-anonymous-namespace");
79 "readability-named-parameter");
81 "readability-non-const-parameter");
83 "readability-redundant-control-flow");
85 "readability-redundant-declaration");
87 "readability-redundant-smartptr-get");
89 "readability-redundant-string-cstr");
91 "readability-redundant-string-init");
93 "readability-simplify-boolean-expr");
95 "readability-uniqueptr-delete-release");
100 static ClangTidyModuleRegistry::Add<ReadabilityModule>
101 X(
"readability-module",
"Adds readability-related checks.");
volatile int ReadabilityModuleAnchorSource
Finds member initializations that are unnecessary because the same default constructor would be calle...
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.
Check whether the 'if' statement is unnecessary before calling 'delete' on a pointer.
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.
static ClangTidyModuleRegistry::Add< ReadabilityModule > X("readability-module", "Adds readability-related checks.")
Checks for large functions based on various metrics.
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
Warn when a pointer function parameter can be const.
Finds unnecessary string initializations.
Find and remove redundant calls to smart pointer's .get() method.
Warn about unusual array index syntax (index[array] instead of array[index]).
@brief Checks for member expressions that access static members through instances and replaces them w...
Checks for use of implicit bool conversions in expressions.
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 the code for dangling else, and possible misleading indentations due to missing braces...
Find redundant variable declarations.
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.
Eliminate redundant dereferences of a function pointer.
Checks for identifiers naming style mismatch.