This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Fix a bug in RemoveBracesLLVM
ClosedPublic

Authored by owenpan on Jun 10 2022, 1:12 PM.

Details

Summary

Remove the braces of an else block only if the r_brace of the block is followed by an if.

Diff Detail

Event Timeline

owenpan created this revision.Jun 10 2022, 1:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 10 2022, 1:12 PM
owenpan requested review of this revision.Jun 10 2022, 1:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 10 2022, 1:12 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
curdeius accepted this revision.Jun 10 2022, 2:54 PM
This revision is now accepted and ready to land.Jun 10 2022, 2:54 PM
MyDeveloperDay accepted this revision.Jun 10 2022, 11:59 PM
This revision was landed with ongoing or failed builds.Jun 11 2022, 1:12 AM
This revision was automatically updated to reflect the committed changes.