10 #include "../ClangTidy.h"
11 #include "../ClangTidyModule.h"
12 #include "../ClangTidyModuleRegistry.h"
67 "misc-assert-side-effect");
70 "misc-unconventional-assign-operator");
72 "misc-bool-pointer-implicit-conversion");
75 "misc-definitions-in-headers");
78 "misc-forward-declaration-namespace");
81 "misc-incorrect-roundings");
83 "misc-inefficient-algorithm");
85 "misc-macro-parentheses");
87 "misc-macro-repeated-side-effects");
89 "misc-misplaced-widening-cast");
91 "misc-move-const-arg");
93 "misc-move-constructor-init");
95 "misc-move-forwarding-reference");
97 "misc-multiple-statement-macro");
99 "misc-new-delete-overloads");
101 "misc-noexcept-move-constructor");
103 "misc-non-copyable-objects");
105 "misc-redundant-expression");
108 "misc-sizeof-expression");
112 "misc-string-constructor");
114 "misc-string-integer-assignment");
116 "misc-string-literal-with-embedded-nul");
118 "misc-suspicious-enum-usage");
120 "misc-suspicious-missing-comma");
122 "misc-suspicious-semicolon");
124 "misc-suspicious-string-compare");
126 "misc-swapped-arguments");
128 "misc-throw-by-value-catch-by-reference");
130 "misc-undelegated-constructor");
132 "misc-uniqueptr-reset-release");
134 "misc-unused-alias-decls");
136 "misc-unused-parameters");
139 "misc-unused-using-decls");
142 "misc-virtual-near-miss");
149 static ClangTidyModuleRegistry::Add<misc::MiscModule>
150 X(
"misc-module",
"Adds miscellaneous lint checks.");
This check diagnoses when a const qualifier is applied to a typedef to a pointer type rather than to ...
Finds instances where an integer is assigned to a string.
Checks for repeated argument with side effects in macros.
static ClangTidyModuleRegistry::Add< cert::CERTModule > X("cert-module","Adds lint checks corresponding to CERT secure coding guidelines.")
Finds potentially swapped arguments by looking at implicit conversions.
Find and replace unique_ptr::reset(release()) with std::move().
Checks for conditions based on implicit conversion from a bool pointer to bool.
checks for locations that do not throw by value
Finds temporaries that look like RAII objects.
Finds creation of temporary objects in constructors that look like a function call to another constru...
void registerCheck(StringRef CheckName)
Registers the CheckType with the name Name.
Replaces assert() with static_assert() if the condition is evaluatable at compile time...
Finds unused namespace alias declarations.
Find suspicious calls to string compare functions.
Checks for near miss of virtual methods.
Checks the usage of patterns known to produce incorrect rounding.
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module...
A collection of ClangTidyCheckFactory instances.
Finds unused using declarations.
Find suspicious string literals with embedded NUL characters.
This check finds string literals which are probably concatenated accidentally.
Find suspicious usages of sizeof expression.
Finds macros that can have unexpected behaviour due to missing parentheses.
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
Detect multiple statement macros that are used in unbraced conditionals.
The check flags dereferences and non-pointer declarations of objects that are not meant to be passed ...
The check warns if std::move is applied to a forwarding reference (i.e.
The check flags user-defined move constructors and assignment operators not marked with noexcept or m...
Finds suspicious string constructor and check their parameters.
Find casts of calculation results to bigger type.
Detect useless or suspicious redundant expressions.
This check flags all calls compare when used to check for string equality or inequality.
Finds assert() with side effect.
The check flags user-defined move constructors that have a ctor-initializer initializing a member or ...
Detect dangling references in value handlers like std::experimental::string_view. ...
The checker detects various cases when an enum is probably misused (as a bitmask).
volatile int MiscModuleAnchorSource
Find usages of sizeof on expressions of STL container types.
Find and flag invalid initializer values in folds, e.g.
Checks if an unused forward declaration is in a wrong namespace.
Finds declarations of assignment operators with the wrong return and/or argument types and definition...
Finds unused parameters and fixes them, so that -Wunused-parameter can be turned on.
This check finds semicolon that modifies the meaning of the program unintendedly. ...
Checks for inaccurate use of the erase() method.
Warns on inefficient use of STL algorithms on associative containers.
The check warns if an object is used after it has been moved, without an intervening reinitialization...