CanonicalDeclPtr<T> is just like a T*, except it calls
T::getCanonicalDecl() on construction.
This is useful as the key in a "set of canonical Decls" -- it's much
less error-prone than calling getCanonicalDecl() every time you touch
the set.
Paths
| Differential D25703
[AST] Add CanonicalDeclPtr<T>. ClosedPublic Authored by jlebar on Oct 17 2016, 3:03 PM.
Details Summary CanonicalDeclPtr<T> is just like a T*, except it calls This is useful as the key in a "set of canonical Decls" -- it's much
Diff Detail
Event Timelinejlebar updated this object. This revision is now accepted and ready to land.Oct 19 2016, 9:23 AM Closed by commit rL284644: [AST] Add CanonicalDeclPtr<T>. (authored by jlebar). · Explain WhyOct 19 2016, 2:13 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 74911 clang/include/clang/AST/Redeclarable.h
|