Because IIFEs[1] are often used like an anonymous namespace around large
sections of JavaScript code, it's useful not to indent to them (which
effectively reduces the column limit by the indent amount needlessly).
It's also common for developers to wrap these around entire files or
libraries. When adopting clang-format, changing the indent entire file
can reduce the usefulness of the blame annotations.
Before:
(function() { // clang-format pushes stuff to here })();
After:
(function() { // clang-format pushes stuff to here })();
[1] https://en.wikipedia.org/wiki/Immediately-invoked_function_expression