clang
10.0.0git
|
#include "clang/Analysis/PathDiagnostic.h"
Public Member Functions | |
~PathDiagnosticCallPiece () override | |
const Decl * | getCaller () const |
const Decl * | getCallee () const |
void | setCallee (const CallEnter &CE, const SourceManager &SM) |
bool | hasCallStackMessage () |
void | setCallStackMessage (StringRef st) |
PathDiagnosticLocation | getLocation () const override |
std::shared_ptr< PathDiagnosticEventPiece > | getCallEnterEvent () const |
std::shared_ptr< PathDiagnosticEventPiece > | getCallEnterWithinCallerEvent () const |
std::shared_ptr< PathDiagnosticEventPiece > | getCallExitEvent () const |
void | flattenLocations () override |
void | dump () const override |
void | Profile (llvm::FoldingSetNodeID &ID) const override |
![]() | |
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... | |
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... | |
void | setAsLastInMainSourceFile () |
bool | isLastInMainSourceFile () const |
Static Public Member Functions | |
static std::shared_ptr< PathDiagnosticCallPiece > | construct (const CallExitEnd &CE, const SourceManager &SM) |
static PathDiagnosticCallPiece * | construct (PathPieces &pieces, const Decl *caller) |
static bool | classof (const PathDiagnosticPiece *P) |
Public Attributes | |
PathDiagnosticLocation | callEnter |
PathDiagnosticLocation | callEnterWithin |
PathDiagnosticLocation | callReturn |
PathPieces | path |
Additional Inherited Members | |
![]() | |
enum | Kind { ControlFlow, Event, Macro, Call, Note, PopUp } |
enum | DisplayHint { Above, Below } |
![]() | |
PathDiagnosticPiece (StringRef s, Kind k, DisplayHint hint=Below) | |
PathDiagnosticPiece (Kind k, DisplayHint hint=Below) | |
Definition at line 526 of file PathDiagnostic.h.
|
overridedefault |
Referenced by clang::ento::PathDiagnosticPiece::PathDiagnosticPiece().
|
inlinestatic |
Definition at line 591 of file PathDiagnostic.h.
References clang::ento::PathDiagnosticPiece::getKind().
|
static |
Definition at line 831 of file PathDiagnostic.cpp.
References clang::CallExitEnd::getCalleeContext(), clang::LocationContext::getDecl(), clang::ProgramPoint::getLocationContext(), getLocationForCaller(), and SM.
|
static |
Definition at line 842 of file PathDiagnostic.cpp.
|
overridevirtual |
Implements clang::ento::PathDiagnosticPiece.
Definition at line 1142 of file PathDiagnostic.cpp.
References clang::ento::PathDiagnosticLocation::dump(), and clang::ento::PathDiagnostic::getLocation().
|
inlineoverridevirtual |
Implements clang::ento::PathDiagnosticPiece.
Definition at line 573 of file PathDiagnostic.h.
References dump(), clang::ento::PathDiagnosticLocation::flatten(), and clang::ento::PathDiagnosticConsumer::PDFileEntry::Profile().
|
inline |
Definition at line 560 of file PathDiagnostic.h.
References SM.
std::shared_ptr< PathDiagnosticEventPiece > PathDiagnosticCallPiece::getCallEnterEvent | ( | ) | const |
Definition at line 986 of file PathDiagnostic.cpp.
References describeCodeDecl().
std::shared_ptr< PathDiagnosticEventPiece > PathDiagnosticCallPiece::getCallEnterWithinCallerEvent | ( | ) | const |
Definition at line 1005 of file PathDiagnostic.cpp.
References describeCodeDecl().
|
inline |
Definition at line 558 of file PathDiagnostic.h.
std::shared_ptr< PathDiagnosticEventPiece > PathDiagnosticCallPiece::getCallExitEvent | ( | ) | const |
Definition at line 1024 of file PathDiagnostic.cpp.
References describeCodeDecl().
|
inlineoverridevirtual |
Implements clang::ento::PathDiagnosticPiece.
Definition at line 566 of file PathDiagnostic.h.
|
inline |
Definition at line 563 of file PathDiagnostic.h.
|
overridevirtual |
Reimplemented from clang::ento::PathDiagnosticPiece.
Definition at line 1087 of file PathDiagnostic.cpp.
References clang::ento::PathDiagnostic::path, and clang::ento::PathDiagnosticPiece::Profile().
void PathDiagnosticCallPiece::setCallee | ( | const CallEnter & | CE, |
const SourceManager & | SM | ||
) |
Definition at line 852 of file PathDiagnostic.cpp.
References clang::ento::PathDiagnosticLocation::createBegin(), describeTemplateParameters(), clang::LocationContext::getAnalysisDeclContext(), clang::CallEnter::getCalleeContext(), clang::LocationContext::getDecl(), clang::ProgramPoint::getLocationContext(), getLocationForCaller(), clang::AnalysisDeclContext::isBodyAutosynthesized(), and SM.
|
inline |
Definition at line 564 of file PathDiagnostic.h.
PathDiagnosticLocation clang::ento::PathDiagnosticCallPiece::callEnter |
Definition at line 551 of file PathDiagnostic.h.
Referenced by compareCall().
PathDiagnosticLocation clang::ento::PathDiagnosticCallPiece::callEnterWithin |
Definition at line 552 of file PathDiagnostic.h.
Referenced by compareCall().
PathDiagnosticLocation clang::ento::PathDiagnosticCallPiece::callReturn |
Definition at line 553 of file PathDiagnostic.h.
Referenced by compareCall().
PathPieces clang::ento::PathDiagnosticCallPiece::path |
Definition at line 554 of file PathDiagnostic.h.
Referenced by compareCall().