teak-llvm/libcxx/test/std/utilities/function.objects
Louis Dionne ea5cd3b476 [libc++] Add deprecated attributes to many deprecated components
Summary:
These deprecation warnings are opt-in: they are only enabled when the
_LIBCXX_DEPRECATION_WARNINGS macro is defined, which is not the case
by default. Note that this is a first step in the right direction, but
I wasn't able to get an exhaustive list of all deprecated components
per standard, so there's certainly stuff that's missing. The list of
components this commit marks as deprecated is:

in C++11:
- auto_ptr, auto_ptr_ref
- binder1st, binder2nd, bind1st(), bind2nd()
- pointer_to_unary_function, pointer_to_binary_function, ptr_fun()
- mem_fun_t, mem_fun1_t, const_mem_fun_t, const_mem_fun1_t, mem_fun()
- mem_fun_ref_t, mem_fun1_ref_t, const_mem_fun_ref_t, const_mem_fun1_ref_t, mem_fun_ref()

in C++14:
- random_shuffle()

in C++17:
- unary_negate, binary_negate, not1(), not2()

<rdar://problem/18168350>

Reviewers: mclow.lists, EricWF

Subscribers: christof, dexonsmith, llvm-commits

Differential Revision: https://reviews.llvm.org/D48912

llvm-svn: 342843
2018-09-23 18:35:00 +00:00
..
arithmetic.operations [libcxx] [test] Rename _Up to U, etc. NFCI. 2017-08-11 20:54:09 +00:00
bind Update all bug URL's to point to https://bugs.llvm.org/... 2017-02-17 08:37:03 +00:00
bitwise.operations [libcxx] [test] Rename _Up to U, etc. NFCI. 2017-08-11 20:54:09 +00:00
comparisons Un-XFAIL a test under new GCC version; the GCC bug has been fixed 2018-03-22 19:18:08 +00:00
func.def
func.invoke [libcxx] [test] Make files consistently end with newlines, NFC. 2017-07-29 00:55:22 +00:00
func.memfn
func.not_fn [libcxx] [test] Improve MSVC portability. 2018-01-10 00:39:46 +00:00
func.require [libcxx] [test] Update for C++17 feature removals. 2017-08-24 21:24:08 +00:00
func.search Apparently 'C++14' is different than 'c++14' 2018-01-08 22:16:30 +00:00
func.wrap [libcxx] func.wrap.func.con: Unset function before destroying anything 2018-04-25 23:38:41 +00:00
logical.operations [libcxx] [test] Rename _Up to U, etc. NFCI. 2017-08-11 20:54:09 +00:00
negators [libc++] Add deprecated attributes to many deprecated components 2018-09-23 18:35:00 +00:00
refwrap [libcxx] [test] Update for C++17 feature removals. 2017-08-24 21:24:08 +00:00
unord.hash [libcxx] P0604, invoke_result and is_invocable 2017-12-12 18:42:04 +00:00