forked from qt-creator/qt-creator
C++: moved the CppPreprocessor into its own file.
Change-Id: I399d667a1fccb376fadbd6ab8fbba243e86d8f4b Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Nikolai Kosjar
parent
516116c5a5
commit
09ea0d235a
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user