djasper added inline comments.

================
Comment at: unittests/Format/FormatTestJS.cpp:339
@@ +338,3 @@
+TEST_F(FormatTestJS, AsyncFunctions) {
+  verifyFormat("async function f() {\n"
+               "  let x = 1;\n"
----------------
Fundamentally, I think there is two things we might need to do:
1. Not allow wrapping it. I am ok with keeping that based on the operator 
wrapping for now, but it seems a bit dodgy.
2. The ExpressionParser in TokenAnnotator.cpp must not treat this as a binary 
operator or else it might do weird things with indentation. What't the token 
type at the moment?


http://reviews.llvm.org/D19204



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

Reply via email to