[libcxx] r191625 - Add a set of macros for using the new '[[[deprecated]]' attribute. No code changes (yet)

Marshall Clow mclow.lists at gmail.com
Sat Sep 28 11:35:31 PDT 2013


Author: marshall
Date: Sat Sep 28 13:35:31 2013
New Revision: 191625

URL: http://llvm.org/viewvc/llvm-project?rev=191625&view=rev
Log:
Add a set of macros for using the new '[[[deprecated]]' attribute. No code changes (yet)

Modified:
    libcxx/trunk/include/__config

Modified: libcxx/trunk/include/__config
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__config?rev=191625&r1=191624&r2=191625&view=diff
==============================================================================
--- libcxx/trunk/include/__config (original)
+++ libcxx/trunk/include/__config Sat Sep 28 13:35:31 2013
@@ -571,12 +571,20 @@ template <unsigned> struct __static_asse
 #  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





More information about the cfe-commits mailing list