10 #include "../ClangTidy.h"
11 #include "../ClangTidyModule.h"
12 #include "../ClangTidyModuleRegistry.h"
24 "bugprone-suspicious-memset-usage");
26 "bugprone-undefined-memory-manipulation");
33 static ClangTidyModuleRegistry::Add<bugprone::BugproneModule>
34 X(
"bugprone-module",
"Adds checks for bugprone code constructs.");
Finds memset calls with potential mistakes in their arguments.
void registerCheck(StringRef CheckName)
Registers the CheckType with the name Name.
A collection of ClangTidyCheckFactory instances.
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module...
volatile int BugproneModuleAnchorSource
static ClangTidyModuleRegistry::Add< bugprone::BugproneModule > X("bugprone-module","Adds checks for bugprone code constructs.")
Finds calls of memory manipulation functions memset(), memcpy() and memmove() on not TriviallyCopyabl...