[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
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: a470a13a7063e8c5318fe4f5ba864320092c6c7b
diff --git a/docs/UsingLibcxx.rst b/docs/UsingLibcxx.rst
index 899656c..7b06189 100644
--- a/docs/UsingLibcxx.rst
+++ b/docs/UsingLibcxx.rst
@@ -242,11 +242,11 @@
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
-----------------------------------