From f31d583081e612e1db50a3c4165aa41c645549f9 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 19 Apr 2021 15:32:45 +0200 Subject: [PATCH] CPlusPlus: Increase maximum statement depth We're hitting the limit in a real-world project. (Of course, it's pretty horrific that we unconditionally access pointers that can legally be null, but that's difficult to change now.) Fixes: QTCREATORBUG-25606 Change-Id: I1d8c883550e8968bbfa6ce26965573697774361f Reviewed-by: Christian Stenger --- src/libs/3rdparty/cplusplus/Parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/3rdparty/cplusplus/Parser.cpp b/src/libs/3rdparty/cplusplus/Parser.cpp index b5cf315e64f..7116f1abf4f 100644 --- a/src/libs/3rdparty/cplusplus/Parser.cpp +++ b/src/libs/3rdparty/cplusplus/Parser.cpp @@ -39,7 +39,7 @@ #define CPLUSPLUS_NO_DEBUG_RULE #define MAX_EXPRESSION_DEPTH 1000 -#define MAX_STATEMENT_DEPTH 100 +#define MAX_STATEMENT_DEPTH 300 using namespace CPlusPlus;