diff options
author | Martin Probst <martin@probst.io> | 2017-05-10 13:53:29 +0000 |
---|---|---|
committer | Martin Probst <martin@probst.io> | 2017-05-10 13:53:29 +0000 |
commit | b7fb267ed3033fff977b40553714defa1a0b57d1 (patch) | |
tree | f8021e3c2c308f648d09d6b3b47acd702545554c /llvm/tools/llvm-readobj/llvm-readobj.cpp | |
parent | d399607f657cdeba5225371aafe9392a08ba75ec (diff) | |
download | bcm5719-llvm-b7fb267ed3033fff977b40553714defa1a0b57d1.tar.gz bcm5719-llvm-b7fb267ed3033fff977b40553714defa1a0b57d1.zip |
clang-format: refine calculating brace types.
Summary:
For C++ code, opening parenthesis following a } indicate a braced init. For JavaScript and other languages, this is an invalid syntactical construct, unless the closing parenthesis belongs to a function - in which situation its a BK_Block.
This fixes indenting IIFEs following top level functions:
function foo() {}
(function() { codeHere(); }());
clang-format used to collapse these lines together.
Subscribers: klimek
Differential Revision: https://reviews.llvm.org/D33006
llvm-svn: 302658
Diffstat (limited to 'llvm/tools/llvm-readobj/llvm-readobj.cpp')
0 files changed, 0 insertions, 0 deletions