|
clang
5.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 | |
| 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 337 of file PathDiagnostic.h.
| Enumerator | |
|---|---|
| Above | |
| Below | |
Definition at line 340 of file PathDiagnostic.h.
| Enumerator | |
|---|---|
| ControlFlow | |
| Event | |
| Macro | |
| Call | |
| Note | |
Definition at line 339 of file PathDiagnostic.h.
|
protected |
Definition at line 49 of file PathDiagnostic.cpp.
|
protected |
Definition at line 54 of file PathDiagnostic.cpp.
|
virtual |
Definition at line 57 of file PathDiagnostic.cpp.
|
inline |
Definition at line 392 of file PathDiagnostic.h.
References clang::SourceRange::isValid().
Referenced by clang::ento::PathDiagnosticSpotPiece::PathDiagnosticSpotPiece().
|
inline |
Definition at line 398 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 385 of file PathDiagnostic.h.
|
inline |
Definition at line 390 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(), comparePiece(), and ReportPiece().
|
pure virtual |
Implemented in clang::ento::PathDiagnosticControlFlowPiece, clang::ento::PathDiagnosticCallPiece, and clang::ento::PathDiagnosticSpotPiece.
Referenced by comparePiece(), clang::ento::PathDiagnosticConsumer::HandlePathDiagnostic(), ReportEvent(), and clang::ento::PathDiagnostic::resetDiagnosticLocationToMainFile().
|
inline |
Return the SourceRanges associated with this PathDiagnosticPiece.
Definition at line 405 of file PathDiagnostic.h.
Referenced by comparePiece(), clang::ento::PathDiagnosticConsumer::HandlePathDiagnostic(), and ReportEvent().
|
inline |
Definition at line 371 of file PathDiagnostic.h.
Referenced by comparePiece(), clang::ento::ConditionBRVisitor::isPieceMessageGeneric(), ReportControlFlow(), and ReportEvent().
|
inline |
Return the opaque tag (if any) on the PathDiagnosticPiece.
Definition at line 377 of file PathDiagnostic.h.
Referenced by eventsDescribeSameCondition().
|
inline |
Return the string representation of the tag.
This is useful for debugging.
Definition at line 381 of file PathDiagnostic.h.
|
inline |
Definition at line 413 of file PathDiagnostic.h.
Referenced by ReportCall().
|
virtual |
Reimplemented in clang::ento::PathDiagnosticNotePiece, clang::ento::PathDiagnosticMacroPiece, clang::ento::PathDiagnosticControlFlowPiece, clang::ento::PathDiagnosticCallPiece, and clang::ento::PathDiagnosticSpotPiece.
Definition at line 1115 of file PathDiagnostic.cpp.
References E, getKind(), and I.
Referenced by clang::ento::PathDiagnosticSpotPiece::Profile(), clang::ento::PathDiagnosticCallPiece::Profile(), and clang::ento::PathDiagnosticControlFlowPiece::Profile().
|
inline |
Definition at line 409 of file PathDiagnostic.h.
|
inline |
Tag this PathDiagnosticPiece with the given C-string.
Definition at line 374 of file PathDiagnostic.h.
1.8.6