clang 20.0.0git
|
Base class of all canonical proxy types, which is responsible for storing the underlying canonical type and providing basic conversions. More...
#include "clang/AST/CanonicalType.h"
Public Member Functions | |
const T * | getTypePtr () const |
Retrieve the pointer to the underlying Type. | |
operator const T * () const | |
Implicit conversion to the underlying pointer. | |
template<typename U > | |
CanProxy< U > | getAs () const |
Try to convert the given canonical type to a specific structural type. | |
const CanProxyAdaptor< T > * | operator-> () const |
Retrieve the proxy-adaptor type. | |
Protected Attributes | |
CanQual< T > | Stored |
Base class of all canonical proxy types, which is responsible for storing the underlying canonical type and providing basic conversions.
Definition at line 239 of file CanonicalType.h.
|
inline |
Try to convert the given canonical type to a specific structural type.
Definition at line 258 of file CanonicalType.h.
|
inline |
Retrieve the pointer to the underlying Type.
Definition at line 245 of file CanonicalType.h.
References clang::CanQual< T >::getTypePtr(), and clang::CanProxyBase< T >::Stored.
Referenced by clang::CanProxyAdaptor< FunctionProtoType >::LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(), clang::CanProxyAdaptor< FunctionProtoType >::param_type_begin(), and clang::CanProxyAdaptor< FunctionProtoType >::param_type_end().
|
inline |
Implicit conversion to the underlying pointer.
Also provides the ability to use canonical type proxies in a Boolean
Definition at line 254 of file CanonicalType.h.
|
inline |
Retrieve the proxy-adaptor type.
This arrow operator is used when CanProxyAdaptor has been specialized for the given type T. In that case, we reference members of the CanProxyAdaptor specialization. Otherwise, this operator will be hidden by the arrow operator in the primary CanProxyAdaptor template.
Definition at line 322 of file CanonicalType.h.
|
protected |
Definition at line 241 of file CanonicalType.h.
Referenced by clang::CanProxy< T >::CanProxy(), clang::CanQual< T >::castAs(), clang::CanQual< T >::getAs(), clang::CanProxyBase< T >::getTypePtr(), clang::CanQual< T >::getUnqualifiedType(), and clang::CanProxy< T >::operator CanQual< T >().