clang-tools 19.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  InlineFunctionDeclCheck
 Checks that explicitly and implicitly inline functions in headers files are tagged with the LIBC_INLINE macro. 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
 
static const llvm::StringRef RequiredNamespaceStart = "__llvm_libc"
 
static const llvm::StringRef RequiredNamespaceMacroName = "LIBC_NAMESPACE"
 

Function Documentation

◆ getOutermostNamespace()

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

◆ 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.

Referenced by clang::tidy::llvm_libc::CalleeNamespaceCheck::check().

◆ RequiredNamespaceMacroName

const llvm::StringRef clang::tidy::llvm_libc::RequiredNamespaceMacroName = "LIBC_NAMESPACE"
static

◆ RequiredNamespaceStart

const llvm::StringRef clang::tidy::llvm_libc::RequiredNamespaceStart = "__llvm_libc"
static