clang
8.0.0
|
#include "clang/StaticAnalyzer/Core/BugReporter/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) |
ArrayRef< SourceRange > | getRanges () const |
Return the SourceRanges 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 } |
enum | DisplayHint { Above, Below } |
![]() | |
PathDiagnosticPiece (StringRef s, Kind k, DisplayHint hint=Below) | |
PathDiagnosticPiece (Kind k, DisplayHint hint=Below) | |
Definition at line 580 of file PathDiagnostic.h.
|
overridedefault |
Referenced by StripTrailingDots().
|
inlinestatic |
Definition at line 645 of file PathDiagnostic.h.
References clang::ento::PathDiagnosticPiece::getKind().
|
static |
Definition at line 975 of file PathDiagnostic.cpp.
References clang::CallExitEnd::getCalleeContext(), clang::LocationContext::getDecl(), clang::ProgramPoint::getLocationContext(), getLocationForCaller(), and SM.
Referenced by generatePathDiagnosticsForNode().
|
static |
|
overridevirtual |
Implements clang::ento::PathDiagnosticPiece.
Definition at line 1346 of file PathDiagnostic.cpp.
References clang::ento::PathDiagnosticLocation::dump(), and clang::ento::PathDiagnosticSpotPiece::getLocation().
|
inlineoverridevirtual |
Implements clang::ento::PathDiagnosticPiece.
Definition at line 627 of file PathDiagnostic.h.
References dump(), clang::ento::PathDiagnosticLocation::flatten(), and clang::ento::PathDiagnosticConsumer::PDFileEntry::Profile().
|
inline |
Definition at line 614 of file PathDiagnostic.h.
References SM.
std::shared_ptr< PathDiagnosticEventPiece > PathDiagnosticCallPiece::getCallEnterEvent | ( | ) | const |
Definition at line 1130 of file PathDiagnostic.cpp.
References describeCodeDecl().
std::shared_ptr< PathDiagnosticEventPiece > PathDiagnosticCallPiece::getCallEnterWithinCallerEvent | ( | ) | const |
Definition at line 1149 of file PathDiagnostic.cpp.
References describeCodeDecl().
|
inline |
Definition at line 612 of file PathDiagnostic.h.
std::shared_ptr< PathDiagnosticEventPiece > PathDiagnosticCallPiece::getCallExitEvent | ( | ) | const |
Definition at line 1168 of file PathDiagnostic.cpp.
References describeCodeDecl().
|
inlineoverridevirtual |
Implements clang::ento::PathDiagnosticPiece.
Definition at line 620 of file PathDiagnostic.h.
|
inline |
Definition at line 617 of file PathDiagnostic.h.
|
overridevirtual |
Reimplemented from clang::ento::PathDiagnosticPiece.
Definition at line 1231 of file PathDiagnostic.cpp.
References clang::ento::PathDiagnosticPiece::Profile().
void PathDiagnosticCallPiece::setCallee | ( | const CallEnter & | CE, |
const SourceManager & | SM | ||
) |
Definition at line 996 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 618 of file PathDiagnostic.h.
PathDiagnosticLocation clang::ento::PathDiagnosticCallPiece::callEnter |
Definition at line 605 of file PathDiagnostic.h.
PathDiagnosticLocation clang::ento::PathDiagnosticCallPiece::callEnterWithin |
Definition at line 606 of file PathDiagnostic.h.
PathDiagnosticLocation clang::ento::PathDiagnosticCallPiece::callReturn |
Definition at line 607 of file PathDiagnostic.h.
PathPieces clang::ento::PathDiagnosticCallPiece::path |
Definition at line 608 of file PathDiagnostic.h.