]> granicus.if.org Git - clang/commit
[MSVC Compat] Implement __is_destructible, __is_nothrow_destructible
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 11 Aug 2015 03:03:28 +0000 (03:03 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 11 Aug 2015 03:03:28 +0000 (03:03 +0000)
commit08433d2af3310b1c98e9ffe9dd171b7322c05f42
treec90aa7f22ba7e752ce1d5918a36115769c71e186
parent8f552251f3c353b56fc4166b5a34709af3dec446
[MSVC Compat] Implement __is_destructible, __is_nothrow_destructible

Our implementations of these type trait intrinsics simply mapped them to
__has_trivial_destructor.  Instead, flesh these intrinsics out with a
full implementation which matches the standard's description.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244564 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExprCXX.cpp
test/SemaCXX/type-traits.cpp