aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorowenca <owenpiano@gmail.com>2025-09-14 14:20:59 -0700
committerGitHub <noreply@github.com>2025-09-14 14:20:59 -0700
commit30f4781eef567b99214e02137a57c7ac91279a48 (patch)
tree7ba4dbcbe2b8531e7d97431ed4d9026bf0f884cf /clang/lib/Format/Format.cpp
parent7d949ee04f9863093dc3605feeca931318b0a0cd (diff)
downloadllvm-30f4781eef567b99214e02137a57c7ac91279a48.zip
llvm-30f4781eef567b99214e02137a57c7ac91279a48.tar.gz
llvm-30f4781eef567b99214e02137a57c7ac91279a48.tar.bz2
[clang-format] Handle C digit separators (#158418)
Fixes #158413
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r--clang/lib/Format/Format.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index 1776e37..68e9618 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -4117,6 +4117,7 @@ LangOptions getFormattingLangOpts(const FormatStyle &Style) {
switch (Style.Language) {
case FormatStyle::LK_C:
LangOpts.C11 = 1;
+ LangOpts.C23 = 1;
break;
case FormatStyle::LK_Cpp:
case FormatStyle::LK_ObjC: