HazardyKnusperkeks created this revision. HazardyKnusperkeks added reviewers: owenpan, rymiel, MyDeveloperDay. HazardyKnusperkeks added a project: clang-format. Herald added a project: All. HazardyKnusperkeks requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
Done by clang-format itself. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D138354 Files: clang/lib/Format/TokenAnnotator.cpp Index: clang/lib/Format/TokenAnnotator.cpp =================================================================== --- clang/lib/Format/TokenAnnotator.cpp +++ clang/lib/Format/TokenAnnotator.cpp @@ -1352,9 +1352,8 @@ next(); next(); // Consume first token (so we fix leading whitespace). while (CurrentToken) { - if (IsMarkOrRegion || CurrentToken->Previous->is(TT_BinaryOperator)) { + if (IsMarkOrRegion || CurrentToken->Previous->is(TT_BinaryOperator)) CurrentToken->setType(TT_ImplicitStringLiteral); - } next(); } }
Index: clang/lib/Format/TokenAnnotator.cpp =================================================================== --- clang/lib/Format/TokenAnnotator.cpp +++ clang/lib/Format/TokenAnnotator.cpp @@ -1352,9 +1352,8 @@ next(); next(); // Consume first token (so we fix leading whitespace). while (CurrentToken) { - if (IsMarkOrRegion || CurrentToken->Previous->is(TT_BinaryOperator)) { + if (IsMarkOrRegion || CurrentToken->Previous->is(TT_BinaryOperator)) CurrentToken->setType(TT_ImplicitStringLiteral); - } next(); } }
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits