clang
7.0.0
|
#include "clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h"
Public Member Functions | |
PathDiagnosticSpotPiece (const PathDiagnosticLocation &pos, StringRef s, PathDiagnosticPiece::Kind k, bool addPosRange=true) | |
PathDiagnosticLocation | getLocation () const override |
void | flattenLocations () override |
void | Profile (llvm::FoldingSetNodeID &ID) const override |
![]() | |
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... | |
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... | |
void | setAsLastInMainSourceFile () |
bool | isLastInMainSourceFile () const |
virtual void | dump () const =0 |
Static Public Member Functions | |
static bool | classof (const PathDiagnosticPiece *P) |
Additional Inherited Members | |
![]() | |
enum | Kind { ControlFlow, Event, Macro, Call, Note } |
enum | DisplayHint { Above, Below } |
![]() | |
PathDiagnosticPiece (StringRef s, Kind k, DisplayHint hint=Below) | |
PathDiagnosticPiece (Kind k, DisplayHint hint=Below) | |
Definition at line 463 of file PathDiagnostic.h.
|
inline |
|
inlinestatic |
Definition at line 483 of file PathDiagnostic.h.
References clang::ento::PathDiagnosticPiece::getKind().
|
inlineoverridevirtual |
Implements clang::ento::PathDiagnosticPiece.
Reimplemented in clang::ento::PathDiagnosticMacroPiece.
Definition at line 479 of file PathDiagnostic.h.
References clang::ento::PathDiagnosticLocation::flatten(), and clang::ento::PathDiagnosticConsumer::PDFileEntry::Profile().
Referenced by clang::ento::PathDiagnosticMacroPiece::flattenLocations().
|
inlineoverridevirtual |
Implements clang::ento::PathDiagnosticPiece.
Definition at line 478 of file PathDiagnostic.h.
Referenced by eventsDescribeSameCondition().
|
overridevirtual |
Reimplemented from clang::ento::PathDiagnosticPiece.
Reimplemented in clang::ento::PathDiagnosticNotePiece, and clang::ento::PathDiagnosticMacroPiece.
Definition at line 1229 of file PathDiagnostic.cpp.
References clang::ento::PathDiagnosticPiece::Profile().
Referenced by clang::ento::PathDiagnosticMacroPiece::Profile(), and clang::ento::PathDiagnosticNotePiece::Profile().