diff options
| author | Erik Verbruggen <[email protected]> | 2013-04-23 15:04:36 +0200 |
|---|---|---|
| committer | Nikolai Kosjar <[email protected]> | 2013-04-26 13:56:08 +0200 |
| commit | 09ea0d235a6a93d19e6e7519e1b9fb217b30e423 (patch) | |
| tree | bbbaaf5e63b702393aad89db34e7dd3fa4fcf93d /src/libs/cplusplus/ASTPath.cpp | |
| parent | 516116c5a53a83b2ca70da518e9fcea5c783305e (diff) | |
C++: moved the CppPreprocessor into its own file.
Change-Id: I399d667a1fccb376fadbd6ab8fbba243e86d8f4b
Reviewed-by: Nikolai Kosjar <[email protected]>
Diffstat (limited to 'src/libs/cplusplus/ASTPath.cpp')
| -rw-r--r-- | src/libs/cplusplus/ASTPath.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libs/cplusplus/ASTPath.cpp b/src/libs/cplusplus/ASTPath.cpp index 0d3fcf726d7..e4dc4a1bbcc 100644 --- a/src/libs/cplusplus/ASTPath.cpp +++ b/src/libs/cplusplus/ASTPath.cpp @@ -32,10 +32,10 @@ #include <cplusplus/AST.h> #include <cplusplus/TranslationUnit.h> -#ifdef DEBUG_AST_PATH +#ifdef WITH_AST_PATH_DUMP # include <QDebug> # include <typeinfo> -#endif // DEBUG_AST_PATH +#endif // WITH_AST_PATH_DUMP using namespace CPlusPlus; @@ -53,14 +53,14 @@ QList<AST *> ASTPath::operator()(int line, int column) return _nodes; } -#ifdef DEBUG_AST_PATH +#ifdef WITH_AST_PATH_DUMP void ASTPath::dump(const QList<AST *> nodes) { qDebug() << "ASTPath dump," << nodes.size() << "nodes:"; for (int i = 0; i < nodes.size(); ++i) qDebug() << qPrintable(QString(i + 1, QLatin1Char('-'))) << typeid(*nodes.at(i)).name(); } -#endif // DEBUG_AST_PATH +#endif // WITH_AST_PATH_DUMP bool ASTPath::preVisit(AST *ast) { |
