clang 24.0.0git
clang::lifetimes::internal::PlaceholderBase Class Reference

Represents the base of a placeholder access path, which is either a function parameter or the implicit 'this' object of an instance method. More...

#include "clang/Analysis/Analyses/LifetimeSafety/Loans.h"

Inheritance diagram for clang::lifetimes::internal::PlaceholderBase:
[legend]

Public Types

using KeyTy = llvm::PointerUnion<const ParmVarDecl *, const CXXMethodDecl *>

Public Member Functions

 PlaceholderBase (const ParmVarDecl *PVD)
 PlaceholderBase (const CXXMethodDecl *MD)
const ParmVarDeclgetParmVarDecl () const
const CXXMethodDeclgetImplicitThisParent () const
void Profile (llvm::FoldingSetNodeID &ID) const

Static Public Member Functions

static void Profile (llvm::FoldingSetNodeID &ID, KeyTy ParamOrMethod)

Detailed Description

Represents the base of a placeholder access path, which is either a function parameter or the implicit 'this' object of an instance method.

Placeholder paths never expire within the function scope, as they represent storage from the caller's scope.

Definition at line 77 of file Loans.h.

Member Typedef Documentation

◆ KeyTy

Definition at line 92 of file Loans.h.

Constructor & Destructor Documentation

◆ PlaceholderBase() [1/2]

clang::lifetimes::internal::PlaceholderBase::PlaceholderBase ( const ParmVarDecl * PVD)
inline

Definition at line 81 of file Loans.h.

◆ PlaceholderBase() [2/2]

clang::lifetimes::internal::PlaceholderBase::PlaceholderBase ( const CXXMethodDecl * MD)
inline

Definition at line 82 of file Loans.h.

Member Function Documentation

◆ getImplicitThisParent()

const CXXMethodDecl * clang::lifetimes::internal::PlaceholderBase::getImplicitThisParent ( ) const
inline

Definition at line 88 of file Loans.h.

◆ getParmVarDecl()

const ParmVarDecl * clang::lifetimes::internal::PlaceholderBase::getParmVarDecl ( ) const
inline

Definition at line 84 of file Loans.h.

◆ Profile() [1/2]

void clang::lifetimes::internal::PlaceholderBase::Profile ( llvm::FoldingSetNodeID & ID) const
inline

Definition at line 98 of file Loans.h.

References Profile().

Referenced by Profile().

◆ Profile() [2/2]

void clang::lifetimes::internal::PlaceholderBase::Profile ( llvm::FoldingSetNodeID & ID,
KeyTy ParamOrMethod )
inlinestatic

Definition at line 94 of file Loans.h.


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