diff options
author | Owen Pan <owenpiano@gmail.com> | 2025-04-05 13:35:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-05 13:35:45 -0700 |
commit | d71ee7d23048ca64d14a7536927a006867cea39a (patch) | |
tree | 4c8f7103ec394b3406bca8d818250fcb7e4115ee /clang/lib/Format/Format.cpp | |
parent | b1cd3cb3f42881a84ebc3da1dfae59637281d73c (diff) | |
download | llvm-d71ee7d23048ca64d14a7536927a006867cea39a.zip llvm-d71ee7d23048ca64d14a7536927a006867cea39a.tar.gz llvm-d71ee7d23048ca64d14a7536927a006867cea39a.tar.bz2 |
[clang-format] Set C11 instead of C17 for LK_C (#134472)
Fix #134453
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r-- | clang/lib/Format/Format.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index b74a863..226d39f 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -4010,7 +4010,7 @@ LangOptions getFormattingLangOpts(const FormatStyle &Style) { switch (Style.Language) { case FormatStyle::LK_C: - LangOpts.C17 = 1; + LangOpts.C11 = 1; break; case FormatStyle::LK_Cpp: case FormatStyle::LK_ObjC: |