Bug 480825 - Raise CPPSemantics.MAX_INHERITANCE_DEPTH to accommodate
authorNathan Ridge <zeratul976@hotmail.com>
Wed, 25 Nov 2015 23:50:00 +0000 (18:50 -0500)
committerSergey Prigogin <eclipse.sprigogin@gmail.com>
Thu, 24 Dec 2015 02:25:39 +0000 (18:25 -0800)
patterns used by some commonly-used libraries

In particular, Boost.MPL supports compile-time computations with type
lists of up to 20 elements, which require a depth of 40 to support

Change-Id: I89b33205837f0acdb84e2d79cef53ec636a6bc8a
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPSemantics.java

index 8806d9c..cafd6a2 100644 (file)
@@ -246,7 +246,7 @@ public class CPPSemantics {
        /**
         * The maximum depth to search ancestors before assuming infinite looping.
         */
-       public static final int MAX_INHERITANCE_DEPTH= 16;
+       public static final int MAX_INHERITANCE_DEPTH= 40;
 
        public static final String EMPTY_NAME = ""; //$NON-NLS-1$
        public static final char[] OPERATOR_ = new char[] {'o','p','e','r','a','t','o','r',' '};