clang 22.0.0git
|
#include "clang/Basic/Sanitizers.h"
Public Member Functions | |
bool | has (SanitizerMask K) const |
Check if a certain (single) sanitizer is enabled. | |
bool | has (SanitizerKind::SanitizerOrdinal O) const |
bool | hasOneOf (SanitizerMask K) const |
Check if one or more sanitizers are enabled. | |
void | set (SanitizerMask K, bool Value) |
Enable or disable a certain (single) sanitizer. | |
void | set (SanitizerMask K) |
void | clear (SanitizerMask K=SanitizerKind::All) |
Disable the sanitizers specified in K . | |
bool | empty () const |
Returns true if no sanitizers are enabled. |
Public Attributes | |
SanitizerMask | Mask |
Bitmask of enabled sanitizers. |
Definition at line 172 of file Sanitizers.h.
|
inline |
Disable the sanitizers specified in K
.
Definition at line 195 of file Sanitizers.h.
References Mask.
Referenced by checkLanguageOptions(), clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(), and clang::CompilerInvocation::getModuleHash().
|
inline |
Returns true if no sanitizers are enabled.
Definition at line 198 of file Sanitizers.h.
References Mask.
Referenced by clang::CompilerInvocation::getModuleHash().
|
inline |
Definition at line 179 of file Sanitizers.h.
References clang::SanitizerMask::bitPosToMask(), and clang::ast_matchers::has.
|
inline |
Check if a certain (single) sanitizer is enabled.
Definition at line 174 of file Sanitizers.h.
References clang::SanitizerMask::isPowerOf2(), and Mask.
Referenced by addKCFIPass(), addSanitizers(), EmitPointerWithAlignment(), clang::CodeGen::CodeGenFunction::EmitTypeCheck(), clang::targets::getAppleMachODefines(), InitializePredefinedMacros(), clang::CodeGen::SanitizerMetadata::reportGlobal(), and shouldEmitLifetimeMarkers().
|
inline |
Check if one or more sanitizers are enabled.
Definition at line 184 of file Sanitizers.h.
References Mask.
Referenced by InitializePredefinedMacros(), isAsanHwasanMemTagOrTysan(), and clang::CodeGen::SanitizerMetadata::reportGlobal().
|
inline |
Definition at line 192 of file Sanitizers.h.
References Mask.
|
inline |
Enable or disable a certain (single) sanitizer.
Definition at line 187 of file Sanitizers.h.
References clang::SanitizerMask::isPowerOf2(), and Mask.
Referenced by clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(), clang::CodeGen::CodeGenFunction::EmitCheckedLValue(), clang::CodeGen::CodeGenFunction::EmitCXXMemberOrOperatorMemberCallExpr(), clang::CodeGen::CodeGenFunction::EmitCXXNewExpr(), clang::CodeGen::CodeGenFunction::EmitMemberExpr(), clang::CodeGen::CodeGenFunction::GetAddressOfBaseClass(), parseSanitizerKinds(), and clang::CodeGen::CodeGenFunction::StartFunction().
SanitizerMask clang::SanitizerSet::Mask |
Bitmask of enabled sanitizers.
Definition at line 201 of file Sanitizers.h.
Referenced by checkLanguageOptions(), clear(), empty(), clang::CompilerInvocation::getModuleHash(), has(), hasOneOf(), parseSanitizeArgs(), clang::CodeGen::SanitizerMetadata::reportGlobal(), clang::driver::SanitizerArgs::SanitizerArgs(), set(), and set().