[clang] [C++26] [Contracts] Initial parser support (PR #221139)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 5 02:48:01 PDT 2026


================
@@ -1833,6 +1833,14 @@ defm coroutines : BoolFOption<"coroutines",
           "Enable support for the C++ Coroutines">,
   NegFlag<SetFalse>>;
 
+defm contracts : BoolFOption<"contracts",
+  LangOpts<"Contracts">, DefaultFalse,
+  PosFlag<SetTrue, [], [CC1Option],
----------------
cor3ntin wrote:

No - ideally by the time this is mature we release contracts an an extension in all language modes without a flag. It's just there during development.

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


More information about the cfe-commits mailing list