diff options
| author | Daniel Jasper <djasper@google.com> | 2013-09-06 08:54:24 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2013-09-06 08:54:24 +0000 |
| commit | 2f0a020d29286805e48b74b127fbf153af2c4ce7 (patch) | |
| tree | 6ce62cfb1c5e0842c2f96161faa7422b26f452c7 /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 1ae74842cd1be37a8d99d0865623ef16432d3b67 (diff) | |
| download | clang-2f0a020d29286805e48b74b127fbf153af2c4ce7.tar.gz clang-2f0a020d29286805e48b74b127fbf153af2c4ce7.tar.bz2 clang-2f0a020d29286805e48b74b127fbf153af2c4ce7.tar.xz | |
clang-format: Fix regression introduced by r189353.
Before:
FirstToken->WhitespaceRange.getBegin()
.getLocWithOffset(First->LastNewlineOffset);
After:
FirstToken->WhitespaceRange.getBegin().getLocWithOffset(
First->LastNewlineOffset);
Re-add logic to prevent breaking after an empty set of parentheses.
Basically it seems that calling a function without parameters is more
like navigating along the same object than it is a separate step of a
builder-type call.
We might need to extends this in future to allow "short" parameters that
e.g. are an index accessing a specific element.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190126 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
