diff options
Diffstat (limited to 'src/libs/cplusplus/pp-engine.h')
| -rw-r--r-- | src/libs/cplusplus/pp-engine.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/libs/cplusplus/pp-engine.h b/src/libs/cplusplus/pp-engine.h index e4e60b9b45e..12afd1f9b83 100644 --- a/src/libs/cplusplus/pp-engine.h +++ b/src/libs/cplusplus/pp-engine.h @@ -91,7 +91,8 @@ public: private: void preprocess(const QString &filename, const QByteArray &source, - QByteArray *result, bool noLines, bool markGeneratedTokens, bool inCondition); + QByteArray *result, bool noLines, bool markGeneratedTokens, bool inCondition, + unsigned offset = 0); enum { MAX_LEVEL = 512 }; @@ -118,6 +119,8 @@ private: bool m_noLines; bool m_inCondition; bool m_inDefine; + + unsigned m_offsetRef; }; void handleDefined(PPToken *tk); @@ -125,7 +128,9 @@ private: void lex(PPToken *tk); void skipPreprocesorDirective(PPToken *tk); bool handleIdentifier(PPToken *tk); - bool handleFunctionLikeMacro(PPToken *tk, const Macro *macro, QVector<PPToken> &body, bool addWhitespaceMarker); + bool handleFunctionLikeMacro(PPToken *tk, const Macro *macro, QVector<PPToken> &body, + bool addWhitespaceMarker, + const QVector<QVector<PPToken> > &actuals); bool skipping() const { return m_state.m_skipping[m_state.m_ifLevel]; } |
