reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/include/clang/Basic/Features.def
   40         LangOpts.Sanitize.hasOneOf(SanitizerKind::Address |
   43         LangOpts.Sanitize.has(SanitizerKind::Leak))
   45         LangOpts.Sanitize.hasOneOf(SanitizerKind::HWAddress |
   47 FEATURE(memtag_sanitizer, LangOpts.Sanitize.has(SanitizerKind::MemTag))
   50         LangOpts.Sanitize.hasOneOf(SanitizerKind::Undefined))
   88         LangOpts.Sanitize.hasOneOf(SanitizerKind::Memory |
   90 FEATURE(thread_sanitizer, LangOpts.Sanitize.has(SanitizerKind::Thread))
   91 FEATURE(dataflow_sanitizer, LangOpts.Sanitize.has(SanitizerKind::DataFlow))
   92 FEATURE(scudo, LangOpts.Sanitize.hasOneOf(SanitizerKind::Scudo))
  220 FEATURE(safe_stack, LangOpts.Sanitize.has(SanitizerKind::SafeStack))
  222         LangOpts.Sanitize.has(SanitizerKind::ShadowCallStack))
tools/clang/lib/AST/Decl.cpp
 4395   const SanitizerMask EnabledAsanMask = Context.getLangOpts().Sanitize.Mask &
tools/clang/lib/Basic/Targets/OSTargets.cpp
   31   if (Opts.Sanitize.has(SanitizerKind::Address))
tools/clang/lib/CodeGen/BackendUtil.cpp
  541   Options.Atomic = LangOpts.Sanitize.has(SanitizerKind::Thread);
  615   if (LangOpts.Sanitize.has(SanitizerKind::LocalBounds)) {
  631   if (LangOpts.Sanitize.has(SanitizerKind::Address)) {
  638   if (LangOpts.Sanitize.has(SanitizerKind::KernelAddress)) {
  645   if (LangOpts.Sanitize.has(SanitizerKind::HWAddress)) {
  652   if (LangOpts.Sanitize.has(SanitizerKind::KernelHWAddress)) {
  659   if (LangOpts.Sanitize.has(SanitizerKind::Memory)) {
  666   if (LangOpts.Sanitize.has(SanitizerKind::KernelMemory)) {
  673   if (LangOpts.Sanitize.has(SanitizerKind::Thread)) {
  680   if (LangOpts.Sanitize.has(SanitizerKind::DataFlow)) {
  968   if (LangOpts.Sanitize.has(SanitizerKind::Address)) {
  972   if (LangOpts.Sanitize.has(SanitizerKind::KernelAddress)) {
  976   if (LangOpts.Sanitize.has(SanitizerKind::Memory)) {
  981   if (LangOpts.Sanitize.has(SanitizerKind::KernelMemory)) {
  986   if (LangOpts.Sanitize.has(SanitizerKind::Thread)) {
 1141       if (LangOpts.Sanitize.has(SanitizerKind::LocalBounds))
 1162       if (LangOpts.Sanitize.has(SanitizerKind::LocalBounds))
 1167       if (LangOpts.Sanitize.has(SanitizerKind::Memory)) {
 1176       if (LangOpts.Sanitize.has(SanitizerKind::Thread)) {
 1184       if (LangOpts.Sanitize.has(SanitizerKind::Address)) {
 1240     if (LangOpts.Sanitize.has(SanitizerKind::HWAddress)) {
 1245     if (LangOpts.Sanitize.has(SanitizerKind::KernelHWAddress)) {
tools/clang/lib/CodeGen/CGDeclCXX.cpp
  353   if (getLangOpts().Sanitize.has(SanitizerKind::Address) &&
  357   if (getLangOpts().Sanitize.has(SanitizerKind::KernelAddress) &&
  361   if (getLangOpts().Sanitize.has(SanitizerKind::HWAddress) &&
  365   if (getLangOpts().Sanitize.has(SanitizerKind::KernelHWAddress) &&
  369   if (getLangOpts().Sanitize.has(SanitizerKind::MemTag) &&
  373   if (getLangOpts().Sanitize.has(SanitizerKind::Thread) &&
  377   if (getLangOpts().Sanitize.has(SanitizerKind::Memory) &&
  381   if (getLangOpts().Sanitize.has(SanitizerKind::KernelMemory) &&
  385   if (getLangOpts().Sanitize.has(SanitizerKind::SafeStack) &&
  389   if (getLangOpts().Sanitize.has(SanitizerKind::ShadowCallStack) &&
tools/clang/lib/CodeGen/CGExpr.cpp
 3211   SanOpts = CGM.getLangOpts().Sanitize;
 3258     if (CGM.getLangOpts().Sanitize.has(Mask))
tools/clang/lib/CodeGen/CodeGenFunction.cpp
   52       LangOpts.Sanitize.has(SanitizerKind::HWAddress) ||
   53       LangOpts.Sanitize.has(SanitizerKind::Memory))
   64       SanOpts(CGM.getLangOpts().Sanitize), DebugInfo(CGM.getModuleDebugInfo()),
tools/clang/lib/CodeGen/CodeGenModule.cpp
  140   if (LangOpts.Sanitize.has(SanitizerKind::Thread) ||
  536   if (LangOpts.Sanitize.has(SanitizerKind::CFIICall)) {
 1773   if (!LangOpts.Sanitize.has(SanitizerKind::CFIICall))
 2255       LangOpts.Sanitize.Mask &
 5835   return ((LangOpts.Sanitize.has(SanitizerKind::CFIVCall) &&
 5837           (LangOpts.Sanitize.has(SanitizerKind::CFINVCall) &&
 5839           (LangOpts.Sanitize.has(SanitizerKind::CFIDerivedCast) &&
 5841           (LangOpts.Sanitize.has(SanitizerKind::CFIUnrelatedCast) &&
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
 2022   if (CGM.getLangOpts().Sanitize.has(SanitizerKind::Address) && AS == 0 &&
 2051   if (!CGM.getLangOpts().Sanitize.has(SanitizerKind::Address) || AS != 0)
tools/clang/lib/CodeGen/SanitizerMetadata.cpp
   33   if (!isAsanHwasanOrMemTag(CGM.getLangOpts().Sanitize))
   64   if (!isAsanHwasanOrMemTag(CGM.getLangOpts().Sanitize))
   81   if (isAsanHwasanOrMemTag(CGM.getLangOpts().Sanitize))
tools/clang/lib/Frontend/CompilerInvocation.cpp
 3157                       Diags, Opts.Sanitize);
 3492                         Diags, LangOpts.Sanitize);
 3529       !LangOpts.Sanitize.has(SanitizerKind::Address) &&
 3530       !LangOpts.Sanitize.has(SanitizerKind::KernelAddress) &&
 3531       !LangOpts.Sanitize.has(SanitizerKind::Memory) &&
 3532       !LangOpts.Sanitize.has(SanitizerKind::KernelMemory);
 3545       !Res.getLangOpts()->Sanitize.empty()) {
 3648   SanitizerSet SanHash = LangOpts->Sanitize;
tools/clang/lib/Serialization/ASTReader.cpp
  339     SanitizerSet ExistingSanitizers = ExistingLangOpts.Sanitize;
  340     SanitizerSet ImportedSanitizers = LangOpts.Sanitize;