Home
last modified time | relevance | path

Searched refs:Sanitize (Results 1 – 21 of 21) sorted by relevance

/freebsd-14-stable/contrib/llvm-project/clang/include/clang/Basic/
HDFeatures.def41 LangOpts.Sanitize.hasOneOf(SanitizerKind::Address |
44 LangOpts.Sanitize.has(SanitizerKind::Leak))
46 LangOpts.Sanitize.hasOneOf(SanitizerKind::HWAddress |
49 LangOpts.Sanitize.has(SanitizerKind::MemtagStack))
51 LangOpts.Sanitize.has(SanitizerKind::MemtagHeap))
53 LangOpts.Sanitize.has(SanitizerKind::MemtagGlobals))
56 LangOpts.Sanitize.hasOneOf(SanitizerKind::Undefined))
99 FEATURE(numerical_stability_sanitizer, LangOpts.Sanitize.has(SanitizerKind::NumericalStability))
101 LangOpts.Sanitize.hasOneOf(SanitizerKind::Memory |
103 FEATURE(thread_sanitizer, LangOpts.Sanitize.has(SanitizerKind::Thread))
[all …]
HDLangOptions.h467 SanitizerSet Sanitize; variable
/freebsd-14-stable/contrib/llvm-project/clang/lib/CodeGen/
HDCGDeclCXX.cpp462 if (getLangOpts().Sanitize.has(SanitizerKind::Address) && in CreateGlobalInitOrCleanUpFunction()
466 if (getLangOpts().Sanitize.has(SanitizerKind::KernelAddress) && in CreateGlobalInitOrCleanUpFunction()
470 if (getLangOpts().Sanitize.has(SanitizerKind::HWAddress) && in CreateGlobalInitOrCleanUpFunction()
474 if (getLangOpts().Sanitize.has(SanitizerKind::KernelHWAddress) && in CreateGlobalInitOrCleanUpFunction()
478 if (getLangOpts().Sanitize.has(SanitizerKind::MemtagStack) && in CreateGlobalInitOrCleanUpFunction()
482 if (getLangOpts().Sanitize.has(SanitizerKind::Thread) && in CreateGlobalInitOrCleanUpFunction()
486 if (getLangOpts().Sanitize.has(SanitizerKind::NumericalStability) && in CreateGlobalInitOrCleanUpFunction()
490 if (getLangOpts().Sanitize.has(SanitizerKind::Memory) && in CreateGlobalInitOrCleanUpFunction()
494 if (getLangOpts().Sanitize.has(SanitizerKind::KernelMemory) && in CreateGlobalInitOrCleanUpFunction()
498 if (getLangOpts().Sanitize.has(SanitizerKind::SafeStack) && in CreateGlobalInitOrCleanUpFunction()
[all …]
HDSanitizerMetadata.cpp42 SanitizerSet FsanitizeArgument = CGM.getLangOpts().Sanitize; in reportGlobal()
80 if (!isAsanHwasanOrMemTag(CGM.getLangOpts().Sanitize)) in reportGlobal()
HDBackendUtil.cpp648 LangOpts.Sanitize.has(SanitizerKind::KCFI)) in addKCFIPass()
657 LangOpts.Sanitize.has(SanitizerKind::KCFI)) in addKCFIPass()
681 if (LangOpts.Sanitize.has(Mask)) { in addSanitizers()
707 if (LangOpts.Sanitize.has(SanitizerKind::Thread)) { in addSanitizers()
712 if (LangOpts.Sanitize.has(SanitizerKind::NumericalStability)) in addSanitizers()
716 if (LangOpts.Sanitize.has(Mask)) { in addSanitizers()
734 if (LangOpts.Sanitize.has(Mask)) { in addSanitizers()
744 if (LangOpts.Sanitize.has(SanitizerKind::DataFlow)) { in addSanitizers()
992 if (LangOpts.Sanitize.has(SanitizerKind::LocalBounds)) in RunOptimizationPipeline()
HDCodeGenModule.cpp403 if (LangOpts.Sanitize.has(SanitizerKind::Thread) || in CodeGenModule()
909 if (LangOpts.Sanitize.has(SanitizerKind::KCFI)) in Release()
1131 if (LangOpts.Sanitize.has(SanitizerKind::CFIICall)) { in Release()
1142 if (LangOpts.Sanitize.has(SanitizerKind::KCFI)) { in Release()
1185 if (LangOpts.Sanitize.has(SanitizerKind::MemtagStack)) in Release()
2766 if (!LangOpts.Sanitize.has(SanitizerKind::CFIICall)) in CreateFunctionTypeMetadataForIcall()
2914 if (LangOpts.Sanitize.has(SanitizerKind::KCFI)) in SetFunctionAttributes()
7592 return ((LangOpts.Sanitize.has(SanitizerKind::CFIVCall) && in NeedAllVtablesTypeId()
7594 (LangOpts.Sanitize.has(SanitizerKind::CFINVCall) && in NeedAllVtablesTypeId()
7596 (LangOpts.Sanitize.has(SanitizerKind::CFIDerivedCast) && in NeedAllVtablesTypeId()
[all …]
HDCodeGenFunction.cpp69 LangOpts.Sanitize.has(SanitizerKind::HWAddress) || in shouldEmitLifetimeMarkers()
70 LangOpts.Sanitize.has(SanitizerKind::Memory)) in shouldEmitLifetimeMarkers()
81 SanOpts(CGM.getLangOpts().Sanitize), CurFPFeatures(CGM.getLangOpts()), in CodeGenFunction()
HDCGVTables.cpp1003 if (CGM.getLangOpts().Sanitize.has(SanitizerKind::HWAddress)) { in RemoveHwasanMetadata()
HDItaniumCXXABI.cpp2456 if (CGM.getLangOpts().Sanitize.has(SanitizerKind::Address) && AS == 0 && in InitializeArrayCookie()
2485 if (!CGM.getLangOpts().Sanitize.has(SanitizerKind::Address) || AS != 0) in readArrayCookieImpl()
HDCGCall.cpp1814 if (Module.getLangOpts().Sanitize.has(SanitizerKind::Memory)) in HasStrictReturn()
1836 Module.getLangOpts().Sanitize.has(SanitizerKind::Return); in HasStrictReturn()
HDCGExpr.cpp3757 SanOpts = CGM.getLangOpts().Sanitize; in EmitCfiCheckFail()
3805 if (CGM.getLangOpts().Sanitize.has(Mask)) in EmitCfiCheckFail()
/freebsd-14-stable/contrib/llvm-project/clang/lib/Driver/ToolChains/
HDDarwin.cpp1516 const SanitizerArgs &Sanitize = getSanitizerArgs(Args); in AddLinkRuntimeLibArgs() local
1518 if (!Sanitize.needsSharedRt()) { in AddLinkRuntimeLibArgs()
1520 if (Sanitize.needsUbsanRt()) { in AddLinkRuntimeLibArgs()
1522 } else if (Sanitize.needsAsanRt()) { in AddLinkRuntimeLibArgs()
1524 } else if (Sanitize.needsTsanRt()) { in AddLinkRuntimeLibArgs()
1534 if (Sanitize.linkRuntimes()) { in AddLinkRuntimeLibArgs()
1535 if (Sanitize.needsAsanRt()) { in AddLinkRuntimeLibArgs()
1536 if (Sanitize.needsStableAbi()) { in AddLinkRuntimeLibArgs()
1539 assert(Sanitize.needsSharedRt() && in AddLinkRuntimeLibArgs()
1544 if (Sanitize.needsLsanRt()) in AddLinkRuntimeLibArgs()
[all …]
HDMinGW.cpp103 const SanitizerArgs &Sanitize = TC.getSanitizerArgs(Args); in ConstructJob() local
211 if (Sanitize.needsAsanRt() && !Args.hasArg(options::OPT_nostdlib) && in ConstructJob()
316 if (Sanitize.needsAsanRt()) { in ConstructJob()
/freebsd-14-stable/contrib/llvm-project/clang/lib/Basic/Targets/
HDOSTargets.cpp31 if (Opts.Sanitize.has(SanitizerKind::Address)) in getDarwinDefines()
/freebsd-14-stable/contrib/llvm-project/clang/lib/Frontend/
HDCompilerInvocation.cpp3554 for (StringRef Sanitizer : serializeSanitizerKinds(Opts.Sanitize)) in GenerateLangArgs()
3753 for (StringRef Sanitizer : serializeSanitizerKinds(Opts.Sanitize)) in GenerateLangArgs()
3849 Diags, Opts.Sanitize); in ParseLangArgs()
4256 Diags, Opts.Sanitize); in ParseLangArgs()
4848 !LangOpts.Sanitize.has(SanitizerKind::Address) && in CreateFromArgsImpl()
4849 !LangOpts.Sanitize.has(SanitizerKind::KernelAddress) && in CreateFromArgsImpl()
4850 !LangOpts.Sanitize.has(SanitizerKind::Memory) && in CreateFromArgsImpl()
4851 !LangOpts.Sanitize.has(SanitizerKind::KernelMemory); in CreateFromArgsImpl()
4868 !Res.getLangOpts().Sanitize.empty()) { in CreateFromArgsImpl()
5024 SanitizerSet SanHash = getLangOpts().Sanitize; in getModuleHash()
/freebsd-14-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
HDsanitizer_flags.inc171 "Sanitize complete address space; "
/freebsd-14-stable/usr.sbin/bsdconfig/share/
HDdialog.subr1787 # Sanitize the line before storing it if desired
1876 # Sanitize the menutag before storing it if desired
1914 # Sanitize the menuitem before storing it if desired
1953 # Sanitize the defaulitem before storing it if desired
/freebsd-14-stable/usr.sbin/bsdconfig/share/media/
HDwlan.subr240 gsub(/'\''/, "'\''\\'\'\''", value) # Sanitize the value
323 gsub(/'\''/, "'\''\\'\'\''", value) # Sanitize the value
/freebsd-14-stable/contrib/llvm-project/clang/lib/Serialization/
HDASTReader.cpp359 SanitizerSet ExistingSanitizers = ExistingLangOpts.Sanitize; in checkLanguageOptions()
360 SanitizerSet ImportedSanitizers = LangOpts.Sanitize; in checkLanguageOptions()
6040 LangOpts.Sanitize.set(SanitizerKind::ID, Record[Idx++]); in ParseLanguageOptions()
HDASTWriter.cpp1557 Record.push_back(LangOpts.Sanitize.has(SanitizerKind::ID)); in WriteControlBlock()
/freebsd-14-stable/contrib/llvm-project/clang/lib/AST/
HDDecl.cpp5137 const SanitizerMask EnabledAsanMask = Context.getLangOpts().Sanitize.Mask & in mayInsertExtraPadding()