[PATCH] D32989: Don't indent JavaScript IIFEs

Martin Probst via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 9 13:14:01 PDT 2017

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

Comment at: unittests/Format/FormatTestJS.cpp:371
+TEST_F(FormatTestJS, IIFE) {
+  verifyFormat("(function() {\n"
+               "var a = 1;\n"
danbeam wrote:
> mprobst wrote:
> > consider adding a test with comments between the tokens (which should work with `startsSequence`).
> not done yet, but seems uncommon.
> do you want me to add a FIXME?
I think that's OK the way it is.


More information about the cfe-commits mailing list