clang
3.9.0
|
#include <Sanitizers.h>
Public Member Functions | |
bool | has (SanitizerMask K) const |
Check if a certain (single) sanitizer is enabled. More... | |
bool | hasOneOf (SanitizerMask K) const |
Check if one or more sanitizers are enabled. More... | |
void | set (SanitizerMask K, bool Value) |
Enable or disable a certain (single) sanitizer. More... | |
void | clear () |
Disable all sanitizers. More... | |
bool | empty () const |
Returns true if at least one sanitizer is enabled. More... | |
Public Attributes | |
SanitizerMask | Mask = 0 |
Bitmask of enabled sanitizers. More... | |
Definition at line 48 of file Sanitizers.h.
|
inline |
Disable all sanitizers.
Definition at line 65 of file Sanitizers.h.
References Mask.
Referenced by clang::LangOptions::resetNonModularOptions(), and clang::CodeGen::CodeGenFunction::StartFunction().
|
inline |
Returns true if at least one sanitizer is enabled.
Definition at line 68 of file Sanitizers.h.
References Mask.
|
inline |
Check if a certain (single) sanitizer is enabled.
Definition at line 50 of file Sanitizers.h.
References Mask.
Referenced by addAddressSanitizerPasses(), addEfficiencySanitizerPass(), clang::CodeGen::CodeGenModule::CodeGenModule(), clang::CompilerInvocation::CreateFromArgs(), clang::CodeGen::CodeGenModule::CreateFunctionTypeMetadata(), clang::CodeGen::CodeGenFunction::EmitCXXMemberOrOperatorMemberCallExpr(), clang::CodeGen::CodeGenFunction::EmitFunctionEpilog(), clang::CodeGen::CodeGenFunction::EmitNonNullArgCheck(), emitPointerArithmetic(), clang::CodeGen::CodeGenFunction::EmitTypeCheck(), clang::CodeGen::CodeGenFunction::EmitTypeMetadataCodeForVCall(), clang::CodeGen::CodeGenFunction::EmitVariablyModifiedType(), clang::CodeGen::CodeGenFunction::EmitVTablePtrCheck(), clang::CodeGen::CodeGenFunction::EmitVTablePtrCheckForCall(), clang::CodeGen::CodeGenFunction::EmitVTablePtrCheckForCast(), clang::CodeGen::CodeGenFunction::EnterDtorCleanups(), clang::CodeGen::CodeGenFunction::GenerateCode(), clang::CodeGen::CodeGenModule::GetAddrOfConstantStringFromLiteral(), HasFeature(), clang::CodeGen::CodeGenModule::NeedAllVtablesTypeId(), clang::driver::SanitizerArgs::needsAsanRt(), clang::driver::SanitizerArgs::needsDfsanRt(), clang::driver::SanitizerArgs::needsLsanRt(), clang::driver::SanitizerArgs::needsMsanRt(), clang::driver::SanitizerArgs::needsSafeStackRt(), clang::driver::SanitizerArgs::needsTsanRt(), clang::CodeGen::CodeGenFunction::sanitizePerformTypeCheck(), shouldEmitLifetimeMarkers(), clang::CodeGen::CodeGenFunction::ShouldEmitVTableTypeCheckedLoad(), and clang::CodeGen::CodeGenFunction::StartFunction().
|
inline |
Check if one or more sanitizers are enabled.
Definition at line 56 of file Sanitizers.h.
References Mask.
Referenced by clang::CodeGen::SanitizerMetadata::disableSanitizerForGlobal(), HasFeature(), clang::CodeGen::CodeGenModule::isInSanitizerBlacklist(), clang::RecordDecl::mayInsertExtraPadding(), clang::driver::SanitizerArgs::needsEsanRt(), clang::CodeGen::SanitizerMetadata::reportGlobalToASan(), and clang::CodeGen::CodeGenFunction::StartFunction().
|
inline |
Enable or disable a certain (single) sanitizer.
Definition at line 59 of file Sanitizers.h.
References Mask.
Referenced by parseSanitizerKinds().
SanitizerMask clang::SanitizerSet::Mask = 0 |
Bitmask of enabled sanitizers.
Definition at line 71 of file Sanitizers.h.
Referenced by clear(), empty(), has(), hasOneOf(), parseSanitizeTrapArgs(), clang::driver::SanitizerArgs::SanitizerArgs(), set(), and clang::CodeGen::CodeGenFunction::StartFunction().