summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-readobj/llvm-readobj.cpp
diff options
context:
space:
mode:
authorMartin Probst <martin@probst.io>2017-05-10 13:53:29 +0000
committerMartin Probst <martin@probst.io>2017-05-10 13:53:29 +0000
commitb7fb267ed3033fff977b40553714defa1a0b57d1 (patch)
treef8021e3c2c308f648d09d6b3b47acd702545554c /llvm/tools/llvm-readobj/llvm-readobj.cpp
parentd399607f657cdeba5225371aafe9392a08ba75ec (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud