clang 22.0.0git
clang::TypeCoupledDeclRefInfo Class Reference

[BoundsSafety] Represents information of declarations referenced by the arguments of the counted_by attribute and the likes. More...

#include "clang/AST/TypeBase.h"

Public Types

using BaseTy = llvm::PointerIntPair<ValueDecl *, 1, unsigned>

Public Member Functions

 TypeCoupledDeclRefInfo (ValueDecl *D=nullptr, bool Deref=false)
 D is to a declaration referenced by the argument of attribute.
bool isDeref () const
ValueDeclgetDecl () const
unsigned getInt () const
void * getOpaqueValue () const
bool operator== (const TypeCoupledDeclRefInfo &Other) const
void setFromOpaqueValue (void *V)

Detailed Description

[BoundsSafety] Represents information of declarations referenced by the arguments of the counted_by attribute and the likes.

Definition at line 3356 of file TypeBase.h.

Member Typedef Documentation

◆ BaseTy

using clang::TypeCoupledDeclRefInfo::BaseTy = llvm::PointerIntPair<ValueDecl *, 1, unsigned>

Definition at line 3358 of file TypeBase.h.

Constructor & Destructor Documentation

◆ TypeCoupledDeclRefInfo()

TypeCoupledDeclRefInfo::TypeCoupledDeclRefInfo ( ValueDecl * D = nullptr,
bool Deref = false )

D is to a declaration referenced by the argument of attribute.

Deref indicates whether D is referenced as a dereferenced form, e.g., Deref is true for *n in int *__counted_by(*n).

Definition at line 3962 of file Type.cpp.

Referenced by operator==().

Member Function Documentation

◆ getDecl()

ValueDecl * TypeCoupledDeclRefInfo::getDecl ( ) const

◆ getInt()

unsigned TypeCoupledDeclRefInfo::getInt ( ) const

Definition at line 3969 of file Type.cpp.

◆ getOpaqueValue()

void * TypeCoupledDeclRefInfo::getOpaqueValue ( ) const

Definition at line 3970 of file Type.cpp.

Referenced by operator==().

◆ isDeref()

bool TypeCoupledDeclRefInfo::isDeref ( ) const

Definition at line 3965 of file Type.cpp.

Referenced by clang::ASTRecordWriter::writeTypeCoupledDeclRefInfo().

◆ operator==()

bool TypeCoupledDeclRefInfo::operator== ( const TypeCoupledDeclRefInfo & Other) const

Definition at line 3973 of file Type.cpp.

References getOpaqueValue(), clang::Other, and TypeCoupledDeclRefInfo().

◆ setFromOpaqueValue()

void TypeCoupledDeclRefInfo::setFromOpaqueValue ( void * V)

Definition at line 3977 of file Type.cpp.

References V.


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