This is an archive of the discontinued LLVM Phabricator instance.

clang-format: Fix breaking before nested 'operator' in function declarations
AcceptedPublic

Authored by poiru on Jul 15 2015, 12:07 PM.

Details

Reviewers
djasper

Diff Detail

Event Timeline

poiru updated this revision to Diff 29813.Jul 15 2015, 12:07 PM
poiru retitled this revision from to clang-format: Fix breaking before nested 'operator' in function declarations.
poiru added a reviewer: djasper.
poiru added a subscriber: cfe-commits.
djasper accepted this revision.Jul 15 2015, 12:58 PM
djasper edited edge metadata.

One remark, otherwise looks good!

lib/Format/ContinuationIndenter.cpp
602

Is NextNonComment->Previous != Current? (Except for the fact that NextNonComment->Previous could be a comment in:

void SomeType:: // whyever someone would put a comment here
    operator+() { ...
This revision is now accepted and ready to land.Jul 15 2015, 12:58 PM

Looks like patch was not committed.

shafik added a subscriber: shafik.Sep 21 2023, 8:24 AM

@Eugene.Zelenko it this still relevant or should this be closed?

Herald added a project: Restricted Project. · View Herald TranscriptSep 21 2023, 8:24 AM