r251463 - clang-format: Increase cut-off limit for number of analyzed states.

Daniel Jasper via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 27 15:55:55 PDT 2015

Author: djasper
Date: Tue Oct 27 17:55:55 2015
New Revision: 251463

URL: http://llvm.org/viewvc/llvm-project?rev=251463&view=rev
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.


Modified: cfe/trunk/lib/Format/UnwrappedLineFormatter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/UnwrappedLineFormatter.cpp?rev=251463&r1=251462&r2=251463&view=diff
--- cfe/trunk/lib/Format/UnwrappedLineFormatter.cpp (original)
+++ cfe/trunk/lib/Format/UnwrappedLineFormatter.cpp Tue Oct 27 17:55:55 2015
@@ -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)

More information about the cfe-commits mailing list