diff options
| author | Christian Kamm <christian.d.kamm@nokia.com> | 2009-09-25 16:00:14 +0200 |
|---|---|---|
| committer | Christian Kamm <christian.d.kamm@nokia.com> | 2009-09-25 16:08:01 +0200 |
| commit | 22ed0255b97ff52d808ebd93fabe06e214b56d2d (patch) | |
| tree | 40dc79d131d6b13a8360ff8e68e7ab6119557d1f /src/libs/cplusplus/FastPreprocessor.h | |
| parent | 90470771fd58722a6a82b3da28bfaa645b250216 (diff) | |
Track more macro uses.
In particular macros that are only checked for definition or are
expanded during the evaluation of an #if or #elif directive are now also
added to the list available through Document::macroUses().
The names of undefined macros that are interesting (because they're used
in an #ifdef or a defined(...)) are now available through
Document::undefinedMacroUses().
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'src/libs/cplusplus/FastPreprocessor.h')
| -rw-r--r-- | src/libs/cplusplus/FastPreprocessor.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libs/cplusplus/FastPreprocessor.h b/src/libs/cplusplus/FastPreprocessor.h index 0d82d54253f..36f3685fc13 100644 --- a/src/libs/cplusplus/FastPreprocessor.h +++ b/src/libs/cplusplus/FastPreprocessor.h @@ -58,9 +58,13 @@ public: virtual void macroAdded(const Macro &) {} + virtual void passedMacroDefinitionCheck(unsigned, const Macro &) {} + virtual void failedMacroDefinitionCheck(unsigned, const QByteArray &) {} + virtual void startExpandingMacro(unsigned, const Macro &, const QByteArray &, + bool, const QVector<MacroArgumentReference> &) {} virtual void stopExpandingMacro(unsigned, const Macro &) {} |
