[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdevplatform] language/duchain: DUChainDumper: Also print URLs
From:       Kevin Funk <kfunk () kde ! org>
Date:       2014-07-03 13:15:54
Message-ID: E1X2gri-0007wJ-98 () scm ! kde ! org
[Download RAW message or body]

Git commit edaf80854ba9e43faedc12d80508fe51f3fdc824 by Kevin Funk.
Committed on 03/07/2014 at 12:36.
Pushed by kfunk into branch 'master'.

DUChainDumper: Also print URLs

M  +4    -2    language/duchain/duchaindumper.cpp

http://commits.kde.org/kdevplatform/edaf80854ba9e43faedc12d80508fe51f3fdc824

diff --git a/language/duchain/duchaindumper.cpp b/language/duchain/duchaindumper.cpp
index 6dc7a83..d44c77a 100644
--- a/language/duchain/duchaindumper.cpp
+++ b/language/duchain/duchaindumper.cpp
@@ -121,8 +121,10 @@ void DUChainDumper::Private::dump(DUContext * context, int \
allowedDepth, bool is  
   qout << Indent(m_indent * 2) << (isFromImport ? " ==import==>" : "")
     << (dynamic_cast<TopDUContext*>(context) ? "Top-Context" : "Context") << \
                typeToString(context->type())
-    << context << context->localScopeIdentifier() << "[" << \
context->scopeIdentifier() << "]" +    << "(owner: " << context->owner() << ")"
+    << context << context->localScopeIdentifier() << "[" << \
context->scopeIdentifier(true) << "]"  << \
context->range().castToSimpleRange().textRange() +    << \
(dynamic_cast<TopDUContext*>(context) ? \
static_cast<TopDUContext*>(context)->url().byteArray(): "")  << endl;
 
   if(m_visitedContexts.contains(context)) {
@@ -139,7 +141,7 @@ void DUChainDumper::Private::dump(DUContext * context, int \
                allowedDepth, bool is
       //IdentifiedType* idType = \
dynamic_cast<IdentifiedType*>(dec->abstractType().data());  
       qout << Indent((m_indent+2) * 2) << "Declaration:" << dec->toString() << "[" \
                << dec->qualifiedIdentifier() << "]"
-        << dec << "(internal ctx" << dec->internalContext() << ")" << \
dec->range().castToSimpleRange().textRange() << "," +        << dec << "(internal \
ctx:" << dec->internalContext() << ")" << \
                dec->range().castToSimpleRange().textRange() << ","
         << (dec->isDefinition() ? "defined, " : (FunctionDefinition::definition(dec) \
? "" : "no definition, "))  << dec->uses().count() << "use(s)." << endl;
       if (FunctionDefinition::definition(dec)) {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic