aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Format/UnwrappedLineParser.cpp
diff options
context:
space:
mode:
authorOwen Pan <owenpiano@gmail.com>2025-04-05 13:35:45 -0700
committerGitHub <noreply@github.com>2025-04-05 13:35:45 -0700
commitd71ee7d23048ca64d14a7536927a006867cea39a (patch)
tree4c8f7103ec394b3406bca8d818250fcb7e4115ee /clang/lib/Format/UnwrappedLineParser.cpp
parentb1cd3cb3f42881a84ebc3da1dfae59637281d73c (diff)
downloadllvm-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/UnwrappedLineParser.cpp')
-rw-r--r--clang/lib/Format/UnwrappedLineParser.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Format/UnwrappedLineParser.cpp b/clang/lib/Format/UnwrappedLineParser.cpp
index 213b706..9641da1 100644
--- a/clang/lib/Format/UnwrappedLineParser.cpp
+++ b/clang/lib/Format/UnwrappedLineParser.cpp
@@ -167,9 +167,7 @@ UnwrappedLineParser::UnwrappedLineParser(
? IG_Rejected
: IG_Inited),
IncludeGuardToken(nullptr), FirstStartColumn(FirstStartColumn),
- Macros(Style.Macros, SourceMgr, Style, Allocator, IdentTable) {
- assert(IsCpp == (LangOpts.CXXOperatorNames || LangOpts.C17));
-}
+ Macros(Style.Macros, SourceMgr, Style, Allocator, IdentTable) {}
void UnwrappedLineParser::reset() {
PPBranchLevel = -1;