djasper added a comment.

Can you add a test?


================
Comment at: lib/Format/TokenAnnotator.h:143
@@ +142,3 @@
+      Tok = Tok->Next;
+    return startsWithInternal(Tok, K1) &&
+           startsWithInternal(Tok->Next, Tokens...);
----------------
It's a bit subtle that this works even if Tok is nullptr at this point. Maybe 
change to

  return Tok && startsWithInternal( ...

to make this more clear.


http://reviews.llvm.org/D19106



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

Reply via email to