clang 20.0.0git
Public Types | Public Member Functions | List of all members
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/Type.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 3226 of file Type.h.

Member Typedef Documentation

◆ BaseTy

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

Definition at line 3228 of file Type.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 3873 of file Type.cpp.

Member Function Documentation

◆ getDecl()

ValueDecl * TypeCoupledDeclRefInfo::getDecl ( ) const

◆ getInt()

unsigned TypeCoupledDeclRefInfo::getInt ( ) const

Definition at line 3880 of file Type.cpp.

◆ getOpaqueValue()

void * TypeCoupledDeclRefInfo::getOpaqueValue ( ) const

Definition at line 3881 of file Type.cpp.

Referenced by operator==().

◆ isDeref()

bool TypeCoupledDeclRefInfo::isDeref ( ) const

Definition at line 3876 of file Type.cpp.

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

◆ operator==()

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

Definition at line 3884 of file Type.cpp.

References getOpaqueValue(), and clang::Other.

◆ setFromOpaqueValue()

void TypeCoupledDeclRefInfo::setFromOpaqueValue ( void *  V)

Definition at line 3888 of file Type.cpp.

References V.


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