djasper accepted this revision.
This revision is now accepted and ready to land.

================
Comment at: lib/Format/TokenAnnotator.cpp:2087
@@ -2087,1 +2086,3 @@
+        // above.
+        !Line.startsWith(Keywords.kw_var) && !Line.startsWith(Keywords.kw_let))
       // Object literals on the top level of a file are treated as 
"enum-style".
----------------
Hm.. Or Line.First->isOneOf(Keywords.kw_var, KeyWords.kw_let).

I like that a bit better, but don't really care.


http://reviews.llvm.org/D13211



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

Reply via email to