[PATCH] D124452: [clang-format] Adjust editor cursor position past #include blocks

Björn Schäpers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 26 12:49:50 PDT 2022


HazardyKnusperkeks accepted this revision.
HazardyKnusperkeks added inline comments.


================
Comment at: clang/unittests/Format/SortIncludesTest.cpp:895
+  Style.IncludeBlocks = Style.IBS_Regroup;
+  std::string Code = "#include \"b\"\n"  // Start of line: 0
+                     "\n"                // Start of line: 13
----------------
Should we add a check for the formatted text? So that one could easily see where the cursor is moved.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D124452



More information about the cfe-commits mailing list