clang
7.0.0
|
#include "clang/Basic/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 (SanitizerMask K=SanitizerKind::All) |
Disable the sanitizers specified in K . 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 50 of file Sanitizers.h.
|
inline |
Disable the sanitizers specified in K
.
Definition at line 67 of file Sanitizers.h.
Referenced by checkLanguageOptions().
|
inline |
Returns true if at least one sanitizer is enabled.
Definition at line 70 of file Sanitizers.h.
Referenced by clang::CompilerInvocation::CreateFromArgs().
|
inline |
Check if a certain (single) sanitizer is enabled.
Definition at line 52 of file Sanitizers.h.
Referenced by clang::CompilerInvocation::CreateFromArgs(), clang::CodeGen::CodeGenModule::CreateFunctionTypeMetadataForIcall(), clang::CodeGen::CodeGenFunction::EmitCfiCheckFail(), clang::CodeGen::CodeGenFunction::EmitCfiSlowPathCheck(), clang::CodeGen::CodeGenFunction::EmitCheck(), clang::CodeGen::CodeGenFunction::EmitNullabilityCheck(), emitPointerArithmetic(), clang::CodeGen::CodeGenFunction::EmitScalarRangeCheck(), clang::CodeGen::CodeGenFunction::EmitTypeCheck(), clang::CodeGen::CodeGenFunction::EmitUnreachable(), clang::CodeGen::CodeGenFunction::EmitVariablyModifiedType(), clang::CodeGen::CodeGenFunction::GenerateCode(), clang::driver::SanitizerArgs::needsAsanRt(), clang::driver::SanitizerArgs::needsDfsanRt(), clang::driver::SanitizerArgs::needsFuzzer(), clang::driver::SanitizerArgs::needsHwasanRt(), clang::driver::SanitizerArgs::needsLsanRt(), clang::driver::SanitizerArgs::needsMsanRt(), clang::driver::SanitizerArgs::needsScudoRt(), clang::driver::SanitizerArgs::needsTsanRt(), clang::CodeGen::CodeGenFunction::sanitizePerformTypeCheck(), shouldEmitLifetimeMarkers(), clang::CodeGen::CodeGenFunction::ShouldNullCheckClassCastValue(), clang::CodeGen::CodeGenFunction::StartFunction(), tryEmitFMulAdd(), and clang::CodeGen::CodeGenFunction::InlinedInheritingConstructorScope::~InlinedInheritingConstructorScope().
|
inline |
Check if one or more sanitizers are enabled.
Definition at line 58 of file Sanitizers.h.
Referenced by clang::CodeGen::SanitizerMetadata::disableSanitizerForGlobal(), clang::driver::SanitizerArgs::needsEsanRt(), clang::CodeGen::SanitizerMetadata::reportGlobalToASan(), and clang::CodeGen::CodeGenFunction::StartFunction().
|
inline |
Enable or disable a certain (single) sanitizer.
Definition at line 61 of file Sanitizers.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitConstructorBody(), clang::CodeGen::CodeGenFunction::GetAddressOfBaseClass(), and clang::CodeGen::CodeGenFunction::StartFunction().
SanitizerMask clang::SanitizerSet::Mask = 0 |
Bitmask of enabled sanitizers.
Definition at line 73 of file Sanitizers.h.
Referenced by checkLanguageOptions(), clang::CodeGen::CodeGenModule::isInSanitizerBlacklist(), and clang::CodeGen::CodeGenFunction::StartFunction().