]> granicus.if.org Git - clang/commitdiff
clang-format: Increase cut-off limit for number of analyzed states.
authorDaniel Jasper <djasper@google.com>
Tue, 27 Oct 2015 22:55:55 +0000 (22:55 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 27 Oct 2015 22:55:55 +0000 (22:55 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@251463 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/UnwrappedLineFormatter.cpp

index 6d9b1da49b26ffeeaaa5823f2373b30b8299abd8..8225a0375b4f154b146fe8e1e63e05959013f350 100644 (file)
@@ -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)