[PATCH] D120086: Explicitly document that `__is_trivially_relocatable(T)` implies that `T` is implicit-lifetime.
Devin Jeanpierre via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 17 14:21:50 PST 2022
devin.jeanpierre updated this revision to Diff 409794.
devin.jeanpierre added a comment.
Rebase off of D119385 <https://reviews.llvm.org/D119385>. Sorry, I'm bad at git.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120086/new/
https://reviews.llvm.org/D120086
Files:
clang/docs/LanguageExtensions.rst
Index: clang/docs/LanguageExtensions.rst
===================================================================
--- clang/docs/LanguageExtensions.rst
+++ clang/docs/LanguageExtensions.rst
@@ -1372,8 +1372,9 @@
* ``__is_trivially_relocatable`` (Clang): Returns true if moving an object
of the given type, and then destroying the source object, is known to be
functionally equivalent to copying the underlying bytes and then dropping the
- source object on the floor. This is true of trivial types and types which
- were made trivially relocatable via the ``clang::trivial_abi`` attribute.
+ source object on the floor. (Note: any such type is, therefore, implicit-lifetime.)
+ This is true of trivial types and types which were made trivially relocatable
+ via the ``clang::trivial_abi`` attribute.
* ``__is_union`` (C++, GNU, Microsoft, Embarcadero)
* ``__is_unsigned`` (C++, Embarcadero):
Returns false for enumeration types. Note, before Clang 13, returned true for
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120086.409794.patch
Type: text/x-patch
Size: 982 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220217/8dbdc2cb/attachment.bin>
More information about the cfe-commits
mailing list