[PATCH] D136336: [clang-format] Mark pragma region lines as StringLiterals

Tobias Hieta via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 25 13:24:46 PDT 2022


thieta added inline comments.


================
Comment at: clang/lib/Format/TokenAnnotator.cpp:1345
       while (CurrentToken) {
-        if (IsMark || CurrentToken->Previous->is(TT_BinaryOperator))
+        if (IsMarkOrRegion || CurrentToken->Previous->is(TT_BinaryOperator)) {
           CurrentToken->setType(TT_ImplicitStringLiteral);
----------------
HazardyKnusperkeks wrote:
> This shouldn't be here. There is no closing brace for this, or am I missing something?
No you are right it was a miss in the rebase. But it's fixed on main now. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136336/new/

https://reviews.llvm.org/D136336



More information about the cfe-commits mailing list