clang
9.0.0
|
#include "clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h"
Public Types | |
enum | Kind { ControlFlow, Event, Macro, Call, Note, PopUp } |
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 | |
PopUp |
Definition at line 370 of file PathDiagnostic.h.
|
protected |
|
protected |
|
delete |
Referenced by compute_path_size(), and StripTrailingDots().
|
delete |
|
virtualdefault |
Referenced by StripTrailingDots().
|
inline |
Definition at line 421 of file PathDiagnostic.h.
References clang::SourceRange::isValid().
|
inline |
Definition at line 427 of file PathDiagnostic.h.
References clang::SourceLocation::isValid().
|
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.
Referenced by Profile().
|
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(), clang::ento::PathDiagnosticPopUpPiece::classof(), and Profile().
|
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 clang::ento::PathDiagnosticConsumer::HandlePathDiagnostic(), and Profile().
|
inline |
Definition at line 400 of file PathDiagnostic.h.
Referenced by clang::ento::PathDiagnosticEventPiece::dump(), clang::ento::PathDiagnosticNotePiece::dump(), and clang::ento::PathDiagnosticPopUpPiece::dump().
|
inline |
Return the opaque tag (if any) on the PathDiagnosticPiece.
Definition at line 406 of file PathDiagnostic.h.
|
inline |
Return the string representation of the tag.
This is useful for debugging.
Definition at line 410 of file PathDiagnostic.h.
|
inline |
Definition at line 442 of file PathDiagnostic.h.
References dump().
|
delete |
|
virtual |
Reimplemented in clang::ento::PathDiagnosticPopUpPiece, clang::ento::PathDiagnosticNotePiece, clang::ento::PathDiagnosticMacroPiece, clang::ento::PathDiagnosticControlFlowPiece, clang::ento::PathDiagnosticCallPiece, and clang::ento::PathDiagnosticSpotPiece.
Definition at line 1258 of file PathDiagnostic.cpp.
References getDisplayHint(), getKind(), and getRanges().
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.