LLVM Clang 19 Adds Initial "-std=c2y" Support For The Next C Standard
([LLVM] 3 Hours Ago
-std=c2y and -std=gnu2y)
- Reference: 0001475139
- News link: https://www.phoronix.com/news/LLVM-Clang-19-std-C2Y
- Source link:
LLVM Clang 19 this morning landed initial support for the -std=c2y and -std=gnu2y options for targeting the next C programming language standard.
LLVM Clang 19 is now honoring -std=c2y and -std=gnu2y for targeting the next in-progress C standards. This next revision will likely be called "C26" but as the 2026 publication isn't yet guaranteed, for the time being only the "C2Y" placeholder is being recognized and honored along with GNU2Y as the GNU dialect of C2Y. LLVM Clang 19 also bumps the __STDC_VERSION__ macro to 202400L for reflecting the newer revision.
For now there isn't much to the C2Y support in LLVM/Clang but with time will obviously evolve more past C23 and as more C2Y proposals are published. The C2Y support in LLVM can be tracked via the [1]C status page .
[2]This commit is what adds the initial C2Y/GNU2Y targeting today to LLVM Clang 19 Git.
[1] https://clang.llvm.org/c_status.html#c2y
[2] https://github.com/llvm/llvm-project/commit/b67d557bd3627a428d5041edec129587d6d3972c
LLVM Clang 19 is now honoring -std=c2y and -std=gnu2y for targeting the next in-progress C standards. This next revision will likely be called "C26" but as the 2026 publication isn't yet guaranteed, for the time being only the "C2Y" placeholder is being recognized and honored along with GNU2Y as the GNU dialect of C2Y. LLVM Clang 19 also bumps the __STDC_VERSION__ macro to 202400L for reflecting the newer revision.
For now there isn't much to the C2Y support in LLVM/Clang but with time will obviously evolve more past C23 and as more C2Y proposals are published. The C2Y support in LLVM can be tracked via the [1]C status page .
[2]This commit is what adds the initial C2Y/GNU2Y targeting today to LLVM Clang 19 Git.
[1] https://clang.llvm.org/c_status.html#c2y
[2] https://github.com/llvm/llvm-project/commit/b67d557bd3627a428d5041edec129587d6d3972c
phoronix