clang 20.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 350 of file Redeclarable.h.
|
default |
|
inline |
Definition at line 353 of file Redeclarable.h.
|
default |
|
inline |
Definition at line 359 of file Redeclarable.h.
|
inline |
Definition at line 358 of file Redeclarable.h.
|
inline |
Definition at line 364 of file Redeclarable.h.
|
inline |
Definition at line 365 of file Redeclarable.h.
|
inline |
Definition at line 361 of file Redeclarable.h.
|
inline |
Definition at line 362 of file Redeclarable.h.
|
default |
|
friend |
Definition at line 370 of file Redeclarable.h.
|
friend |
Definition at line 370 of file Redeclarable.h.
|
friend |
Definition at line 370 of file Redeclarable.h.
|
friend |
Definition at line 367 of file Redeclarable.h.