10 #include "../ClangTidy.h" 11 #include "../ClangTidyModule.h" 12 #include "../ClangTidyModuleRegistry.h" 39 "bugprone-argument-comment");
41 "bugprone-assert-side-effect");
43 "bugprone-bool-pointer-implicit-conversion");
45 "bugprone-copy-constructor-init");
47 "bugprone-dangling-handle");
49 "bugprone-fold-init-type");
51 "bugprone-forward-declaration-namespace");
53 "bugprone-inaccurate-erase");
55 "bugprone-integer-division");
57 "bugprone-misplaced-operator-in-strlen-in-alloc");
59 "bugprone-move-forwarding-reference");
61 "bugprone-multiple-statement-macro");
63 "bugprone-string-constructor");
65 "bugprone-suspicious-memset-usage");
67 "bugprone-undefined-memory-manipulation");
69 "bugprone-use-after-move");
71 "bugprone-virtual-near-miss");
78 static ClangTidyModuleRegistry::Add<bugprone::BugproneModule>
79 X(
"bugprone-module",
"Adds checks for bugprone code constructs.");
Checks if an unused forward declaration is in a wrong namespace.
Finds assert() with side effect.
Finds memset calls with potential mistakes in their arguments.
Finds copy constructors where the ctor don't call the copy constructor of the base class...
void registerCheck(StringRef CheckName)
Registers the CheckType with the name Name.
Checks for conditions based on implicit conversion from a bool pointer to bool.
The check warns if an object is used after it has been moved, without an intervening reinitialization...
Finds cases where 1 is added to the string in the argument to a function in the strlen() family inste...
Detect multiple statement macros that are used in unbraced conditionals.
A collection of ClangTidyCheckFactory instances.
Find and flag invalid initializer values in folds, e.g.
Checks for near miss of virtual methods.
The check warns if std::move is applied to a forwarding reference (i.e.
Detect dangling references in value handlers like std::experimental::string_view. ...
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
Finds cases where integer division in a floating point context is likely to cause unintended loss of ...
Finds suspicious string constructor and check their parameters.
static ClangTidyModuleRegistry::Add< bugprone::BugproneModule > X("bugprone-module", "Adds checks for bugprone code constructs.")
Checks for inaccurate use of the erase() method.
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module...
volatile int BugproneModuleAnchorSource
Finds calls of memory manipulation functions memset(), memcpy() and memmove() on not TriviallyCopyabl...