clang
9.0.0
|
#include "clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h"
Public Member Functions | |
PathDiagnosticMacroPiece (const PathDiagnosticLocation &pos) | |
~PathDiagnosticMacroPiece () override | |
bool | containsEvent () const |
void | flattenLocations () override |
void | dump () const override |
void | Profile (llvm::FoldingSetNodeID &ID) const override |
![]() | |
PathDiagnosticSpotPiece (const PathDiagnosticLocation &pos, StringRef s, PathDiagnosticPiece::Kind k, bool addPosRange=true) | |
PathDiagnosticLocation | getLocation () 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 |
Static Public Member Functions | |
static bool | classof (const PathDiagnosticPiece *P) |
![]() | |
static bool | classof (const PathDiagnosticPiece *P) |
Public Attributes | |
PathPieces | subPieces |
Additional Inherited Members | |
![]() | |
enum | Kind { ControlFlow, Event, Macro, Call, Note, PopUp } |
enum | DisplayHint { Above, Below } |
![]() | |
PathDiagnosticPiece (StringRef s, Kind k, DisplayHint hint=Below) | |
PathDiagnosticPiece (Kind k, DisplayHint hint=Below) | |
Definition at line 721 of file PathDiagnostic.h.
|
inline |
Definition at line 723 of file PathDiagnostic.h.
|
overridedefault |
Referenced by StripTrailingDots().
|
inlinestatic |
Definition at line 737 of file PathDiagnostic.h.
References dump(), clang::ento::PathDiagnosticPiece::getKind(), and clang::ento::PathDiagnosticConsumer::PDFileEntry::Profile().
bool PathDiagnosticMacroPiece::containsEvent | ( | ) | const |
Definition at line 56 of file PathDiagnostic.cpp.
|
overridevirtual |
Implements clang::ento::PathDiagnosticPiece.
Definition at line 1414 of file PathDiagnostic.cpp.
|
inlineoverridevirtual |
Reimplemented from clang::ento::PathDiagnosticSpotPiece.
Definition at line 731 of file PathDiagnostic.h.
References clang::ento::PathDiagnosticSpotPiece::flattenLocations().
|
overridevirtual |
Reimplemented from clang::ento::PathDiagnosticSpotPiece.
Definition at line 1287 of file PathDiagnostic.cpp.
References clang::ento::PathDiagnosticSpotPiece::Profile(), and subPieces.
Referenced by clang::ento::PathDiagnostic::FullProfile().
PathPieces clang::ento::PathDiagnosticMacroPiece::subPieces |
Definition at line 727 of file PathDiagnostic.h.
Referenced by containsEvent(), and Profile().