A helper builtin to facilitate implementing the
std::has_unique_object_representations type trait.
Requested here: https://bugs.llvm.org/show_bug.cgi?id=34942
Also already exists in GCC and MSVC.
Paths
| Differential D39064
implement __has_unique_object_representations ClosedPublic Authored by erichkeane on Oct 18 2017, 11:29 AM.
Details Summary A helper builtin to facilitate implementing the Requested here: https://bugs.llvm.org/show_bug.cgi?id=34942
Diff Detail
Event TimelineComment Actions Looks good to me modulo comments.
erichkeane marked 3 inline comments as done.
Comment Actions Based on @rnk s comments, I discovered that base-class handling is more difficult than I suspected! I added a couple more tests and am properly handling base classes.
This revision is now accepted and ready to land.Oct 24 2017, 2:18 PM Closed by commit rL316518: mplement __has_unique_object_representations (authored by erichkeane). · Explain WhyOct 24 2017, 2:32 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 120137 cfe/trunk/include/clang/AST/Type.h
cfe/trunk/include/clang/Basic/TokenKinds.def
cfe/trunk/include/clang/Basic/TypeTraits.h
cfe/trunk/lib/AST/Type.cpp
cfe/trunk/lib/Parse/ParseExpr.cpp
cfe/trunk/lib/Sema/SemaExprCXX.cpp
cfe/trunk/test/SemaCXX/type-traits.cpp
|