clang 20.0.0git
|
#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CodeGen/SanitizerMetadata.h"
Public Member Functions | |
SanitizerMetadata (CodeGenModule &CGM) | |
void | reportGlobal (llvm::GlobalVariable *GV, const VarDecl &D, bool IsDynInit=false) |
void | reportGlobal (llvm::GlobalVariable *GV, SourceLocation Loc, StringRef Name, QualType Ty={}, SanitizerMask NoSanitizeAttrMask={}, bool IsDynInit=false) |
void | disableSanitizerForGlobal (llvm::GlobalVariable *GV) |
Definition at line 32 of file SanitizerMetadata.h.
SanitizerMetadata::SanitizerMetadata | ( | CodeGenModule & | CGM | ) |
Definition at line 23 of file SanitizerMetadata.cpp.
void SanitizerMetadata::disableSanitizerForGlobal | ( | llvm::GlobalVariable * | GV | ) |
Definition at line 101 of file SanitizerMetadata.cpp.
References reportGlobal().
void SanitizerMetadata::reportGlobal | ( | llvm::GlobalVariable * | GV, |
const VarDecl & | D, | ||
bool | IsDynInit = false |
||
) |
Definition at line 78 of file SanitizerMetadata.cpp.
References D, clang::CodeGen::CodeGenModule::getLangOpts(), clang::Decl::getLocation(), clang::Decl::hasAttr(), isAsanHwasanOrMemTag(), reportGlobal(), clang::LangOptions::Sanitize, and clang::Decl::specific_attrs().
Referenced by disableSanitizerForGlobal(), and reportGlobal().
void SanitizerMetadata::reportGlobal | ( | llvm::GlobalVariable * | GV, |
SourceLocation | Loc, | ||
StringRef | Name, | ||
QualType | Ty = {} , |
||
SanitizerMask | NoSanitizeAttrMask = {} , |
||
bool | IsDynInit = false |
||
) |
Definition at line 37 of file SanitizerMetadata.cpp.
References expandKernelSanitizerMasks(), clang::CodeGen::CodeGenModule::getLangOpts(), clang::SanitizerSet::has(), clang::SanitizerSet::hasOneOf(), isAsanHwasanOrMemTag(), clang::CodeGen::CodeGenModule::isInNoSanitizeList(), Loc, clang::SanitizerSet::Mask, and clang::LangOptions::Sanitize.