This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Adjust editor cursor position past #include blocks
ClosedPublic

Authored by owenpan on Apr 26 2022, 7:02 AM.

Diff Detail

Event Timeline

owenpan created this revision.Apr 26 2022, 7:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 26 2022, 7:02 AM
owenpan requested review of this revision.Apr 26 2022, 7:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 26 2022, 7:02 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
curdeius accepted this revision.Apr 26 2022, 7:10 AM

Looks ok, but I'm not very familiar with this part of clang-format, so please leave some time for others to chime in.

This revision is now accepted and ready to land.Apr 26 2022, 7:10 AM
HazardyKnusperkeks added inline comments.
clang/unittests/Format/SortIncludesTest.cpp
895

Should we add a check for the formatted text? So that one could easily see where the cursor is moved.

owenpan updated this revision to Diff 425376.Apr 26 2022, 5:59 PM

Updated the test case.

owenpan marked an inline comment as done.Apr 26 2022, 6:00 PM
owenpan added inline comments.
clang/unittests/Format/SortIncludesTest.cpp
895

Yep!

This revision was automatically updated to reflect the committed changes.
owenpan marked an inline comment as done.