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

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 26 18:00:22 PDT 2022


owenpan marked an inline comment as done.
owenpan 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
----------------
HazardyKnusperkeks wrote:
> Should we add a check for the formatted text? So that one could easily see where the cursor is moved.
Yep!


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

https://reviews.llvm.org/D124452



More information about the cfe-commits mailing list