[PATCH] D135341: [clang] adds `__reference_constructs_from_temporary`

Roy Jacobson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 11 04:10:37 PDT 2022


royjacobson added inline comments.


================
Comment at: clang/docs/LanguageExtensions.rst:1476
   is false. Note this trait will also return false when the initialization of
   ``T`` from ``U`` is ill-formed.
+* ``__reference_constructs_from_temporary(T, U)`` (C++)
----------------
royjacobson wrote:
> We should deprecate this, as `__reference_constructs_from_temporary` is implemented now. There's a list of deprecated builtins in SemaExprCXX.cpp:DiagnoseBuiltinDeprecation so I think it should be pretty easy to add a warning for users that this is a non-standard attribute.
Though for the CI's sake maybe it's better to wait until after libcxx stop using it.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D135341



More information about the cfe-commits mailing list