kdevplatform/language/duchain
duchaindumper.cpp
Go to the documentation of this file.
133 qout << Indent(m_indent * 2) << p->description() << p->explanation() << p->finalLocation() << endl;
140 void DUChainDumperPrivate::dump(DUContext* context, int allowedDepth, bool isFromImport, QTextStream& out)
145 << (dynamic_cast<TopDUContext*>(context) ? "Top-Context" : "Context") << typeToString(context->type())
149 << (dynamic_cast<TopDUContext*>(context) ? static_cast<TopDUContext*>(context)->url().byteArray() : "")
168 << dec << "(internal ctx:" << dec->internalContext() << ")" << dec->range().castToSimpleRange() << ","
169 << (dec->isDefinition() ? "defined, " : (FunctionDefinition::definition(dec) ? "" : "no definition, "))
QString * string() const
A context that declares functions, namespaces or classes.
Definition: ducontext.h:103
QTextStream &(*)(QTextStream &) TextStreamFunction
Definition: definitions.cpp:31
QDebug & nospace()
QDebug & space()
QIODevice * device() const
A context that declares template-parameters.
Definition: ducontext.h:107
RangeInRevision range() const
Returns the range assigned to this object, in the document revision when this document was last parse...
Definition: duchainbase.cpp:152
DUChainDumper(Features features=DumpContext)
Definition: duchaindumper.cpp:95
Represents executable code, like for example within a compound-statement.
Definition: ducontext.h:113
Debugging utility function to dump a DUContext including contained declarations.
Definition: duchaindumper.h:40
QExplicitlySharedDataPointer< Problem > ProblemPointer
Definition: problem.h:37
QString typeToString(DUContext::ContextType type)
Definition: duchaindumper.cpp:64
Definition: abstractfunctiondeclaration.cpp:27
A single context in source code, represented as a node in a directed acyclic graph.
Definition: ducontext.h:72
static Declaration * definition(const Declaration *decl)
Find the definition for the given declaration, if one exists.
Definition: functiondefinition.cpp:85
void dump(DUContext *context, int allowedDepth=0)
Dump DUChain context to stdout.
Definition: duchaindumper.cpp:231
QDebug operator<<(QDebug s, const QExplicitlySharedDataPointer< ParsingEnvironmentFile > &p)
Definition: parsingenvironment.h:226
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Mar 3 2021 00:37:28 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Mar 3 2021 00:37:28 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.