class PathDiagnosticCallPiece
Declaration
class PathDiagnosticCallPiece : public PathDiagnosticPiece { /* full declaration omitted */ };
Description
Node - This class is used to maintain the singly linked bucket list in a folding set.
Declared at: clang/include/clang/Analysis/PathDiagnostic.h:562
Inherits from: PathDiagnosticPiece
Member Variables
- private const clang::Decl* Caller
- private const clang::Decl* Callee = nullptr
- private bool NoExit
- private bool IsCalleeAnAutosynthesizedPropertyAccessor = false
- private std::string CallStackMessage
- public clang::ento::PathDiagnosticLocation callEnter
- public clang::ento::PathDiagnosticLocation callEnterWithin
- public clang::ento::PathDiagnosticLocation callReturn
- public clang::ento::PathPieces path
Method Overview
- private PathDiagnosticCallPiece(clang::ento::PathPieces & oldPath, const clang::Decl * caller)
- private PathDiagnosticCallPiece(const clang::Decl * callerD, const clang::ento::PathDiagnosticLocation & callReturnPos)
- public void Profile(llvm::FoldingSetNodeID & ID) const
- public static bool classof(const clang::ento::PathDiagnosticPiece * P)
- public static std::shared_ptr<PathDiagnosticCallPiece> construct(const clang::CallExitEnd & CE, const clang::SourceManager & SM)
- public static clang::ento::PathDiagnosticCallPiece * construct(clang::ento::PathPieces & pieces, const clang::Decl * caller)
- public void dump() const
- public void flattenLocations()
- public std::shared_ptr<PathDiagnosticEventPiece> getCallEnterEvent() const
- public std::shared_ptr<PathDiagnosticEventPiece> getCallEnterWithinCallerEvent() const
- public std::shared_ptr<PathDiagnosticEventPiece> getCallExitEvent() const
- public const clang::Decl * getCallee() const
- public const clang::Decl * getCaller() const
- public clang::ento::PathDiagnosticLocation getLocation() const
- public bool hasCallStackMessage()
- public void setCallStackMessage(llvm::StringRef st)
- public void setCallee(const clang::CallEnter & CE, const clang::SourceManager & SM)
- public ~PathDiagnosticCallPiece()
Inherited from PathDiagnosticPiece:
- public Profile
- public addFixit
- public addRange
- public addRange
- public dump
- public flattenLocations
- public getDisplayHint
- public getFixits
- public getKind
- public getLocation
- public getRanges
- public getString
- public getTag
- public getTagStr
- public isLastInMainSourceFile
- public setAsLastInMainSourceFile
- public setTag
Inherited from FoldingSetBase::Node:
Methods
¶PathDiagnosticCallPiece(
clang::ento::PathPieces& oldPath,
const clang::Decl* caller)
PathDiagnosticCallPiece(
clang::ento::PathPieces& oldPath,
const clang::Decl* caller)
Declared at: clang/include/clang/Analysis/PathDiagnostic.h:582
Parameters
- clang::ento::PathPieces& oldPath
- const clang::Decl* caller
¶PathDiagnosticCallPiece(
const clang::Decl* callerD,
const clang::ento::PathDiagnosticLocation&
callReturnPos)
PathDiagnosticCallPiece(
const clang::Decl* callerD,
const clang::ento::PathDiagnosticLocation&
callReturnPos)
Declared at: clang/include/clang/Analysis/PathDiagnostic.h:578
Parameters
- const clang::Decl* callerD
- const clang::ento::PathDiagnosticLocation& callReturnPos
¶void Profile(llvm::FoldingSetNodeID& ID) const
void Profile(llvm::FoldingSetNodeID& ID) const
Declared at: clang/include/clang/Analysis/PathDiagnostic.h:625
Parameters
¶static bool classof(
const clang::ento::PathDiagnosticPiece* P)
static bool classof(
const clang::ento::PathDiagnosticPiece* P)
Declared at: clang/include/clang/Analysis/PathDiagnostic.h:627
Parameters
- const clang::ento::PathDiagnosticPiece* P
¶static std::shared_ptr<PathDiagnosticCallPiece>
construct(const clang::CallExitEnd& CE,
const clang::SourceManager& SM)
static std::shared_ptr<PathDiagnosticCallPiece>
construct(const clang::CallExitEnd& CE,
const clang::SourceManager& SM)
Declared at: clang/include/clang/Analysis/PathDiagnostic.h:617
Parameters
- const clang::CallExitEnd& CE
- const clang::SourceManager& SM
¶static clang::ento::PathDiagnosticCallPiece*
construct(clang::ento::PathPieces& pieces,
const clang::Decl* caller)
static clang::ento::PathDiagnosticCallPiece*
construct(clang::ento::PathPieces& pieces,
const clang::Decl* caller)
Declared at: clang/include/clang/Analysis/PathDiagnostic.h:620
Parameters
- clang::ento::PathPieces& pieces
- const clang::Decl* caller
¶void dump() const
void dump() const
Declared at: clang/include/clang/Analysis/PathDiagnostic.h:623
¶void flattenLocations()
void flattenLocations()
Declared at: clang/include/clang/Analysis/PathDiagnostic.h:609
¶std::shared_ptr<PathDiagnosticEventPiece>
getCallEnterEvent() const
std::shared_ptr<PathDiagnosticEventPiece>
getCallEnterEvent() const
Declared at: clang/include/clang/Analysis/PathDiagnostic.h:604
¶std::shared_ptr<PathDiagnosticEventPiece>
getCallEnterWithinCallerEvent() const
std::shared_ptr<PathDiagnosticEventPiece>
getCallEnterWithinCallerEvent() const
Declared at: clang/include/clang/Analysis/PathDiagnostic.h:606
¶std::shared_ptr<PathDiagnosticEventPiece>
getCallExitEvent() const
std::shared_ptr<PathDiagnosticEventPiece>
getCallExitEvent() const
Declared at: clang/include/clang/Analysis/PathDiagnostic.h:607
¶const clang::Decl* getCallee() const
const clang::Decl* getCallee() const
Declared at: clang/include/clang/Analysis/PathDiagnostic.h:596
¶const clang::Decl* getCaller() const
const clang::Decl* getCaller() const
Declared at: clang/include/clang/Analysis/PathDiagnostic.h:594
¶clang::ento::PathDiagnosticLocation getLocation()
const
clang::ento::PathDiagnosticLocation getLocation()
const
Declared at: clang/include/clang/Analysis/PathDiagnostic.h:602
¶bool hasCallStackMessage()
bool hasCallStackMessage()
Declared at: clang/include/clang/Analysis/PathDiagnostic.h:599
¶void setCallStackMessage(llvm::StringRef st)
void setCallStackMessage(llvm::StringRef st)
Declared at: clang/include/clang/Analysis/PathDiagnostic.h:600
Parameters
¶void setCallee(const clang::CallEnter& CE,
const clang::SourceManager& SM)
void setCallee(const clang::CallEnter& CE,
const clang::SourceManager& SM)
Declared at: clang/include/clang/Analysis/PathDiagnostic.h:597
Parameters
- const clang::CallEnter& CE
- const clang::SourceManager& SM
¶~PathDiagnosticCallPiece()
~PathDiagnosticCallPiece()
Declared at: clang/include/clang/Analysis/PathDiagnostic.h:592