clang 22.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 125 of file SanitizerMetadata.cpp.
References reportGlobal().
Referenced by clang::CodeGen::CodeGenModule::Release().
void SanitizerMetadata::reportGlobal | ( | llvm::GlobalVariable * | GV, |
const VarDecl & | D, | ||
bool | IsDynInit = false ) |
Definition at line 97 of file SanitizerMetadata.cpp.
References clang::Decl::getLocation(), clang::ValueDecl::getType(), clang::Decl::hasAttr(), clang::VarDecl::hasExternalStorage(), isAsanHwasanMemTagOrTysan(), clang::Type::isIncompleteType(), clang::NamedDecl::printQualifiedName(), reportGlobal(), 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 35 of file SanitizerMetadata.cpp.
References expandKernelSanitizerMasks(), clang::SanitizerSet::has(), clang::SanitizerSet::hasOneOf(), isAsanHwasanMemTagOrTysan(), clang::QualType::isNull(), and clang::SanitizerSet::Mask.