clang
3.7.0
|
#include <PathDiagnostic.h>
Public Member Functions | |
PathDiagnosticEventPiece (const PathDiagnosticLocation &pos, StringRef s, bool addPosRange=true, StackHintGenerator *stackHint=nullptr) | |
~PathDiagnosticEventPiece () override | |
void | setPrunable (bool isPrunable, bool override=false) |
bool | isPrunable () const |
Return true if the diagnostic piece is prunable. More... | |
bool | hasCallStackHint () |
std::string | getCallStackMessage (const ExplodedNode *N) |
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 () override | |
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 |
DisplayHint | getDisplayHint () const |
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) |
Additional Inherited Members | |
![]() | |
enum | Kind { ControlFlow, Event, Macro, Call } |
enum | DisplayHint { Above, Below } |
![]() | |
PathDiagnosticPiece (StringRef s, Kind k, DisplayHint hint=Below) | |
PathDiagnosticPiece (Kind k, DisplayHint hint=Below) | |
Definition at line 502 of file PathDiagnostic.h.
|
inline |
Definition at line 512 of file PathDiagnostic.h.
|
override |
Definition at line 59 of file PathDiagnostic.cpp.
|
inlinestatic |
Definition at line 546 of file PathDiagnostic.h.
References clang::ento::PathDiagnosticPiece::Event, and clang::ento::PathDiagnosticPiece::getKind().
|
overridevirtual |
Implements clang::ento::PathDiagnosticPiece.
Definition at line 3499 of file BugReporter.cpp.
References clang::ento::PathDiagnosticLocation::dump(), and clang::ento::BugReport::getLocation().
|
inline |
Produce the hint for the given node. The node contains information about the call for which the diagnostic can be generated.
Definition at line 538 of file PathDiagnostic.h.
|
inline |
Definition at line 534 of file PathDiagnostic.h.
|
inline |
Return true if the diagnostic piece is prunable.
Definition at line 530 of file PathDiagnostic.h.
Referenced by removeUnneededCalls(), and setPrunable().
|
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 523 of file PathDiagnostic.h.
References isPrunable().
Referenced by GenerateAlternateExtensivePathDiagnostic(), GenerateExtensivePathDiagnostic(), and clang::ento::ConditionBRVisitor::VisitTrueTest().