summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorPaul Hoad <mydeveloperday@gmail.com>2019-03-13 08:26:39 +0000
committerPaul Hoad <mydeveloperday@gmail.com>2019-03-13 08:26:39 +0000
commit15000a127a31e0321e58b34b78a042b37cfc0eac (patch)
tree91f2a4f4c2c65dbe1fc792ec642c3462ecd28d72 /llvm/lib/Transforms
parentd74c055fe640d85d5fb22e261770601567c769ee (diff)
downloadbcm5719-llvm-15000a127a31e0321e58b34b78a042b37cfc0eac.tar.gz
bcm5719-llvm-15000a127a31e0321e58b34b78a042b37cfc0eac.zip
[clang-format] [PR25010] AllowShortIfStatementsOnASingleLine not working if an "else" statement is present
Summary: Addressing: PR25010 - https://bugs.llvm.org/show_bug.cgi?id=25010 Code like: ``` if(true) var++; else { var--; } ``` is reformatted to be ``` if (true) var++; else { var--; } ``` Even when `AllowShortIfStatementsOnASingleLine` is true The following revision comes from a +1'd suggestion in the PR to support AllowShortIfElseStatementsOnASingleLine This suppresses the clause prevents the merging of the if when there is a compound else Reviewers: klimek, djasper, JonasToth, alexfh, krasimir, reuk Reviewed By: reuk Subscribers: reuk, Higuoxing, jdoerfert, cfe-commits Tags: #clang-tools-extra Differential Revision: https://reviews.llvm.org/D59087 llvm-svn: 356031
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud