summaryrefslogtreecommitdiffstats
path: root/libcxx/docs
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2019-03-12 20:10:06 +0000
committerLouis Dionne <ldionne@apple.com>2019-03-12 20:10:06 +0000
commita470a13a7063e8c5318fe4f5ba864320092c6c7b (patch)
treeabb1bde10922a9c0a32d19d08ce2b7ef7443a111 /libcxx/docs
parent8259cc33576a7da9aa12c350b6fe9e39ac8867ef (diff)
downloadbcm5719-llvm-a470a13a7063e8c5318fe4f5ba864320092c6c7b.tar.gz
bcm5719-llvm-a470a13a7063e8c5318fe4f5ba864320092c6c7b.zip
[libc++] Enable deprecation warnings by default
Summary: In r342843, I added deprecation warnings to some facilities that were deprectated in C++14 and C++17. However, those deprecation warnings were not enabled by default. After discussing this on IRC, we had finally gotten consensus to enable those warnings by default, and I'm getting around to doing that only now. Reviewers: mclow.lists, EricWF Subscribers: christof, jkorous, dexonsmith, jdoerfert, libcxx-commits Differential Revision: https://reviews.llvm.org/D58140 llvm-svn: 355961
Diffstat (limited to 'libcxx/docs')
-rw-r--r--libcxx/docs/UsingLibcxx.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/libcxx/docs/UsingLibcxx.rst b/libcxx/docs/UsingLibcxx.rst
index 899656cca1d..7b06189c648 100644
--- a/libcxx/docs/UsingLibcxx.rst
+++ b/libcxx/docs/UsingLibcxx.rst
@@ -242,11 +242,11 @@ thread safety annotations.
purely as an extension. See :ref:`Extended Applications of [[nodiscard]] <nodiscard extension>`
for more information.
-**_LIBCPP_ENABLE_DEPRECATION_WARNINGS**:
- This macro enables warnings when using deprecated components. For example,
- when compiling in C++11 mode, using `std::auto_ptr` with the macro defined
- will trigger a warning saying that `std::auto_ptr` is deprecated. By default,
- this macro is not defined.
+**_LIBCPP_DISABLE_DEPRECATION_WARNINGS**:
+ This macro disables warnings when using deprecated components. For example,
+ using `std::auto_ptr` when compiling in C++11 mode will normally trigger a
+ warning saying that `std::auto_ptr` is deprecated. If the macro is defined,
+ no warning will be emitted. By default, this macro is not defined.
C++17 Specific Configuration Macros
-----------------------------------
OpenPOWER on IntegriCloud