Go to the documentation of this file.
9 #include "../ClangTidy.h"
10 #include "../ClangTidyModule.h"
11 #include "../ClangTidyModuleRegistry.h"
37 "misc-definitions-in-headers");
39 "misc-misleading-bidirectional");
41 "misc-misleading-identifier");
44 "misc-new-delete-overloads");
47 "misc-non-copyable-objects");
49 "misc-non-private-member-variables-in-classes");
51 "misc-redundant-expression");
54 "misc-throw-by-value-catch-by-reference");
56 "misc-unconventional-assign-operator");
58 "misc-uniqueptr-reset-release");
60 "misc-unused-alias-decls");
62 "misc-unused-parameters");
64 "misc-unused-using-decls");
71 static ClangTidyModuleRegistry::Add<misc::MiscModule>
72 X(
"misc-module",
"Adds miscellaneous lint checks.");
The check flags dereferences and non-pointer declarations of objects that are not meant to be passed ...
Finds unused namespace alias declarations.
Find and replace unique_ptr::reset(release()) with std::move().
Finds unused parameters and fixes them, so that -Wunused-parameter can be turned on.
This checker finds classes that not only contain the data (non-static member variables),...
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module.
Finds strongly connected functions (by analyzing call graph for SCC's that are loops),...
Finds declarations of assignment operators with the wrong return and/or argument types and definition...
A collection of ClangTidyCheckFactory instances.
Replaces assert() with static_assert() if the condition is evaluatable at compile time.
This check diagnoses when a const qualifier is applied to a typedef to a pointer type rather than to ...
volatile int MiscModuleAnchorSource
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
checks for locations that do not throw by value
The checker detects expressions that are redundant, because they contain ineffective,...
static ClangTidyModuleRegistry::Add< altera::AlteraModule > X("altera-module", "Adds Altera FPGA OpenCL lint checks.")
Finds unused using declarations.
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
void registerCheck(llvm::StringRef CheckName)
Registers the CheckType with the name Name.