summaryrefslogtreecommitdiff
path: root/src/libs/cplusplus/ASTPath.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/cplusplus/ASTPath.cpp')
-rw-r--r--src/libs/cplusplus/ASTPath.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libs/cplusplus/ASTPath.cpp b/src/libs/cplusplus/ASTPath.cpp
index 0d3fcf726d..e4dc4a1bbc 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)
{