[PATCH] D123345: Treat `std::move`, `forward`, and `move_if_noexcept` as builtins.

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 15 14:06:39 PDT 2022


rsmith added inline comments.


================
Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:6577-6578
+// FIXME: This should also be in -Wc++23-compat once we have it.
+def warn_use_of_unaddressable_function : Warning<
+  "taking address of non-addressable standard library function">,
+  InGroup<CXX20Compat>;
----------------
aaron.ballman wrote:
> aaron.ballman wrote:
> > Thank you for making this one on by default :-)
> Thoughts on this one?
Sorry, I was looking at your comments over email and didn't see the suggestion. Done.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D123345



More information about the cfe-commits mailing list