[libcxx-commits] [PATCH] D146675: [libc++] Warn on including headers that are deprecated in C++17

Christopher Di Bella via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Mar 22 17:24:18 PDT 2023


cjdb added inline comments.


================
Comment at: libcxx/include/ccomplex:24
+#if !defined(_LIBCPP_DISABLE_DEPRECATION_WARNINGS) && _LIBCPP_STD_VER >= 17
+#  warning "Header <ccomplex> is deprecated in C++17"
+#endif
----------------
* "removed as of C++20" increases the urgency of the diagnostic.
* "Header" bit removed since that will be implied by context.
* Added backticks to support SARIF diagnostics rendering this in Markdown.

Same comment applies below.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146675/new/

https://reviews.llvm.org/D146675



More information about the libcxx-commits mailing list