forked from qt-creator/qt-creator
CPlusPlus: Check maximum include depth in lexer
We use a value of 200, which is also GCC's default. Fixes: QTCREATORBUG-28770 Change-Id: Id02b324cd2ffa81a709441a5d93856bcd06501c3 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -29,6 +29,8 @@
|
||||
#include <cplusplus/Lexer.h>
|
||||
#include <cplusplus/Token.h>
|
||||
|
||||
#include <utils/guard.h>
|
||||
|
||||
#include <QVector>
|
||||
#include <QBitArray>
|
||||
#include <QByteArray>
|
||||
@@ -241,6 +243,7 @@ private:
|
||||
Environment *m_env;
|
||||
QByteArray m_scratchBuffer;
|
||||
CancelChecker m_cancelChecker;
|
||||
Utils::Guard m_includeDepthGuard;
|
||||
|
||||
bool m_expandFunctionlikeMacros;
|
||||
bool m_keepComments;
|
||||
|
||||
Reference in New Issue
Block a user