[clang] d0d9d1e - [clang-format] Move bracket to correct line.

Adrian Kuegel via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 25 02:06:15 PDT 2022


Author: Adrian Kuegel
Date: 2022-10-25T11:06:02+02:00
New Revision: d0d9d1e3d232d4025bcb776117dc6a0df71da23c

URL: https://github.com/llvm/llvm-project/commit/d0d9d1e3d232d4025bcb776117dc6a0df71da23c
DIFF: https://github.com/llvm/llvm-project/commit/d0d9d1e3d232d4025bcb776117dc6a0df71da23c.diff

LOG: [clang-format] Move bracket to correct line.

Added: 
    

Modified: 
    clang/lib/Format/TokenAnnotator.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp
index 0b613c95110f..da6e21c48814 100644
--- a/clang/lib/Format/TokenAnnotator.cpp
+++ b/clang/lib/Format/TokenAnnotator.cpp
@@ -1344,8 +1344,8 @@ class AnnotatingParser {
       while (CurrentToken) {
         if (IsMarkOrRegion || CurrentToken->Previous->is(TT_BinaryOperator)) {
           CurrentToken->setType(TT_ImplicitStringLiteral);
-        next();
         }
+        next();
       }
     }
   }


        


More information about the cfe-commits mailing list