clang
7.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 ExplodedNode *N, 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 581 of file PathDiagnostic.h.
|
overridedefault |
Referenced by clang::ento::PathDiagnosticPiece::PathDiagnosticPiece().
|
inlinestatic |
Definition at line 646 of file PathDiagnostic.h.
References clang::ento::PathDiagnosticPiece::getKind().
|
static |
Definition at line 967 of file PathDiagnostic.cpp.
References clang::CallExitEnd::getCalleeContext(), clang::LocationContext::getDecl(), clang::ProgramPoint::getLocationContext(), getLocationForCaller(), and SM.
Referenced by generatePathDiagnosticsForNode().
|
static |
Definition at line 978 of file PathDiagnostic.cpp.
|
overridevirtual |
Implements clang::ento::PathDiagnosticPiece.
Definition at line 1338 of file PathDiagnostic.cpp.
References clang::ento::PathDiagnosticLocation::dump(), and clang::ento::PathDiagnostic::getLocation().
|
inlineoverridevirtual |
Implements clang::ento::PathDiagnosticPiece.
Definition at line 628 of file PathDiagnostic.h.
References clang::ento::PathDiagnosticLocation::flatten().
|
inline |
Definition at line 615 of file PathDiagnostic.h.
References SM.
std::shared_ptr< PathDiagnosticEventPiece > PathDiagnosticCallPiece::getCallEnterEvent | ( | ) | const |
Definition at line 1122 of file PathDiagnostic.cpp.
References describeCodeDecl().
Referenced by ReportCall().
std::shared_ptr< PathDiagnosticEventPiece > PathDiagnosticCallPiece::getCallEnterWithinCallerEvent | ( | ) | const |
Definition at line 1141 of file PathDiagnostic.cpp.
References describeCodeDecl().
Referenced by ReportCall().
|
inline |
Definition at line 613 of file PathDiagnostic.h.
std::shared_ptr< PathDiagnosticEventPiece > PathDiagnosticCallPiece::getCallExitEvent | ( | ) | const |
Definition at line 1160 of file PathDiagnostic.cpp.
References describeCodeDecl().
|
inlineoverridevirtual |
Implements clang::ento::PathDiagnosticPiece.
Definition at line 621 of file PathDiagnostic.h.
Referenced by generatePathDiagnosticsForNode().
|
inline |
Definition at line 618 of file PathDiagnostic.h.
|
overridevirtual |
Reimplemented from clang::ento::PathDiagnosticPiece.
Definition at line 1223 of file PathDiagnostic.cpp.
References clang::ento::PathDiagnosticPiece::Profile().
void PathDiagnosticCallPiece::setCallee | ( | const CallEnter & | CE, |
const SourceManager & | SM | ||
) |
Definition at line 988 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.
Referenced by generatePathDiagnosticsForNode().
|
inline |
Definition at line 619 of file PathDiagnostic.h.
PathDiagnosticLocation clang::ento::PathDiagnosticCallPiece::callEnter |
Definition at line 606 of file PathDiagnostic.h.
Referenced by compareCall(), and getFirstStackedCallToHeaderFile().
PathDiagnosticLocation clang::ento::PathDiagnosticCallPiece::callEnterWithin |
Definition at line 607 of file PathDiagnostic.h.
Referenced by compareCall(), and getFirstStackedCallToHeaderFile().
PathDiagnosticLocation clang::ento::PathDiagnosticCallPiece::callReturn |
Definition at line 608 of file PathDiagnostic.h.
Referenced by compareCall().
PathPieces clang::ento::PathDiagnosticCallPiece::path |
Definition at line 609 of file PathDiagnostic.h.
Referenced by compareCall(), generatePathDiagnosticsForNode(), and getFirstStackedCallToHeaderFile().