[PATCH] D136635: [clang-format] Don't misannotate in CTor init list

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


owenpan accepted this revision.
owenpan added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang/unittests/Format/TokenAnnotatorTest.cpp:1077-1079
+  EXPECT_TOKEN(Tokens[6], tok::identifier, TT_Unknown);
+  EXPECT_TOKEN(Tokens[7], tok::l_brace, TT_Unknown);
+  EXPECT_TOKEN(Tokens[8], tok::r_brace, TT_Unknown);
----------------
Maybe instead (or in addition), check the tokens after the comma?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D136635



More information about the cfe-commits mailing list