clang
10.0.0git
|
#include "clang/Analysis/PathDiagnostic.h"
Public Member Functions | |
PathDiagnosticEventPiece (const PathDiagnosticLocation &pos, StringRef s, bool addPosRange=true) | |
~PathDiagnosticEventPiece () override | |
void | setPrunable (bool isPrunable, bool override=false) |
Mark the diagnostic piece as being potentially prunable. More... | |
bool | isPrunable () const |
Return true if the diagnostic piece is prunable. More... | |
void | dump () const override |
![]() | |
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) |
void | addFixit (FixItHint F) |
ArrayRef< SourceRange > | getRanges () const |
Return the SourceRanges associated with this PathDiagnosticPiece. More... | |
ArrayRef< FixItHint > | getFixits () const |
Return the fix-it hints 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) |
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 496 of file PathDiagnostic.h.
|
inline |
Definition at line 500 of file PathDiagnostic.h.
|
overridedefault |
Referenced by clang::ento::PathDiagnosticPiece::PathDiagnosticPiece().
|
inlinestatic |
Definition at line 521 of file PathDiagnostic.h.
References clang::ento::PathDiagnosticPiece::getKind().
|
overridevirtual |
Implements clang::ento::PathDiagnosticPiece.
Definition at line 1153 of file PathDiagnostic.cpp.
References clang::ento::PathDiagnosticLocation::dump(), and clang::ento::PathDiagnostic::getLocation().
|
inline |
Return true if the diagnostic piece is prunable.
Definition at line 515 of file PathDiagnostic.h.
References dump().
|
inline |
Mark the diagnostic piece as being potentially prunable.
This flag may have been previously set, at which point it will not be reset unless one specifies to do so.
Definition at line 508 of file PathDiagnostic.h.