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

Inherited from PathDiagnosticPiece:

Inherited from FoldingSetBase::Node:

Methods

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)

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

Declared at: clang/include/clang/Analysis/PathDiagnostic.h:625

Parameters

llvm::FoldingSetNodeID& ID

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)

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)

Declared at: clang/include/clang/Analysis/PathDiagnostic.h:620

Parameters

clang::ento::PathPieces& pieces
const clang::Decl* caller

void dump() const

Declared at: clang/include/clang/Analysis/PathDiagnostic.h:623

void flattenLocations()

Declared at: clang/include/clang/Analysis/PathDiagnostic.h:609

std::shared_ptr<PathDiagnosticEventPiece>
getCallEnterEvent() const

Declared at: clang/include/clang/Analysis/PathDiagnostic.h:604

std::shared_ptr<PathDiagnosticEventPiece>
getCallEnterWithinCallerEvent() const

Declared at: clang/include/clang/Analysis/PathDiagnostic.h:606

std::shared_ptr<PathDiagnosticEventPiece>
getCallExitEvent() const

Declared at: clang/include/clang/Analysis/PathDiagnostic.h:607

const clang::Decl* getCallee() const

Declared at: clang/include/clang/Analysis/PathDiagnostic.h:596

const clang::Decl* getCaller() const

Declared at: clang/include/clang/Analysis/PathDiagnostic.h:594

clang::ento::PathDiagnosticLocation getLocation()
    const

Declared at: clang/include/clang/Analysis/PathDiagnostic.h:602

bool hasCallStackMessage()

Declared at: clang/include/clang/Analysis/PathDiagnostic.h:599

void setCallStackMessage(llvm::StringRef st)

Declared at: clang/include/clang/Analysis/PathDiagnostic.h:600

Parameters

llvm::StringRef st

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()

Declared at: clang/include/clang/Analysis/PathDiagnostic.h:592