[clang] [Driver][BoundsSafety] Add -fbounds-safety-experimental flag (PR #70480)
Yeoul Na via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 7 09:03:54 PST 2023
================
@@ -3618,6 +3618,27 @@ void CompilerInvocationBase::GenerateLangArgs(const LangOptions &Opts,
GenerateArg(Consumer, OPT_frandomize_layout_seed_EQ, Opts.RandstructSeed);
}
+static void CheckBoundsSafetyLang(InputKind IK, DiagnosticsEngine &Diags) {
----------------
rapidsna wrote:
> I think it's better to handle this language check in Driver, similar to OPT_fminimize_whitespace but for all Inputs.
@MaskRay If we do it in Driver, wouldn't the option be silently ignored for unsupported languages when we invoke `clang -cc1` directly?
https://github.com/llvm/llvm-project/pull/70480
More information about the cfe-commits
mailing list