[clang] [Driver][BoundsSafety] Add -fexperimental-bounds-safety flag (PR #70480)

Dan Liew via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 8 13:43:32 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) {
----------------
delcypher wrote:

To be clear. I think it's fine to also do the language check in the driver but I think the frontend should **also** do language check so that it is not possible to run it in an invalid configuration.

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


More information about the cfe-commits mailing list