[PATCH] D32989: Don't indent JavaScript IIFEs
Martin Probst via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 9 06:17:38 PDT 2017
mprobst added inline comments.
================
Comment at: lib/Format/UnwrappedLineParser.cpp:2362
+ ++I;
+ if (I->Tok->isNot(tok::l_paren))
+ return false;
----------------
One more - do we want to support IIFEs that take arguments?
```
(function(global) {
...
}(window));
```
https://reviews.llvm.org/D32989
More information about the cfe-commits
mailing list