diff mbox series

[09/11] gcc/doc/extend.texi: Add documentation for __is_reference

Message ID 20240302002229.308001-9-kmatsui@gcc.gnu.org
State New
Headers show
Series [01/11] gcc/doc/extend.texi: Sort built-in traits alphabetically | expand

Commit Message

Ken Matsui March 2, 2024, 12:22 a.m. UTC
gcc/ChangeLog:

	* doc/extend.texi (__is_reference): New documentation.

Signed-off-by: Ken Matsui <kmatsui@gcc.gnu.org>
---
 gcc/doc/extend.texi | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 05f864e3dd5..d36707fcdf3 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -29679,6 +29679,11 @@  is @code{true}, else it is @code{false}.
 Requires: If @var{type} is a non-union class type, it shall be a complete type.
 @enddefbuiltin
 
+@defbuiltin{bool __is_reference (@var{type})}
+If @var{type} is a reference type ([dcl.ref]) the trait is @code{true},
+else it is @code{false}.
+@enddefbuiltin
+
 @defbuiltin{bool __is_standard_layout (@var{type})}
 If @var{type} is a standard-layout type ([basic.types]) the trait is
 @code{true}, else it is @code{false}.