[clang] [clang-tools-extra] [Clang] Add support for the C `defer` TS (PR #162848)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 4 01:01:33 PST 2025


================
@@ -6981,6 +6981,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
       types::isCXX(InputType))
     CmdArgs.push_back("-fcoro-aligned-allocation");
 
+  if (Args.hasFlag(options::OPT_fdefer_ts, options::OPT_fno_defer_ts, false))
+    CmdArgs.push_back("-fdefer-ts");
----------------
cor3ntin wrote:

```suggestion
  if (Args.hasFlag(options::OPT_fdefer_ts, options::OPT_fno_defer_ts, /*???=*/false))
    CmdArgs.push_back("-fdefer-ts");
```

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


More information about the cfe-commits mailing list