clang-tools  14.0.0git
Classes | Functions | Variables
clang::tidy::llvm_libc Namespace Reference

Classes

class  CalleeNamespaceCheck
 Checks all calls resolve to functions within __llvm_libc namespace. More...
 
class  ImplementationInNamespaceCheck
 Checks all llvm-libc implementation is within the correct namespace. More...
 
class  LLVMLibcModule
 
class  RestrictSystemLibcHeadersCheck
 Warns of accidental inclusions of system libc headers that aren't compiler provided. More...
 

Functions

const DeclContext * getOutermostNamespace (const DeclContext *Decl)
 
static ClangTidyModuleRegistry::Add< LLVMLibcModuleX ("llvmlibc-module", "Adds LLVM libc standards checks.")
 

Variables

static const llvm::StringSet IgnoredFunctions
 
const static StringRef RequiredNamespace = "__llvm_libc"
 

Function Documentation

◆ getOutermostNamespace()

const DeclContext* clang::tidy::llvm_libc::getOutermostNamespace ( const DeclContext *  Decl)

Definition at line 23 of file CalleeNamespaceCheck.cpp.

References Decl, and Parent.

◆ X()

static ClangTidyModuleRegistry::Add<LLVMLibcModule> clang::tidy::llvm_libc::X ( "llvmlibc-module"  ,
"Adds LLVM libc standards checks."   
)
static

Variable Documentation

◆ IgnoredFunctions

const llvm::StringSet clang::tidy::llvm_libc::IgnoredFunctions
static
Initial value:
= {
"__errno_location", "malloc", "calloc", "realloc", "free", "aligned_alloc"}

Definition at line 39 of file CalleeNamespaceCheck.cpp.

◆ RequiredNamespace

const static StringRef clang::tidy::llvm_libc::RequiredNamespace = "__llvm_libc"
static

Definition at line 19 of file ImplementationInNamespaceCheck.cpp.