From bc557a80b41cca2d0391b14f6c18dfcb875f3e4b Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 21 Feb 2017 10:21:09 +0100 Subject: Output file name in debug operator of _CodeModelItem Task-number: PYSIDE-323 Change-Id: I6ac1fc7eef5083cdd31d8ea99c9bbbecf5936b98 Reviewed-by: Alexandru Croitor --- ApiExtractor/parser/codemodel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ApiExtractor/parser/codemodel.cpp b/ApiExtractor/parser/codemodel.cpp index f3761d7..36cd2c9 100644 --- a/ApiExtractor/parser/codemodel.cpp +++ b/ApiExtractor/parser/codemodel.cpp @@ -33,6 +33,7 @@ #include #include #include +#include // Predicate to find an item by name in a list of QSharedPointer template class ModelItemNamePredicate : public std::unary_function > @@ -425,6 +426,8 @@ void _CodeModelItem::formatDebug(QDebug &d) const d << ", scope="; formatSequence(d, m_scope.cbegin(), m_scope.cend(), "::"); } + if (!m_fileName.isEmpty()) + d << ", file=\"" << QDir::toNativeSeparators(m_fileName) << '"'; } QDebug operator<<(QDebug d, const _CodeModelItem *t) -- cgit v1.2.3