clang 20.0.0git
|
Replaceable canonical proxy adaptor class that provides the link between a canonical type and the accessors of the type. More...
#include "clang/AST/CanonicalType.h"
Additional Inherited Members | |
Public Member Functions inherited from clang::CanProxyBase< T > | |
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 inherited from clang::CanProxyBase< T > | |
CanQual< T > | Stored |
Replaceable canonical proxy adaptor class that provides the link between a canonical type and the accessors of the type.
The CanProxyAdaptor is a replaceable class template that is instantiated as part of each canonical proxy type. The primary template merely provides redirection to the underlying type (T), e.g., PointerType
. One can provide specializations of this class template for each underlying type that provide accessors returning canonical types (CanQualType
) rather than the more typical QualType
, to propagate the notion of "canonical" through the system.
Definition at line 338 of file CanonicalType.h.