clang  3.9.0
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
clang::ento::PathDiagnosticCallPiece Class Reference

#include <PathDiagnostic.h>

Inheritance diagram for clang::ento::PathDiagnosticCallPiece:
[legend]
Collaboration diagram for clang::ento::PathDiagnosticCallPiece:
[legend]

Public Member Functions

 ~PathDiagnosticCallPiece () override
 
const DeclgetCaller () const
 
const DeclgetCallee () const
 
void setCallee (const CallEnter &CE, const SourceManager &SM)
 
bool hasCallStackMessage ()
 
void setCallStackMessage (StringRef st)
 
PathDiagnosticLocation getLocation () const override
 
IntrusiveRefCntPtr
< PathDiagnosticEventPiece
getCallEnterEvent () const
 
IntrusiveRefCntPtr
< PathDiagnosticEventPiece
getCallEnterWithinCallerEvent () const
 
IntrusiveRefCntPtr
< PathDiagnosticEventPiece
getCallExitEvent () const
 
void flattenLocations () override
 
void dump () const override
 
void Profile (llvm::FoldingSetNodeID &ID) const override
 
- Public Member Functions inherited from clang::ento::PathDiagnosticPiece
 ~PathDiagnosticPiece () override
 
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< SourceRangegetRanges () const
 Return the SourceRanges associated with this PathDiagnosticPiece. More...
 
void setAsLastInMainSourceFile ()
 
bool isLastInMainSourceFile () const
 

Static Public Member Functions

static PathDiagnosticCallPiececonstruct (const ExplodedNode *N, const CallExitEnd &CE, const SourceManager &SM)
 
static PathDiagnosticCallPiececonstruct (PathPieces &pieces, const Decl *caller)
 
static bool classof (const PathDiagnosticPiece *P)
 

Public Attributes

PathDiagnosticLocation callEnter
 
PathDiagnosticLocation callEnterWithin
 
PathDiagnosticLocation callReturn
 
PathPieces path
 

Additional Inherited Members

- Public Types inherited from clang::ento::PathDiagnosticPiece
enum  Kind { ControlFlow, Event, Macro, Call }
 
enum  DisplayHint { Above, Below }
 
- Protected Member Functions inherited from clang::ento::PathDiagnosticPiece
 PathDiagnosticPiece (StringRef s, Kind k, DisplayHint hint=Below)
 
 PathDiagnosticPiece (Kind k, DisplayHint hint=Below)
 

Detailed Description

Definition at line 550 of file PathDiagnostic.h.

Constructor & Destructor Documentation

PathDiagnosticCallPiece::~PathDiagnosticCallPiece ( )
override

Definition at line 60 of file PathDiagnostic.cpp.

Member Function Documentation

static bool clang::ento::PathDiagnosticCallPiece::classof ( const PathDiagnosticPiece P)
inlinestatic
PathDiagnosticCallPiece * PathDiagnosticCallPiece::construct ( const ExplodedNode N,
const CallExitEnd CE,
const SourceManager SM 
)
static
PathDiagnosticCallPiece * PathDiagnosticCallPiece::construct ( PathPieces pieces,
const Decl caller 
)
static

Definition at line 890 of file PathDiagnostic.cpp.

LLVM_DUMP_METHOD void PathDiagnosticCallPiece::dump ( ) const
overridevirtual
void clang::ento::PathDiagnosticCallPiece::flattenLocations ( )
inlineoverridevirtual
const Decl* clang::ento::PathDiagnosticCallPiece::getCallee ( ) const
inline

Definition at line 581 of file PathDiagnostic.h.

Referenced by adjustCallLocations().

IntrusiveRefCntPtr< PathDiagnosticEventPiece > PathDiagnosticCallPiece::getCallEnterEvent ( ) const

Definition at line 978 of file PathDiagnostic.cpp.

References describeCodeDecl().

Referenced by ReportCall().

IntrusiveRefCntPtr< PathDiagnosticEventPiece > PathDiagnosticCallPiece::getCallEnterWithinCallerEvent ( ) const

Definition at line 993 of file PathDiagnostic.cpp.

References describeCodeDecl().

Referenced by ReportCall().

const Decl* clang::ento::PathDiagnosticCallPiece::getCaller ( ) const
inline

Definition at line 579 of file PathDiagnostic.h.

Referenced by adjustCallLocations().

IntrusiveRefCntPtr< PathDiagnosticEventPiece > PathDiagnosticCallPiece::getCallExitEvent ( ) const

Definition at line 1012 of file PathDiagnostic.cpp.

References describeCodeDecl().

Referenced by ReportCall().

PathDiagnosticLocation clang::ento::PathDiagnosticCallPiece::getLocation ( ) const
inlineoverridevirtual
bool clang::ento::PathDiagnosticCallPiece::hasCallStackMessage ( )
inline

Definition at line 584 of file PathDiagnostic.h.

Referenced by updateStackPiecesWithMessage().

void PathDiagnosticCallPiece::Profile ( llvm::FoldingSetNodeID &  ID) const
overridevirtual

Reimplemented from clang::ento::PathDiagnosticPiece.

Definition at line 1075 of file PathDiagnostic.cpp.

References clang::ento::PathDiagnosticPiece::Profile().

void PathDiagnosticCallPiece::setCallee ( const CallEnter CE,
const SourceManager SM 
)
void clang::ento::PathDiagnosticCallPiece::setCallStackMessage ( StringRef  st)
inline

Definition at line 585 of file PathDiagnostic.h.

Referenced by updateStackPiecesWithMessage().

Member Data Documentation

PathDiagnosticLocation clang::ento::PathDiagnosticCallPiece::callEnter
PathDiagnosticLocation clang::ento::PathDiagnosticCallPiece::callEnterWithin
PathDiagnosticLocation clang::ento::PathDiagnosticCallPiece::callReturn
PathPieces clang::ento::PathDiagnosticCallPiece::path

The documentation for this class was generated from the following files: