/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | Features.def | 41 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 …]
|
H A D | LangOptions.h | 467 SanitizerSet Sanitize; variable
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGDeclCXX.cpp | 462 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 …]
|
H A D | SanitizerMetadata.cpp | 42 SanitizerSet FsanitizeArgument = CGM.getLangOpts().Sanitize; in reportGlobal() 80 if (!isAsanHwasanOrMemTag(CGM.getLangOpts().Sanitize)) in reportGlobal()
|
H A D | BackendUtil.cpp | 648 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()
|
H A D | CodeGenModule.cpp | 403 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 …]
|
H A D | CodeGenFunction.cpp | 69 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()
|
H A D | CGVTables.cpp | 1003 if (CGM.getLangOpts().Sanitize.has(SanitizerKind::HWAddress)) { in RemoveHwasanMetadata()
|
H A D | ItaniumCXXABI.cpp | 2456 if (CGM.getLangOpts().Sanitize.has(SanitizerKind::Address) && AS == 0 && in InitializeArrayCookie() 2485 if (!CGM.getLangOpts().Sanitize.has(SanitizerKind::Address) || AS != 0) in readArrayCookieImpl()
|
H A D | CGCall.cpp | 1814 if (Module.getLangOpts().Sanitize.has(SanitizerKind::Memory)) in HasStrictReturn() 1836 Module.getLangOpts().Sanitize.has(SanitizerKind::Return); in HasStrictReturn()
|
H A D | CGExpr.cpp | 3757 SanOpts = CGM.getLangOpts().Sanitize; in EmitCfiCheckFail() 3805 if (CGM.getLangOpts().Sanitize.has(Mask)) in EmitCfiCheckFail()
|
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/ |
H A D | Darwin.cpp | 1516 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 …]
|
H A D | MinGW.cpp | 103 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/contrib/llvm-project/clang/lib/Frontend/ |
H A D | CompilerInvocation.cpp | 3554 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/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_flags.inc | 171 "Sanitize complete address space; "
|
/freebsd/usr.sbin/bsdconfig/share/ |
H A D | dialog.subr | 1796 # Sanitize the line before storing it if desired 1885 # Sanitize the menutag before storing it if desired 1923 # Sanitize the menuitem before storing it if desired 1962 # Sanitize the defaulitem before storing it if desired
|
/freebsd/usr.sbin/bsdconfig/share/media/ |
H A D | wlan.subr | 240 gsub(/'\''/, "'\''\\'\'\''", value) # Sanitize the value 323 gsub(/'\''/, "'\''\\'\'\''", value) # Sanitize the value
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTReader.cpp | 359 SanitizerSet ExistingSanitizers = ExistingLangOpts.Sanitize; in checkLanguageOptions() 360 SanitizerSet ImportedSanitizers = LangOpts.Sanitize; in checkLanguageOptions() 6040 LangOpts.Sanitize.set(SanitizerKind::ID, Record[Idx++]); in ParseLanguageOptions()
|
H A D | ASTWriter.cpp | 1557 Record.push_back(LangOpts.Sanitize.has(SanitizerKind::ID)); in WriteControlBlock()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | Decl.cpp | 5137 const SanitizerMask EnabledAsanMask = Context.getLangOpts().Sanitize.Mask & in mayInsertExtraPadding()
|