aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaCodeComplete.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2012-12-18 21:05:13 +0000
committerDaniel Jasper <djasper@google.com>2012-12-18 21:05:13 +0000
commit1321eb593c8e13738dcaf72e409aa466c8cf6463 (patch)
treed97bab486bdaa486a647b53182ec6a0ba36ec198 /lib/Sema/SemaCodeComplete.cpp
parent08cc03fcd97c3886b004d861aadbc28de70092c5 (diff)
Better support for constructor initializers.
We used to format initializers like this (with a sort of hacky implementation): Constructor() : Val1(A), Val2(B) { and now format like this (with a somewhat better solution): Constructor() : Val1(A), Val2(B) { assuming this would not fit on a single line. Also added tests. As a side effect we now first analyze whether an UnwrappedLine needs to be split at all. If not, not splitting it is the best solution by definition. As this should be a very common case in normal code, not exploring the entire solution space can provide significant speedup. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170457 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCodeComplete.cpp')
0 files changed, 0 insertions, 0 deletions