[clang] [C++26] [Contracts] Initial parser support (PR #221139)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 4 07:31:35 PDT 2026
================
@@ -0,0 +1,16 @@
+// RUN: %clang_cc1 -std=c17 -fcontracts -fsyntax-only -verify %s
+
+// Contracts are a C++ feature. Enabling the parser option in C mode must not
----------------
erichkeane wrote:
So they are contextual keywords, right? Can we have some tests that make sure we don't stomp on these in both of the C++ modes too? (Even with it enabled).
Also, this doesn't check against contextual keywords, since you never use it in a contextual-keyword-location.
https://github.com/llvm/llvm-project/pull/221139
More information about the cfe-commits
mailing list