Skip to content

Commit d66dbd6

Browse files
authored
[clang][doc] Document C2y flags (#138521)
As discussed at llvm/llvm-project#138459 (comment)
1 parent 4b30b3f commit d66dbd6

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

clang/docs/CommandGuide/clang.rst

+8
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,14 @@ Language Selection and Mode Options
155155
156156
ISO C 2023 with GNU extensions
157157

158+
| ``c2y``
159+
160+
ISO C 202y
161+
162+
| ``gnu2y``
163+
164+
ISO C 202y with GNU extensions
165+
158166
The default C language standard is ``gnu17``, except on PS4, where it is
159167
``gnu99``.
160168

clang/include/clang/Basic/LangStandards.def

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ LANGSTANDARD(c2y, "c2y",
105105
LANGSTANDARD(gnu2y, "gnu2y",
106106
C, "Working Draft for ISO C2y with GNU extensions",
107107
LineComment | C99 | C11 | C17 | C23 | C2y | Digraphs | GNUMode | HexFloat)
108-
108+
// TODO: Add the iso9899:202y alias once ISO publishes the standard.
109109

110110
// C++ modes
111111
LANGSTANDARD(cxx98, "c++98",

0 commit comments

Comments
 (0)