clang
8.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 367 of file PathDiagnostic.h.
Enumerator | |
---|---|
Above | |
Below |
Definition at line 370 of file PathDiagnostic.h.
Enumerator | |
---|---|
ControlFlow | |
Event | |
Macro | |
Call | |
Note |
Definition at line 369 of file PathDiagnostic.h.
|
protected |
|
protected |
|
delete |
Referenced by compute_path_size(), and StripTrailingDots().
|
delete |
|
virtualdefault |
Referenced by StripTrailingDots().
|
inline |
Definition at line 420 of file PathDiagnostic.h.
References clang::SourceRange::isValid().
|
inline |
Definition at line 426 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 413 of file PathDiagnostic.h.
Referenced by Profile().
|
inline |
Definition at line 418 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(), and Profile().
|
pure virtual |
|
inline |
Return the SourceRanges associated with this PathDiagnosticPiece.
Definition at line 433 of file PathDiagnostic.h.
References clang::ento::PathDiagnosticConsumer::PDFileEntry::Profile().
Referenced by clang::ento::PathDiagnosticConsumer::HandlePathDiagnostic(), and Profile().
|
inline |
Definition at line 399 of file PathDiagnostic.h.
References llvm::str().
Referenced by clang::ento::PathDiagnosticEventPiece::dump(), and clang::ento::PathDiagnosticNotePiece::dump().
|
inline |
Return the opaque tag (if any) on the PathDiagnosticPiece.
Definition at line 405 of file PathDiagnostic.h.
|
inline |
Return the string representation of the tag.
This is useful for debugging.
Definition at line 409 of file PathDiagnostic.h.
|
inline |
Definition at line 441 of file PathDiagnostic.h.
References dump().
|
delete |
|
virtual |
Reimplemented in clang::ento::PathDiagnosticNotePiece, clang::ento::PathDiagnosticMacroPiece, clang::ento::PathDiagnosticControlFlowPiece, clang::ento::PathDiagnosticCallPiece, and clang::ento::PathDiagnosticSpotPiece.
Definition at line 1219 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 437 of file PathDiagnostic.h.
|
inline |
Tag this PathDiagnosticPiece with the given C-string.
Definition at line 402 of file PathDiagnostic.h.