djasper added inline comments. ================ Comment at: lib/Format/TokenAnnotator.cpp:1272 @@ +1271,3 @@ + // Casts are never binary operators, regardless of IsExpression + if (NextToken->isOneOf(tok::r_paren, tok::greater)) + return TT_PointerOrReference; ---------------- I think it would be better to not have such cast detection heuristics in several places. Could we change the type of the "*" to TT_PointerOrReference after the fact, when rParenEndsCast returns true?
http://reviews.llvm.org/D19058 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits