[PATCH] D29656: clang-format: [JS] correcly format object literal methods.

Daniel Jasper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 7 08:32:58 PST 2017


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


================
Comment at: lib/Format/UnwrappedLineParser.cpp:1306
+        // Could be a method inside of a braced list `{a() { return 1; }}`.
+        if (tryToParseBracedList()) {
+          continue;
----------------
nit: remove braces ;)


https://reviews.llvm.org/D29656





More information about the cfe-commits mailing list