Page MenuHomePhabricator

[clang] NFC: adjust indentation of statements with more than one lines
ClosedPublic

Authored by zhouyizhou on Jun 11 2021, 12:44 PM.

Details

Summary

Hi,

I think it will be more beautiful to adjust indentation of statements with more than one lines.

In function TreeTransform<Derived>::TransformDependentScopeDeclRefExpr
the second line of statement
NestedNameSpecifierLoc QualifierLoc \newline = getDerived().TransformNestedNameSpecifierLoc(E->getQualifierLoc());
is no more indent than the first line

There is a similar case in function TreeTransform<Derived>::TransformUnresolvedMemberExpr

Also I use clang-format to fix above functions

Thanks alot

Diff Detail

Event Timeline

zhouyizhou requested review of this revision.Jun 11 2021, 12:44 PM
zhouyizhou created this revision.
zhouyizhou edited the summary of this revision. (Show Details)
zhouyizhou edited the summary of this revision. (Show Details)Jun 11 2021, 1:20 PM
This revision is now accepted and ready to land.Jun 12 2021, 1:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 20 2021, 7:17 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript