9#include "../ClangTidy.h"
10#include "../ClangTidyModule.h"
11#include "../ClangTidyModuleRegistry.h"
39 "misc-confusable-identifiers");
41 "misc-const-correctness");
43 "misc-definitions-in-headers");
45 "misc-misleading-bidirectional");
47 "misc-misleading-identifier");
50 "misc-new-delete-overloads");
53 "misc-non-copyable-objects");
55 "misc-non-private-member-variables-in-classes");
57 "misc-redundant-expression");
60 "misc-throw-by-value-catch-by-reference");
62 "misc-unconventional-assign-operator");
64 "misc-uniqueptr-reset-release");
66 "misc-unused-alias-decls");
68 "misc-unused-parameters");
70 "misc-unused-using-decls");
72 "misc-use-anonymous-namespace");
79static ClangTidyModuleRegistry::Add<misc::MiscModule>
80 X(
"misc-module",
"Adds miscellaneous lint checks.");
A collection of ClangTidyCheckFactory instances.
void registerCheck(llvm::StringRef CheckName)
Registers the CheckType with the name Name.
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
Finds symbol which have confusable identifiers, i.e.
This check warns on variables which could be declared const but are not.
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module.
This check diagnoses when a const qualifier is applied to a typedef to a pointer type rather than to ...
Finds strongly connected functions (by analyzing call graph for SCC's that are loops),...
The check flags dereferences and non-pointer declarations of objects that are not meant to be passed ...
This checker finds classes that not only contain the data (non-static member variables),...
The checker detects expressions that are redundant, because they contain ineffective,...
Replaces assert() with static_assert() if the condition is evaluatable at compile time.
checks for locations that do not throw by value
Finds declarations of assignment operators with the wrong return and/or argument types and definition...
Find and replace unique_ptr::reset(release()) with std::move().
Finds unused namespace alias declarations.
Finds unused parameters and fixes them, so that -Wunused-parameter can be turned on.
Finds unused using declarations.
Warns when using 'static' functions or variables at global scope, and suggests moving them to an anon...
volatile int MiscModuleAnchorSource