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 20 of file SanitizerMetadata.cpp.
void SanitizerMetadata::disableSanitizerForGlobal | ( | llvm::GlobalVariable * | GV | ) |
Definition at line 158 of file SanitizerMetadata.cpp.
References reportGlobal().
void SanitizerMetadata::reportGlobal | ( | llvm::GlobalVariable * | GV, |
const VarDecl & | D, | ||
bool | IsDynInit = false |
||
) |
Definition at line 132 of file SanitizerMetadata.cpp.
References D, clang::CodeGen::CodeGenModule::getLangOpts(), clang::Decl::getLocation(), clang::Decl::hasAttr(), isAsanHwasanMemTagOrTysan(), 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 66 of file SanitizerMetadata.cpp.
References clang::ASTContext::CharTy, expandKernelSanitizerMasks(), clang::CodeGen::CodeGenModule::getContext(), clang::CodeGen::CodeGenModule::getLangOpts(), clang::CodeGen::CodeGenModule::getLLVMContext(), clang::CodeGen::CodeGenModule::getModule(), clang::CodeGen::CodeGenModule::getTBAATypeInfo(), clang::SanitizerSet::has(), clang::SanitizerSet::hasOneOf(), isAsanHwasanMemTagOrTysan(), clang::CodeGen::CodeGenModule::isInNoSanitizeList(), clang::QualType::isNull(), Loc, clang::SanitizerSet::Mask, clang::LangOptions::Sanitize, and shouldTagGlobal().