kdevplatform/language/duchain
problem.cpp
void setSeverity(Severity severity) override
Set the severity of this problem.
Definition: problem.cpp:192
An object representing a problem in preprocessing, parsing, definition-use chain compilation,...
Definition: problem.h:129
void setExplanation(const QString &explanation) override
Definition: problem.cpp:167
#define DEFINE_LIST_MEMBER_HASH(container, member, type)
Definition: appendedlist.h:218
REGISTER_DUCHAIN_ITEM(AliasDeclaration)
void setDiagnostics(const QVector< IProblem::Ptr > &diagnostics) override
Definition: problem.cpp:133
QDebug & nospace()
void push_back(const T &value)
DocumentRange finalLocation() const override
Location where this problem occurred.
Definition: problem.cpp:94
QDebug & space()
QString severityString() const override
Returns a string representation of the severity.
Definition: problem.cpp:197
virtual QString toString() const
Returns a string representation of this problem, useful for debugging.
Definition: problem.cpp:235
QString explanation() const override
A (detailed) explanation of why the problem occurred.
Definition: problem.cpp:162
#define ENSURE_CHAIN_READ_LOCKED
Macros for ensuring the DUChain is locked properly.
Definition: duchainlock.h:37
RangeInRevision range() const
Returns the range assigned to this object, in the document revision when this document was last parse...
Definition: duchainbase.cpp:152
void addDiagnostic(const IProblem::Ptr &diagnostic) override
Definition: problem.cpp:142
FinalLocationMode finalLocationMode() const override
Definition: problem.cpp:105
The top context in a definition-use chain for one source file.
Definition: topducontext.h:113
void setDescription(const QString &description) override
Definition: problem.cpp:157
void setSource(IProblem::Source source) override
Definition: problem.cpp:177
uint allocateProblemIndex(const ProblemPointer &problem)
Allocates an index for the given problem in this top-context.
Definition: topducontextdynamicdata.cpp:811
ProblemPointer problemForIndex(uint index) const
Definition: topducontextdynamicdata.cpp:856
void setRange(const RangeInRevision &range)
Changes the range assigned to this object, in the document revision when this document is parsed.
Definition: duchainbase.cpp:224
QExplicitlySharedDataPointer< Problem > ProblemPointer
Definition: problem.h:37
LocalIndexedProblem(const ProblemPointer &problem, const TopDUContext *top)
Definition: problem.cpp:42
TopDUContext * topContext() const override
Determine the top context to which this object belongs.
Definition: problem.cpp:84
void setFinalLocationMode(FinalLocationMode mode) override
Definition: problem.cpp:110
Definition: abstractfunctiondeclaration.cpp:27
Represents a problem only by its index within the top-context.
Definition: problem.h:44
void clearDiagnostics() override
Returns child diagnostics of this particular problem.
Definition: problem.cpp:115
A single context in source code, represented as a node in a directed acyclic graph.
Definition: ducontext.h:72
QExplicitlySharedDataPointer< IAssistant > solutionAssistant() const override
If this problem can be solved, this may return an assistant for the solution.
Definition: problem.cpp:182
void setFinalLocation(const DocumentRange &location) override
Definition: problem.cpp:99
QString sourceString() const override
Returns a string version of the problem source.
Definition: problem.cpp:212
class TopDUContextDynamicData * m_dynamicData
Definition: topducontext.h:381
QVector< IProblem::Ptr > diagnostics() const override
Definition: problem.cpp:122
virtual void rebuildDynamicData(DUContext *parent, uint ownIndex)
Called after loading to rebuild the dynamic data. If this is a context, this should recursively work ...
Definition: duchainbase.cpp:126
ProblemPointer data(const TopDUContext *top) const
Definition: problem.cpp:61
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 Jan 20 2021 23:38:35 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 20 2021 23:38:35 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.