[PATCH] D73334: [Format] Fix 'auto x(T&&, T &&)->F' with PAS_Left.

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 24 01:15:10 PST 2020


sammccall marked an inline comment as done.
sammccall added inline comments.


================
Comment at: clang/lib/Format/TokenAnnotator.cpp:1804
     // "&&(" is quite unlikely to be two successive unary "&".
-    if (Tok.is(tok::ampamp) && NextToken && NextToken->is(tok::l_paren))
+    if (Tok.is(tok::ampamp) && NextToken->is(tok::l_paren))
       return TT_BinaryOperator;
----------------
(while here: the NextToken check was redundant as we deref it above already)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73334/new/

https://reviews.llvm.org/D73334





More information about the cfe-commits mailing list