clang 20.0.0git
|
#include "clang/Analysis/PathDiagnostic.h"
Public Types | |
using | iterator = std::vector< PathDiagnosticLocationPair >::iterator |
using | const_iterator = std::vector< PathDiagnosticLocationPair >::const_iterator |
Public Types inherited from clang::ento::PathDiagnosticPiece | |
enum | Kind { ControlFlow , Event , Macro , Call , Note , PopUp } |
enum | DisplayHint { Above , Below } |
Public Member Functions | |
PathDiagnosticControlFlowPiece (const PathDiagnosticLocation &startPos, const PathDiagnosticLocation &endPos, StringRef s) | |
PathDiagnosticControlFlowPiece (const PathDiagnosticLocation &startPos, const PathDiagnosticLocation &endPos) | |
~PathDiagnosticControlFlowPiece () override | |
PathDiagnosticLocation | getStartLocation () const |
PathDiagnosticLocation | getEndLocation () const |
void | setStartLocation (const PathDiagnosticLocation &L) |
void | setEndLocation (const PathDiagnosticLocation &L) |
void | push_back (const PathDiagnosticLocationPair &X) |
PathDiagnosticLocation | getLocation () const override |
iterator | begin () |
iterator | end () |
void | flattenLocations () override |
const_iterator | begin () const |
const_iterator | end () const |
void | dump () const override |
void | Profile (llvm::FoldingSetNodeID &ID) const override |
Public Member Functions inherited from clang::ento::PathDiagnosticPiece | |
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 |
Static Public Member Functions | |
static bool | classof (const PathDiagnosticPiece *P) |
Additional Inherited Members | |
Protected Member Functions inherited from clang::ento::PathDiagnosticPiece | |
PathDiagnosticPiece (StringRef s, Kind k, DisplayHint hint=Below) | |
PathDiagnosticPiece (Kind k, DisplayHint hint=Below) | |
Definition at line 632 of file PathDiagnostic.h.
using clang::ento::PathDiagnosticControlFlowPiece::const_iterator = std::vector<PathDiagnosticLocationPair>::const_iterator |
Definition at line 687 of file PathDiagnostic.h.
using clang::ento::PathDiagnosticControlFlowPiece::iterator = std::vector<PathDiagnosticLocationPair>::iterator |
Definition at line 677 of file PathDiagnostic.h.
|
inline |
Definition at line 636 of file PathDiagnostic.h.
|
inline |
Definition at line 643 of file PathDiagnostic.h.
|
overridedefault |
|
inline |
Definition at line 679 of file PathDiagnostic.h.
|
inline |
Definition at line 690 of file PathDiagnostic.h.
|
inlinestatic |
Definition at line 693 of file PathDiagnostic.h.
References clang::ento::PathDiagnosticPiece::ControlFlow, and P.
|
overridevirtual |
Implements clang::ento::PathDiagnosticPiece.
Definition at line 1179 of file PathDiagnostic.cpp.
|
inline |
Definition at line 680 of file PathDiagnostic.h.
|
inline |
Definition at line 691 of file PathDiagnostic.h.
|
inlineoverridevirtual |
Implements clang::ento::PathDiagnosticPiece.
Definition at line 682 of file PathDiagnostic.h.
|
inline |
Definition at line 657 of file PathDiagnostic.h.
Referenced by compareControlFlow(), and simplifySimpleBranches().
|
inlineoverridevirtual |
Implements clang::ento::PathDiagnosticPiece.
Definition at line 673 of file PathDiagnostic.h.
References getStartLocation().
|
inline |
Definition at line 651 of file PathDiagnostic.h.
Referenced by compareControlFlow(), getLocation(), and simplifySimpleBranches().
|
overridevirtual |
Reimplemented from clang::ento::PathDiagnosticPiece.
Definition at line 1116 of file PathDiagnostic.cpp.
References clang::ento::PathDiagnosticPiece::Profile().
|
inline |
Definition at line 671 of file PathDiagnostic.h.
References X.
|
inline |
Definition at line 667 of file PathDiagnostic.h.
|
inline |
Definition at line 663 of file PathDiagnostic.h.
Referenced by simplifySimpleBranches().