clang API Documentation
#include <Sanitizers.h>
Public Member Functions | |
SanitizerSet () | |
bool | has (SanitizerKind K) const |
Check if a certain sanitizer is enabled. | |
void | set (SanitizerKind K, bool Value) |
Enable or disable a certain sanitizer. | |
void | clear () |
Disable all sanitizers. | |
bool | empty () const |
Returns true if at least one sanitizer is enabled. |
Definition at line 26 of file Sanitizers.h.
Definition at line 17 of file Sanitizers.cpp.
void SanitizerSet::clear | ( | ) |
Disable all sanitizers.
Definition at line 29 of file Sanitizers.cpp.
Referenced by clang::LangOptions::resetNonModularOptions(), and clang::CodeGen::CodeGenFunction::StartFunction().
bool SanitizerSet::empty | ( | ) | const |
Returns true if at least one sanitizer is enabled.
Definition at line 33 of file Sanitizers.cpp.
bool SanitizerSet::has | ( | SanitizerKind | K | ) | const |
Check if a certain sanitizer is enabled.
Definition at line 19 of file Sanitizers.cpp.
Referenced by clang::CodeGen::CodeGenModule::CodeGenModule(), clang::CodeGen::SanitizerMetadata::disableSanitizerForGlobal(), clang::CodeGen::CodeGenFunction::EmitArraySubscriptExpr(), clang::CodeGen::CodeGenFunction::EmitBoundsCheck(), clang::CodeGen::CodeGenFunction::EmitCall(), clang::CodeGen::CodeGenFunction::EmitCheck(), clang::CodeGen::CodeGenFunction::EmitCheckedLValue(), clang::CodeGen::CodeGenFunction::EmitLoadOfScalar(), emitNonNullArgCheck(), emitPointerArithmetic(), clang::CodeGen::CodeGenFunction::EmitTypeCheck(), clang::CodeGen::CodeGenFunction::EmitVariablyModifiedType(), clang::CodeGen::CodeGenFunction::GenerateCode(), clang::CodeGen::CodeGenModule::GetAddrOfConstantStringFromLiteral(), getDarwinDefines(), HasFeature(), clang::CodeGen::CodeGenModule::isInSanitizerBlacklist(), clang::RecordDecl::mayInsertExtraPadding(), clang::driver::SanitizerArgs::needsAsanRt(), clang::driver::SanitizerArgs::needsDfsanRt(), clang::driver::SanitizerArgs::needsLsanRt(), clang::driver::SanitizerArgs::needsMsanRt(), clang::driver::SanitizerArgs::needsTsanRt(), clang::CodeGen::SanitizerMetadata::reportGlobalToASan(), clang::CodeGen::CodeGenFunction::sanitizePerformTypeCheck(), clang::driver::SanitizerArgs::sanitizesVptr(), clang::CodeGen::CodeGenModule::SetLLVMFunctionAttributesForDefinition(), and clang::CodeGen::CodeGenFunction::StartFunction().
void SanitizerSet::set | ( | SanitizerKind | K, |
bool | Value | ||
) |
Enable or disable a certain sanitizer.
Definition at line 24 of file Sanitizers.cpp.
Referenced by ParseLangArgs().