This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Fix SeparateDefinitionBlocks breaking up function-try-block.
ClosedPublic

Authored by curdeius on Mar 25 2022, 3:03 AM.

Diff Detail

Event Timeline

curdeius created this revision.Mar 25 2022, 3:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 25 2022, 3:03 AM
curdeius requested review of this revision.Mar 25 2022, 3:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 25 2022, 3:03 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Mar 27 2022, 12:36 PM

We can refactor by extending _verifyFormat() instead of adding a new function.

clang/unittests/Format/DefinitionBlockSeparatorTest.cpp
46–47
54–55
67
458
468
curdeius updated this revision to Diff 422479.Apr 13 2022, 4:55 AM
curdeius marked 5 inline comments as done.

Address review comments.

owenpan accepted this revision.Apr 13 2022, 5:30 AM
This revision was landed with ongoing or failed builds.Apr 13 2022, 7:44 AM
This revision was automatically updated to reflect the committed changes.