This is an archive of the discontinued LLVM Phabricator instance.

IndentWrappedFunctionNames should win out over align colons
ClosedPublic

Authored by kmensah on Jul 16 2015, 3:44 PM.

Details

Reviewers
djasper
Summary

clang-format's current output:

  • (CGFloat)collectionView:(UICollectionView *)collectionView

heightForHeaderWithLayout:(GPNCardCollectionViewLayout *)layout {
}

Output after patch:

  • (CGFloat)collectionView:(UICollectionView *)collectionView heightForHeaderWithLayout:(GPNCardCollectionViewLayout *)layout {

}

.clang-format contents

BasedOnStyle: Google
IndentWrappedFunctionNames: true
ColumnLimit: 100

Diff Detail

Repository
rL LLVM

Event Timeline

kmensah updated this revision to Diff 29956.Jul 16 2015, 3:44 PM
kmensah retitled this revision from to IndentWrappedFunctionNames should win out over align colons.
kmensah updated this object.
kmensah added a reviewer: djasper.
kmensah set the repository for this revision to rL LLVM.
kmensah added a subscriber: cfe-commits.
djasper added inline comments.Jul 16 2015, 3:47 PM
unittests/Format/FormatTest.cpp
7115

justong?

I was looking for a selector name that the same length as "- (void)shortf:"
and taking the l out did that. Changing to something more intuitive.

kmensah updated this revision to Diff 29958.Jul 16 2015, 3:53 PM

changed name of test selector to be more intuitive.

djasper accepted this revision.Jul 16 2015, 4:02 PM
djasper edited edge metadata.

Looks good. Submitted as r242484. Thank you.

This revision is now accepted and ready to land.Jul 16 2015, 4:02 PM
djasper closed this revision.Jul 16 2015, 4:02 PM