Go to the documentation of this file.
9 #include "../ClangTidy.h"
10 #include "../ClangTidyModule.h"
11 #include "../ClangTidyModuleRegistry.h"
24 "llvmlibc-callee-namespace");
26 "llvmlibc-implementation-in-namespace");
28 "llvmlibc-restrict-system-libc-headers");
33 static ClangTidyModuleRegistry::Add<LLVMLibcModule>
34 X(
"llvmlibc-module",
"Adds LLVM libc standards checks.");
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module.
Checks all llvm-libc implementation is within the correct namespace.
volatile int LLVMLibcModuleAnchorSource
A collection of ClangTidyCheckFactory instances.
static ClangTidyModuleRegistry::Add< LLVMLibcModule > X("llvmlibc-module", "Adds LLVM libc standards checks.")
Checks all calls resolve to functions within __llvm_libc namespace.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
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.