krasimir added inline comments.

================
Comment at: lib/Format/TokenAnnotator.cpp:2206
+    return (Left.is(tok::r_paren) && Line.MightBeFunctionDecl &&
+            !(Left.MatchingParen && Left.MatchingParen->Previous &&
+              Left.MatchingParen->Previous->isOneOf(tok::kw_typeof,
----------------
Please use `FormatToken::getPreviousNonComment` here and add a test like 
`typedef typeof/*comment*/(int(int, int))* MyFuncPtr;`


https://reviews.llvm.org/D35847



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to