diff options
author | owenca <owenpiano@gmail.com> | 2025-09-14 14:20:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-14 14:20:59 -0700 |
commit | 30f4781eef567b99214e02137a57c7ac91279a48 (patch) | |
tree | 7ba4dbcbe2b8531e7d97431ed4d9026bf0f884cf /clang/lib/Format/Format.cpp | |
parent | 7d949ee04f9863093dc3605feeca931318b0a0cd (diff) | |
download | llvm-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.cpp | 1 |
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: |