clang 22.0.0git
|
A wrapper class around a pointer that always points to its canonical declaration. More...
#include "clang/AST/Redeclarable.h"
Public Member Functions | |
CanonicalDeclPtr ()=default | |
CanonicalDeclPtr (decl_type *Ptr) | |
CanonicalDeclPtr (const CanonicalDeclPtr &)=default | |
CanonicalDeclPtr & | operator= (const CanonicalDeclPtr &)=default |
operator decl_type * () | |
operator const decl_type * () const | |
decl_type * | operator-> () |
const decl_type * | operator-> () const |
decl_type & | operator* () |
const decl_type & | operator* () const |
Friends | |
struct | llvm::DenseMapInfo< CanonicalDeclPtr< decl_type > > |
struct | llvm::PointerLikeTypeTraits< CanonicalDeclPtr< decl_type > > |
bool | operator== (CanonicalDeclPtr LHS, CanonicalDeclPtr RHS) |
bool | operator!= (CanonicalDeclPtr LHS, CanonicalDeclPtr RHS) |
A wrapper class around a pointer that always points to its canonical declaration.
CanonicalDeclPtr<decl_type> behaves just like decl_type*, except we call decl_type::getCanonicalDecl() on construction.
This is useful for hashtables that you want to be keyed on a declaration's canonical decl – if you use CanonicalDeclPtr as the key, you don't need to remember to call getCanonicalDecl() everywhere.
Definition at line 346 of file Redeclarable.h.
|
default |
Referenced by CanonicalDeclPtr(), llvm::DenseMapInfo< CanonicalDeclPtr< decl_type > >, operator=(), and operator==.
|
inline |
Definition at line 349 of file Redeclarable.h.
References getCanonicalDecl(), and clang::nullptr.
|
default |
References CanonicalDeclPtr().
|
inline |
Definition at line 355 of file Redeclarable.h.
|
inline |
Definition at line 354 of file Redeclarable.h.
|
inline |
Definition at line 360 of file Redeclarable.h.
|
inline |
Definition at line 361 of file Redeclarable.h.
|
inline |
Definition at line 357 of file Redeclarable.h.
|
inline |
Definition at line 358 of file Redeclarable.h.
|
default |
References CanonicalDeclPtr().
|
friend |
Definition at line 366 of file Redeclarable.h.
References CanonicalDeclPtr().
|
friend |
Definition at line 366 of file Redeclarable.h.
|
friend |
Definition at line 366 of file Redeclarable.h.
|
friend |
Definition at line 363 of file Redeclarable.h.
References CanonicalDeclPtr().