This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Refactor: add FormatToken::hasWhitespaceBefore(). NFC.
ClosedPublic

Authored by curdeius on Jan 20 2022, 3:03 AM.

Details

Summary

This factors out a pattern that comes up from time to time.

Diff Detail

Event Timeline

curdeius requested review of this revision.Jan 20 2022, 3:03 AM
curdeius created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 20 2022, 3:03 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
owenpan accepted this revision.Jan 20 2022, 3:21 AM

LGTM.

This revision is now accepted and ready to land.Jan 20 2022, 3:21 AM