aboutsummaryrefslogtreecommitdiff
path: root/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-04-01 17:13:26 +0000
committerDaniel Jasper <djasper@google.com>2013-04-01 17:13:26 +0000
commit81d2d38d2d774a2550fa0d2efffa707e7a53b39c (patch)
treec197a28b91c76916a7dffa7c8bf3a81e015d02c0 /lib/Format/Format.cpp
parentbf27951d675b8da1246069bc4ae68066338a9f86 (diff)
Improve formatting of function types.
Before: void * (*a)(int *, SomeType *); After: void *(*a)(int *, SomeType *); git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178474 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/Format.cpp')
-rw-r--r--lib/Format/Format.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp
index 245b7f60a6..e8a8388387 100644
--- a/lib/Format/Format.cpp
+++ b/lib/Format/Format.cpp
@@ -805,7 +805,6 @@ private:
// parameter, i.e. let nested calls have an indent of 4.
State.Stack.back().LastSpace = State.Column + 1; // 1 is length of "(".
else if (Previous.is(tok::comma))
- // Top-level spaces are exempt as that mostly leads to better results.
State.Stack.back().LastSpace = State.Column;
else if ((Previous.Type == TT_BinaryOperator ||
Previous.Type == TT_ConditionalExpr ||