summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/UnwrappedLineFormatter.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-10-27 22:55:55 +0000
committerDaniel Jasper <djasper@google.com>2015-10-27 22:55:55 +0000
commit75bf203def49fc32b666c6a44ff87dc73292c9ab (patch)
treebfb3e1ffb5765d190d1b4ac25d4138a84915c96a /clang/lib/Format/UnwrappedLineFormatter.cpp
parent9e845353519b59a0b814b2b76c228c2d5d541d37 (diff)
downloadbcm5719-llvm-75bf203def49fc32b666c6a44ff87dc73292c9ab.tar.gz
bcm5719-llvm-75bf203def49fc32b666c6a44ff87dc73292c9ab.zip
clang-format: Increase cut-off limit for number of analyzed states.
With more complex structures in C++ Lambdas and JavaScript function literals, the old value was simply to small. However, this is a temporary solution, I need to look at this more closely a) to find a fundamentally better approach and b) to look at whether the more recent usage of NoLineBreak makes us visit stuff in an unfortunate order where clang-format waste many states in dead ends. llvm-svn: 251463
Diffstat (limited to 'clang/lib/Format/UnwrappedLineFormatter.cpp')
-rw-r--r--clang/lib/Format/UnwrappedLineFormatter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/UnwrappedLineFormatter.cpp b/clang/lib/Format/UnwrappedLineFormatter.cpp
index 6d9b1da49b2..8225a0375b4 100644
--- a/clang/lib/Format/UnwrappedLineFormatter.cpp
+++ b/clang/lib/Format/UnwrappedLineFormatter.cpp
@@ -709,7 +709,7 @@ private:
// Cut off the analysis of certain solutions if the analysis gets too
// complex. See description of IgnoreStackForComparison.
- if (Count > 10000)
+ if (Count > 50000)
Node->State.IgnoreStackForComparison = true;
if (!Seen.insert(&Node->State).second)
OpenPOWER on IntegriCloud