clang
7.0.0
|
#include "clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h"
Public Types | |
enum | Kind { ControlFlow, Event, Macro, Call, Note } |
enum | DisplayHint { Above, Below } |
Public Member Functions | |
PathDiagnosticPiece ()=delete | |
PathDiagnosticPiece (const PathDiagnosticPiece &)=delete | |
PathDiagnosticPiece & | operator= (const PathDiagnosticPiece &)=delete |
virtual | ~PathDiagnosticPiece () |
StringRef | getString () const |
void | setTag (const char *tag) |
Tag this PathDiagnosticPiece with the given C-string. More... | |
const void * | getTag () const |
Return the opaque tag (if any) on the PathDiagnosticPiece. More... | |
StringRef | getTagStr () const |
Return the string representation of the tag. More... | |
DisplayHint | getDisplayHint () const |
getDisplayHint - Return a hint indicating where the diagnostic should be displayed by the PathDiagnosticConsumer. More... | |
virtual PathDiagnosticLocation | getLocation () const =0 |
virtual void | flattenLocations ()=0 |
Kind | getKind () const |
void | addRange (SourceRange R) |
void | addRange (SourceLocation B, SourceLocation E) |
ArrayRef< SourceRange > | getRanges () const |
Return the SourceRanges associated with this PathDiagnosticPiece. More... | |
virtual void | Profile (llvm::FoldingSetNodeID &ID) const |
void | setAsLastInMainSourceFile () |
bool | isLastInMainSourceFile () const |
virtual void | dump () const =0 |
Protected Member Functions | |
PathDiagnosticPiece (StringRef s, Kind k, DisplayHint hint=Below) | |
PathDiagnosticPiece (Kind k, DisplayHint hint=Below) | |
Definition at line 368 of file PathDiagnostic.h.
Enumerator | |
---|---|
Above | |
Below |
Definition at line 371 of file PathDiagnostic.h.
Enumerator | |
---|---|
ControlFlow | |
Event | |
Macro | |
Call | |
Note |
Definition at line 370 of file PathDiagnostic.h.
|
protected |
Definition at line 75 of file PathDiagnostic.cpp.
|
protected |
Definition at line 79 of file PathDiagnostic.cpp.
References clang::ento::PathDiagnosticCallPiece::~PathDiagnosticCallPiece(), clang::ento::PathDiagnosticControlFlowPiece::~PathDiagnosticControlFlowPiece(), clang::ento::PathDiagnosticEventPiece::~PathDiagnosticEventPiece(), clang::ento::PathDiagnosticMacroPiece::~PathDiagnosticMacroPiece(), clang::ento::PathDiagnosticNotePiece::~PathDiagnosticNotePiece(), and ~PathDiagnosticPiece().
|
delete |
|
delete |
|
virtualdefault |
Referenced by PathDiagnosticPiece().
|
inline |
Definition at line 421 of file PathDiagnostic.h.
References clang::SourceRange::isValid().
|
inline |
Definition at line 427 of file PathDiagnostic.h.
|
pure virtual |
|
pure virtual |
|
inline |
getDisplayHint - Return a hint indicating where the diagnostic should be displayed by the PathDiagnosticConsumer.
Definition at line 414 of file PathDiagnostic.h.
|
inline |
Definition at line 419 of file PathDiagnostic.h.
Referenced by clang::ento::PathDiagnosticSpotPiece::classof(), clang::ento::PathDiagnosticEventPiece::classof(), clang::ento::PathDiagnosticCallPiece::classof(), clang::ento::PathDiagnosticControlFlowPiece::classof(), clang::ento::PathDiagnosticMacroPiece::classof(), clang::ento::PathDiagnosticNotePiece::classof(), comparePiece(), and ReportPiece().
|
pure virtual |
|
inline |
Return the SourceRanges associated with this PathDiagnosticPiece.
Definition at line 434 of file PathDiagnostic.h.
References clang::ento::PathDiagnosticConsumer::PDFileEntry::Profile().
Referenced by comparePiece().
|
inline |
Definition at line 400 of file PathDiagnostic.h.
Referenced by comparePiece().
|
inline |
Return the opaque tag (if any) on the PathDiagnosticPiece.
Definition at line 406 of file PathDiagnostic.h.
Referenced by eventsDescribeSameCondition().
|
inline |
Return the string representation of the tag.
This is useful for debugging.
Definition at line 410 of file PathDiagnostic.h.
|
inline |
|
delete |
|
virtual |
Reimplemented in clang::ento::PathDiagnosticNotePiece, clang::ento::PathDiagnosticMacroPiece, clang::ento::PathDiagnosticControlFlowPiece, clang::ento::PathDiagnosticCallPiece, and clang::ento::PathDiagnosticSpotPiece.
Definition at line 1211 of file PathDiagnostic.cpp.
References getKind().
Referenced by clang::ento::PathDiagnosticSpotPiece::Profile(), clang::ento::PathDiagnosticCallPiece::Profile(), and clang::ento::PathDiagnosticControlFlowPiece::Profile().
|
inline |
Definition at line 438 of file PathDiagnostic.h.
|
inline |
Tag this PathDiagnosticPiece with the given C-string.
Definition at line 403 of file PathDiagnostic.h.