clang 22.0.0git
|
[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 |
ValueDecl * | getDecl () const |
unsigned | getInt () const |
void * | getOpaqueValue () const |
bool | operator== (const TypeCoupledDeclRefInfo &Other) const |
void | setFromOpaqueValue (void *V) |
[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.
using clang::TypeCoupledDeclRefInfo::BaseTy = llvm::PointerIntPair<ValueDecl *, 1, unsigned> |
Definition at line 3358 of file TypeBase.h.
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==().
ValueDecl * TypeCoupledDeclRefInfo::getDecl | ( | ) | const |
Definition at line 3968 of file Type.cpp.
Referenced by clang::BoundsAttributedType::referencesFieldDecls(), and clang::ASTRecordWriter::writeTypeCoupledDeclRefInfo().
void * TypeCoupledDeclRefInfo::getOpaqueValue | ( | ) | const |
Definition at line 3970 of file Type.cpp.
Referenced by operator==().
bool TypeCoupledDeclRefInfo::isDeref | ( | ) | const |
Definition at line 3965 of file Type.cpp.
Referenced by clang::ASTRecordWriter::writeTypeCoupledDeclRefInfo().
bool TypeCoupledDeclRefInfo::operator== | ( | const TypeCoupledDeclRefInfo & | Other | ) | const |
Definition at line 3973 of file Type.cpp.
References getOpaqueValue(), clang::Other, and TypeCoupledDeclRefInfo().
void TypeCoupledDeclRefInfo::setFromOpaqueValue | ( | void * | V | ) |