|
clang
5.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 48 of file Sanitizers.h.
|
inline |
Disable the sanitizers specified in K.
Definition at line 65 of file Sanitizers.h.
References Mask.
Referenced by checkLanguageOptions(), clang::CompilerInvocation::getModuleHash(), 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.
Referenced by clang::CompilerInvocation::getModuleHash().
|
inline |
Check if a certain (single) sanitizer is enabled.
Definition at line 50 of file Sanitizers.h.
References Mask.
Referenced by addAddressSanitizerPasses(), addEfficiencySanitizerPass(), addMemorySanitizerPass(), clang::CodeGen::CodeGenModule::CodeGenModule(), clang::CompilerInvocation::CreateFromArgs(), clang::CodeGen::CodeGenModule::CreateFunctionTypeMetadata(), clang::CodeGen::CodeGenFunction::EmitCheckedInBoundsGEP(), clang::CodeGen::CodeGenFunction::EmitCXXMemberOrOperatorMemberCallExpr(), clang::CodeGen::CodeGenFunction::EmitNullabilityCheck(), 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::needsFuzzer(), 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 clang::CodeGen::CodeGenFunction::EmitCheckedLValue(), clang::CodeGen::CodeGenFunction::EmitCXXMemberOrOperatorMemberCallExpr(), clang::CodeGen::CodeGenFunction::EmitMemberExpr(), clang::CodeGen::CodeGenFunction::GetAddressOfBaseClass(), parseSanitizerKinds(), and clang::CodeGen::CodeGenFunction::StartFunction().
| SanitizerMask clang::SanitizerSet::Mask = 0 |
Bitmask of enabled sanitizers.
Definition at line 71 of file Sanitizers.h.
Referenced by checkLanguageOptions(), clear(), empty(), clang::CompilerInvocation::getModuleHash(), has(), hasOneOf(), parseSanitizeTrapArgs(), clang::driver::SanitizerArgs::SanitizerArgs(), set(), and clang::CodeGen::CodeGenFunction::StartFunction().
1.8.6