summaryrefslogtreecommitdiffstats
path: root/libcxx/include
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2013-09-28 18:35:31 +0000
committerMarshall Clow <mclow.lists@gmail.com>2013-09-28 18:35:31 +0000
commit8392ab209e9c6fac9d5d3c8b70de396564458237 (patch)
tree993f4e246ee8a9e90b8ae4bfcabfc49cb75f0de1 /libcxx/include
parent408b4fa472e1dfa657e904678aa8a68c757438d1 (diff)
downloadbcm5719-llvm-8392ab209e9c6fac9d5d3c8b70de396564458237.tar.gz
bcm5719-llvm-8392ab209e9c6fac9d5d3c8b70de396564458237.zip
Add a set of macros for using the new '[[[deprecated]]' attribute. No code changes (yet)
llvm-svn: 191625
Diffstat (limited to 'libcxx/include')
-rw-r--r--libcxx/include/__config8
1 files changed, 8 insertions, 0 deletions
diff --git a/libcxx/include/__config b/libcxx/include/__config
index 4d79d7fcd44..dead4c69935 100644
--- a/libcxx/include/__config
+++ b/libcxx/include/__config
@@ -571,12 +571,20 @@ template <unsigned> struct __static_assert_check {};
# endif
#endif // _LIBCPP_STD_VER
+#if _LIBCPP_STD_VER > 11
+#define _LIBCPP_DEPRECATED [[deprecated]]
+#else
+#define _LIBCPP_DEPRECATED
+#endif
+
#if _LIBCPP_STD_VER <= 11
#define _LIBCPP_CONSTEXPR_AFTER_CXX11
#define _LIBCPP_EXPLICIT_AFTER_CXX11
+#define _LIBCPP_DEPRECATED_AFTER_CXX11
#else
#define _LIBCPP_CONSTEXPR_AFTER_CXX11 constexpr
#define _LIBCPP_EXPLICIT_AFTER_CXX11 explicit
+#define _LIBCPP_DEPRECATED_AFTER_CXX11 [[deprecated]]
#endif
#endif // _LIBCPP_CONFIG
OpenPOWER on IntegriCloud