[PATCH] D48912: [libc++] Add deprecated attributes to many deprecated components

Louis Dionne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 13 13:43:02 PDT 2018


ldionne updated this revision to Diff 155478.
ldionne added a comment.

Made sure the attributes worked properly on GCC.

This still requires using __attribute__((deprecated)) whenever that's
available, both because `[[deprecated]]` was added only in C++14 (so won't
work for C++11 deprecations), and because of placement issue with GCC.


Repository:
  rL LLVM

https://reviews.llvm.org/D48912

Files:
  libcxx/docs/UsingLibcxx.rst
  libcxx/include/__config
  libcxx/include/__functional_base
  libcxx/include/algorithm
  libcxx/include/functional
  libcxx/include/memory
  libcxx/test/libcxx/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle.cxx1z.pass.cpp
  libcxx/test/libcxx/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle.depr_in_cxx14.fail.cpp
  libcxx/test/libcxx/depr/depr.auto.ptr/auto.ptr/auto_ptr.depr_in_cxx11.fail.cpp
  libcxx/test/libcxx/depr/depr.function.objects/adaptors.depr_in_cxx11.fail.cpp
  libcxx/test/std/depr/depr.lib.binders/depr.lib.bind.1st/bind1st.depr_in_cxx11.fail.cpp
  libcxx/test/std/depr/depr.lib.binders/depr.lib.bind.2nd/bind2nd.depr_in_cxx11.fail.cpp
  libcxx/test/std/depr/depr.lib.binders/depr.lib.binder.1st/binder1st.depr_in_cxx11.fail.cpp
  libcxx/test/std/depr/depr.lib.binders/depr.lib.binder.2nd/binder2nd.depr_in_cxx11.fail.cpp
  libcxx/test/std/utilities/function.objects/negators/binary_negate.depr_in_cxx17.fail.cpp
  libcxx/test/std/utilities/function.objects/negators/not1.depr_in_cxx17.fail.cpp
  libcxx/test/std/utilities/function.objects/negators/not2.depr_in_cxx17.fail.cpp
  libcxx/test/std/utilities/function.objects/negators/unary_negate.depr_in_cxx17.fail.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48912.155478.patch
Type: text/x-patch
Size: 34511 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180713/4ed39704/attachment.bin>


More information about the llvm-commits mailing list