10 #include "../ClangTidy.h"
11 #include "../ClangTidyModule.h"
12 #include "../ClangTidyModuleRegistry.h"
48 "misc-assert-side-effect");
50 "misc-assign-operator-signature");
52 "misc-bool-pointer-implicit-conversion");
54 "misc-definitions-in-headers");
56 "misc-inaccurate-erase");
58 "misc-inefficient-algorithm");
60 "misc-macro-parentheses");
62 "misc-macro-repeated-side-effects");
64 "misc-move-const-arg");
66 "misc-move-constructor-init");
68 "misc-new-delete-overloads");
70 "misc-noexcept-move-constructor");
72 "misc-non-copyable-objects");
75 "misc-static-assert");
77 "misc-string-integer-assignment");
79 "misc-swapped-arguments");
81 "misc-throw-by-value-catch-by-reference");
83 "misc-undelegated-constructor");
85 "misc-uniqueptr-reset-release");
87 "misc-unused-alias-decls");
89 "misc-unused-parameters");
92 "misc-virtual-near-miss");
99 static ClangTidyModuleRegistry::Add<misc::MiscModule>
100 X(
"misc-module",
"Adds miscellaneous lint checks.");
The check flags user-defined move constructors that have a ctor-initializer initializing a member or ...
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.
Finds assert() with side effect.
Finds temporaries that look like RAII objects.
Finds creation of temporary objects in constructors that look like a function call to another constru...
checks for locations that do not throw by value
void registerCheck(StringRef CheckName)
Registers the CheckType with the name Name.
Checks for near miss of virtual methods.
Find usages of sizeof on expressions of STL container types.
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module...
The check flags dereferences and non-pointer declarations of objects that are not meant to be passed ...
A collection of ClangTidyCheckFactory instances.
Finds unused parameters and fixes them, so that -Wunused-parameter can be turned on.
Finds declarations of assign operators with the wrong return and/or argument types.
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
Finds macros that can have unexpected behaviour due to missing parentheses.
Finds instances where an integer is assigned to a string.
Replaces assert() with static_assert() if the condition is evaluatable at compile time...
volatile int MiscModuleAnchorSource
Finds unused namespace alias declarations.
Checks for inaccurate use of the erase() method.
The check flags user-defined move constructors and assignment operators not marked with noexcept or m...
Warns on inefficient use of STL algorithms on associative containers.