Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions clang/docs/CommandGuide/clang.rst
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,14 @@ Language Selection and Mode Options

ISO C 2023 with GNU extensions

| ``c2y``

ISO C 202y

| ``gnu2y``

ISO C 202y with GNU extensions

The default C language standard is ``gnu17``, except on PS4, where it is
``gnu99``.

Expand Down
2 changes: 1 addition & 1 deletion clang/include/clang/Basic/LangStandards.def
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ LANGSTANDARD(c2y, "c2y",
LANGSTANDARD(gnu2y, "gnu2y",
C, "Working Draft for ISO C2y with GNU extensions",
LineComment | C99 | C11 | C17 | C23 | C2y | Digraphs | GNUMode | HexFloat)

// TODO: Add the iso9899:202y alias once ISO publishes the standard.

// C++ modes
LANGSTANDARD(cxx98, "c++98",
Expand Down