[PATCH] D43121: clang-format: keep ObjC colon alignment with short object name
Daniel Jasper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 9 04:58:10 PST 2018
djasper added inline comments.
================
Comment at: lib/Format/ContinuationIndenter.cpp:900
+ std::max(NextNonComment->LongestObjCSelectorName,
+ unsigned(NextNonComment->TokenText.size())) -
NextNonComment->ColumnWidth;
----------------
I'd prefer to use std::max<unsigned>( .. )
(and we generally don't use c-style casts)
Repository:
rC Clang
https://reviews.llvm.org/D43121
More information about the cfe-commits
mailing list