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

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 24 21:37:47 PDT 2022


owenpan added a comment.

Can you run git-clang-format?



================
Comment at: clang/lib/Format/TokenAnnotator.cpp:1340
                               Keywords.kw_region)) {
-      bool IsMark = CurrentToken->is(Keywords.kw_mark);
+      bool IsMarkOrRegion = CurrentToken->isOneOf(Keywords.kw_mark, Keywords.kw_region);
       next();
----------------
Over 80 columns.


================
Comment at: clang/unittests/Format/TokenAnnotatorTest.cpp:9
 
+#include "clang/Basic/TokenKinds.h"
 #include "clang/Format/Format.h"
----------------
Extraneous.


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