djasper added inline comments.
================ Comment at: lib/Format/TokenAnnotator.cpp:2229 + if (Left.is(Keywords.kw_async) && Right.is(tok::l_paren) && + Right.MatchingParen && Right.MatchingParen->getNextNonComment() && + Right.MatchingParen->getNextNonComment()->is(TT_JsFatArrow)) ---------------- As getNextNonComment() walks linearly over the tokens, I'd pull it out into a variable. https://reviews.llvm.org/D30399 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits