clang 20.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. | |
const void * | getTag () const |
Return the opaque tag (if any) on the PathDiagnosticPiece. | |
StringRef | getTagStr () const |
Return the string representation of the tag. | |
DisplayHint | getDisplayHint () const |
getDisplayHint - Return a hint indicating where the diagnostic should be displayed by the PathDiagnosticConsumer. | |
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. | |
ArrayRef< FixItHint > | getFixits () const |
Return the fix-it hints associated with this PathDiagnosticPiece. | |
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 403 of file PathDiagnostic.h.
Enumerator | |
---|---|
Above | |
Below |
Definition at line 406 of file PathDiagnostic.h.
Enumerator | |
---|---|
ControlFlow | |
Event | |
Macro | |
Call | |
Note | |
PopUp |
Definition at line 405 of file PathDiagnostic.h.
|
protected |
Definition at line 55 of file PathDiagnostic.cpp.
|
protected |
Definition at line 59 of file PathDiagnostic.cpp.
|
delete |
|
delete |
|
virtualdefault |
|
inline |
Definition at line 469 of file PathDiagnostic.h.
|
inline |
Definition at line 463 of file PathDiagnostic.h.
References E, and clang::SourceLocation::isValid().
|
inline |
Definition at line 457 of file PathDiagnostic.h.
References clang::SourceRange::isValid().
Referenced by clang::ento::PathDiagnosticSpotPiece::PathDiagnosticSpotPiece().
|
pure virtual |
|
pure virtual |
|
inline |
getDisplayHint - Return a hint indicating where the diagnostic should be displayed by the PathDiagnosticConsumer.
Definition at line 450 of file PathDiagnostic.h.
Return the fix-it hints associated with this PathDiagnosticPiece.
Definition at line 477 of file PathDiagnostic.h.
|
inline |
Definition at line 455 of file PathDiagnostic.h.
Referenced by calculateImportance(), and comparePiece().
|
pure virtual |
|
inline |
Return the SourceRanges associated with this PathDiagnosticPiece.
Definition at line 474 of file PathDiagnostic.h.
Referenced by comparePiece(), and clang::ento::PathDiagnosticConsumer::HandlePathDiagnostic().
|
inline |
Definition at line 436 of file PathDiagnostic.h.
Referenced by comparePiece(), and clang::ento::ConditionBRVisitor::isPieceMessageGeneric().
|
inline |
Return the opaque tag (if any) on the PathDiagnosticPiece.
Definition at line 442 of file PathDiagnostic.h.
Referenced by eventsDescribeSameCondition().
|
inline |
Return the string representation of the tag.
This is useful for debugging.
Definition at line 446 of file PathDiagnostic.h.
Referenced by calculateImportance().
|
inline |
Definition at line 485 of file PathDiagnostic.h.
|
delete |
|
virtual |
Reimplemented in clang::ento::PathDiagnosticSpotPiece, clang::ento::PathDiagnosticCallPiece, clang::ento::PathDiagnosticControlFlowPiece, clang::ento::PathDiagnosticMacroPiece, clang::ento::PathDiagnosticNotePiece, and clang::ento::PathDiagnosticPopUpPiece.
Definition at line 1093 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 481 of file PathDiagnostic.h.
Referenced by resetDiagnosticLocationToMainFile().
|
inline |
Tag this PathDiagnosticPiece with the given C-string.
Definition at line 439 of file PathDiagnostic.h.