[clang] Add fine-grained `__has_feature()` cutout (PR #170822)

Florian Mayer via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 8 16:56:09 PST 2025


================
@@ -3973,6 +3980,10 @@ bool CompilerInvocation::ParseLangArgs(LangOptions &Opts, ArgList &Args,
     Opts.PIE = Args.hasArg(OPT_pic_is_pie);
     parseSanitizerKinds("-fsanitize=", Args.getAllArgValues(OPT_fsanitize_EQ),
                         Diags, Opts.Sanitize);
+    parseSanitizerKinds(
+        "-fsanitize-ignore-for-ubsan-feature=",
+        Args.getAllArgValues(OPT_fsanitize_ignore_for_ubsan_feature_EQ), Diags,
+        Opts.UBSanFeatureSuppressedSanitize);
----------------
fmayer wrote:

I would use consistent terminology regarding `ignore` or `suppress` for the flag and the opt

https://github.com/llvm/llvm-project/pull/170822


More information about the cfe-commits mailing list