[clang] Add C language support for clang-format IntegerLiteralSeparator (PR #182296)

John Mitchell via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 20 06:18:03 PST 2026


================
@@ -4751,8 +4751,8 @@ the configuration (without a prefix: ``Auto``).
 .. _IntegerLiteralSeparator:
 
 **IntegerLiteralSeparator** (``IntegerLiteralSeparatorStyle``) :versionbadge:`clang-format 16` :ref:`ΒΆ <IntegerLiteralSeparator>`
-  Format integer literal separators (``'`` for C++ and ``_`` for C#, Java,
-  and JavaScript).
+  Format integer literal separators (``'`` for C, C++ and ``_`` for C#, Java,
+  and JavaScript).  Note that using the separator with C requires a C23+ compiler.
----------------
fauxprogrammer wrote:

Ah, didn't realize that, thank you!  Do I still include the .rst file in the changeset? 

https://github.com/llvm/llvm-project/pull/182296


More information about the cfe-commits mailing list