9 #include "../ClangTidy.h" 10 #include "../ClangTidyModule.h" 11 #include "../ClangTidyModuleRegistry.h" 34 "misc-definitions-in-headers");
37 "misc-new-delete-overloads");
39 "misc-non-copyable-objects");
41 "misc-non-private-member-variables-in-classes");
43 "misc-redundant-expression");
46 "misc-throw-by-value-catch-by-reference");
48 "misc-unconventional-assign-operator");
50 "misc-uniqueptr-reset-release");
52 "misc-unused-alias-decls");
54 "misc-unused-parameters");
56 "misc-unused-using-decls");
63 static ClangTidyModuleRegistry::Add<misc::MiscModule>
64 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 ...
Find and replace unique_ptr::reset(release()) with std::move().
checks for locations that do not throw by value
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.
This checker finds classes that not only contain the data (non-static member variables), but also have logic (non-static member functions), and diagnoses all member variables that have any other scope other than private.
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.
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
The check flags dereferences and non-pointer declarations of objects that are not meant to be passed ...
static ClangTidyModuleRegistry::Add< bugprone::BugproneModule > X("bugprone-module", "Adds checks for bugprone code constructs.")
The checker detects expressions that are redundant, because they contain ineffective, useless parts.
volatile int MiscModuleAnchorSource
Finds declarations of assignment operators with the wrong return and/or argument types and definition...
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Finds unused parameters and fixes them, so that -Wunused-parameter can be turned on.