diff --git a/src/libs/cplusplus/ASTPath.cpp b/src/libs/cplusplus/ASTPath.cpp index 8e51390c524ff406740ac9c550ce09eecd156695..7e3e20f50a781305dd8f424649e98b7fa35a4b5e 100644 --- a/src/libs/cplusplus/ASTPath.cpp +++ b/src/libs/cplusplus/ASTPath.cpp @@ -40,6 +40,7 @@ using namespace CPlusPlus; QList<AST *> ASTPath::operator()(int line, int column) { + qDebug()<<"path @" << line << column; _nodes.clear(); _line = line + 1; _column = column + 1; diff --git a/src/libs/cplusplus/ASTPath.h b/src/libs/cplusplus/ASTPath.h index e4b83470535e166cb42eab5f8896cc27f14e61bf..2b6d0cc0781501c6d52d585d4b49f9bd3fce78c6 100644 --- a/src/libs/cplusplus/ASTPath.h +++ b/src/libs/cplusplus/ASTPath.h @@ -53,6 +53,7 @@ public: QList<AST *> operator()(const QTextCursor &cursor) { return this->operator()(cursor.blockNumber(), cursor.columnNumber()); } + /// line and column are 0-based! QList<AST *> operator()(int line, int column); #ifdef DEBUG_AST_PATH