This is an archive of the discontinued LLVM Phabricator instance.

[clang-format][NFC] Handle language specific stuff at the top...
ClosedPublic

Authored by HazardyKnusperkeks on Oct 13 2022, 5:38 AM.

Details

Summary

... of TokenAnnotator::splitPenalty. That is in my eyes a bit clearer in the workflow.

As a drive-by introduce (but not adapt anywhere else) isProto().

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptOct 13 2022, 5:38 AM
HazardyKnusperkeks requested review of this revision.Oct 13 2022, 5:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 13 2022, 5:38 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
owenpan added inline comments.Oct 14 2022, 8:29 PM
clang/lib/Format/TokenAnnotator.cpp
3123

Otherwise, it wouldn't be NFC.

clang/lib/Format/TokenAnnotator.cpp
3123

It was Left == :: || Right == .

owenpan accepted this revision.Oct 16 2022, 1:24 AM

LGTM

clang/lib/Format/TokenAnnotator.cpp
3123

It's NFC because we are still checking Right.is... below.

This revision is now accepted and ready to land.Oct 16 2022, 1:24 AM
This revision was landed with ongoing or failed builds.Oct 24 2022, 12:28 PM
This revision was automatically updated to reflect the committed changes.
HazardyKnusperkeks marked 2 inline comments as done.