clang
10.0.0git
|
#include "clang/Analysis/PathDiagnostic.h"
Public Types | |
enum | Kind { ControlFlow, Event, Macro, Call, Note, PopUp } |
enum | DisplayHint { Above, Below } |
Public Member Functions | |
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... | |
virtual PathDiagnosticLocation | getLocation () const =0 |
virtual void | flattenLocations ()=0 |
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... | |
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 365 of file PathDiagnostic.h.
Enumerator | |
---|---|
Above | |
Below |
Definition at line 368 of file PathDiagnostic.h.
Enumerator | |
---|---|
ControlFlow | |
Event | |
Macro | |
Call | |
Note | |
PopUp |
Definition at line 367 of file PathDiagnostic.h.
|
protected |
Definition at line 60 of file PathDiagnostic.cpp.
|
protected |
Definition at line 64 of file PathDiagnostic.cpp.
References clang::ento::PathDiagnosticCallPiece::~PathDiagnosticCallPiece(), clang::ento::PathDiagnosticControlFlowPiece::~PathDiagnosticControlFlowPiece(), clang::ento::PathDiagnosticEventPiece::~PathDiagnosticEventPiece(), clang::ento::PathDiagnosticMacroPiece::~PathDiagnosticMacroPiece(), clang::ento::PathDiagnosticNotePiece::~PathDiagnosticNotePiece(), ~PathDiagnosticPiece(), and clang::ento::PathDiagnosticPopUpPiece::~PathDiagnosticPopUpPiece().
|
delete |
|
delete |
|
virtualdefault |
Referenced by PathDiagnosticPiece().
|
inline |
Definition at line 431 of file PathDiagnostic.h.
|
inline |
Definition at line 419 of file PathDiagnostic.h.
References clang::SourceRange::isValid().
|
inline |
Definition at line 425 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 412 of file PathDiagnostic.h.
Return the fix-it hints associated with this PathDiagnosticPiece.
Definition at line 439 of file PathDiagnostic.h.
References clang::ento::PathDiagnosticConsumer::PDFileEntry::Profile().
|
inline |
Definition at line 417 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(), clang::ento::PathDiagnosticPopUpPiece::classof(), and comparePiece().
|
pure virtual |
|
inline |
Return the SourceRanges associated with this PathDiagnosticPiece.
Definition at line 436 of file PathDiagnostic.h.
Referenced by comparePiece(), and clang::ento::PathDiagnosticConsumer::HandlePathDiagnostic().
|
inline |
Definition at line 398 of file PathDiagnostic.h.
Referenced by comparePiece().
|
inline |
Return the opaque tag (if any) on the PathDiagnosticPiece.
Definition at line 404 of file PathDiagnostic.h.
|
inline |
Return the string representation of the tag.
This is useful for debugging.
Definition at line 408 of file PathDiagnostic.h.
|
inline |
Definition at line 447 of file PathDiagnostic.h.
References dump().
|
delete |
|
virtual |
Reimplemented in clang::ento::PathDiagnosticPopUpPiece, clang::ento::PathDiagnosticNotePiece, clang::ento::PathDiagnosticMacroPiece, clang::ento::PathDiagnosticControlFlowPiece, clang::ento::PathDiagnosticCallPiece, and clang::ento::PathDiagnosticSpotPiece.
Definition at line 1075 of file PathDiagnostic.cpp.
References getKind().
Referenced by clang::ento::PathDiagnosticSpotPiece::Profile(), clang::ento::PathDiagnosticCallPiece::Profile(), and clang::ento::PathDiagnosticControlFlowPiece::Profile().
|
inline |
Definition at line 443 of file PathDiagnostic.h.
|
inline |
Tag this PathDiagnosticPiece with the given C-string.
Definition at line 401 of file PathDiagnostic.h.