Skip to content

Commit ed6d505

Browse files
authored
[C][Docs] Add backported language features (#153837)
We've backported a lot more features from C to previous C standards than we were documenting. I took a pass over the c_status page for Clang and pulled more entries to add to our documentation.
1 parent 0bb1af4 commit ed6d505

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

clang/docs/LanguageExtensions.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1715,11 +1715,40 @@ Variadic Friends __cpp_variadic_friend C
17151715
Trivial Relocatability __cpp_trivial_relocatability C++26 C++03
17161716
--------------------------------------------- -------------------------------- ------------- -------------
17171717
Designated initializers (N494) C99 C89
1718+
``_Complex`` (N693) C99 C89, C++
1719+
``_Bool`` (N815) C99 C89
1720+
Variable-length arrays (N683) C99 C89, C++
1721+
Flexible array members C99 C89, C++
1722+
static and type quals in arrays C99 C89
1723+
``long long`` (N601) C99 C89
1724+
Hexadecimal floating constants (N308) C99 C89
1725+
Compound literals (N716) C99 C89, C++
1726+
``//`` comments (N644) C99 C89
1727+
Mixed declarations and code (N740) C99 C89
1728+
Variadic macros (N707) C99 C89
1729+
Empty macro arguments (N570) C99 C89
1730+
Trailing comma in enum declaration C99 C89
1731+
Implicit ``return 0`` in ``main`` C99 C89
1732+
``__func__`` (N611) C99 C89
1733+
``_Generic`` (N1441) C11 C89, C++
1734+
``_Static_assert`` (N1330) C11 C89, C++
1735+
``_Atomic`` (N1485) C11 C89, C++
1736+
``_Thread_local`` (N1364) C11 C89, C++
17181737
Array & element qualification (N2607) C23 C89
17191738
Attributes (N2335) C23 C89
17201739
``#embed`` (N3017) C23 C89, C++
1740+
Enum with fixed underlying type (N3030) C23 C89
1741+
``#warning`` (N2686) C23 C89
1742+
``_BitInt`` (N3035) C23 C89, C++
1743+
Binary literals (N2549) C23 C89
1744+
Unnamed parameters in a function definition C23 C89
1745+
Free positioning of labels (N2508) C23 C89
1746+
``#elifdef`` (N2645) C23 C89
1747+
``__has_include`` (N2799) C23 C89
17211748
Octal literals prefixed with ``0o`` or ``0O`` C2y C89, C++
17221749
``_Countof`` (N3369, N3469) C2y C89
1750+
``_Generic`` with a type operand (N3260) C2y C89, C++
1751+
``++``/``--`` on ``_Complex`` value (N3259) C2y C89, C++
17231752
============================================= ================================ ============= =============
17241753

17251754
Builtin type aliases

0 commit comments

Comments
 (0)