[libcxx] Fix detection of __is_final.
authorEric Fiselier <eric@efcs.ca>
Sat, 13 Jun 2015 07:08:02 +0000 (07:08 +0000)
committerEric Fiselier <eric@efcs.ca>
Sat, 13 Jun 2015 07:08:02 +0000 (07:08 +0000)
commitee187e247bc2c7b97eb345e1de7f5ccf151e24e5
tree8c11cf17b11efa5d05ba2350281d9ebf93964029
parent8fcf50515b554bacfb8bc7307149d862b6c2cb93
[libcxx] Fix detection of __is_final.

Summary: Currently we only enable the use of __is_final(...) with Clang. GCC also provides __is_final(...) since 4.7 in all standard modes. This patch creates the macro _LIBCPP_HAS_IS_FINAL to note the availability of `__is_final`.

Reviewers: danalbert, mclow.lists

Reviewed By: mclow.lists

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D8795

llvm-svn: 239664
libcxx/include/__config
libcxx/include/exception
libcxx/include/ext/hash_map
libcxx/include/map
libcxx/include/memory
libcxx/include/tuple
libcxx/include/type_traits
libcxx/include/unordered_map