This is an archive of the discontinued LLVM Phabricator instance.

[clang-format][NFC] Early return when nothing to do
ClosedPublic

Authored by HazardyKnusperkeks on Dec 3 2021, 12:03 PM.

Details

Summary

Do not compute SkipFirstExtraIndent just to see that there are no fake l parens.

Diff Detail

Event Timeline

HazardyKnusperkeks requested review of this revision.Dec 3 2021, 12:03 PM
HazardyKnusperkeks created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 3 2021, 12:03 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
curdeius accepted this revision.Dec 3 2021, 12:41 PM

LGTM.

This revision is now accepted and ready to land.Dec 3 2021, 12:41 PM
owenpan accepted this revision.Dec 3 2021, 7:07 PM