[PATCH] new check checking use of identical expressions inside a conditional expression, i.e. '?'.
Jordan Rose
jordan_rose at apple.com
Tue Dec 10 10:27:10 PST 2013
On Dec 10, 2013, at 5:41 , Anders Rönnholm <Anders.Ronnholm at evidente.se> wrote:
> Thanks for the comments. New iteration with the comments addressed.
>
> + + static PathDiagnosticLocation createConditionalColonLoc(
> + + const ConditionalOperator *CO,
> + + const SourceManager &SM);
>
> + + I think the new style is to either break after the return type or to double-indent wrapped arguments, rather than right-aligning + them. (Right-aligning is harder to maintain.)
>
> I'd like to keep this as it is since there are other create functions next to it that uses this style, this also applies to the ccp file. We could make a separate patch later and change them all to the new style. I believe the coding standard also states that we should use the same style already used in the source.
Fair enough. Committed in r196937!
I also did some minor cleanups in r196938. Can you check that these look correct?
Jordan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131210/58a204da/attachment.html>
More information about the cfe-commits
mailing list