diff mbox series

[02/11] gcc/doc/extend.texi: Add documentation for __is_array

Message ID 20240302002229.308001-2-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_array): 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 b13f9d6f934..5aeb9bdd47a 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -29579,6 +29579,11 @@  If @var{type} is an aggregate type ([dcl.init.aggr]) the trait is
 Requires: If @var{type} is a class type, it shall be a complete type.
 @enddefbuiltin
 
+@defbuiltin{bool __is_array (@var{type})}
+If @var{type} is an array type ([dcl.array]) the trait is @code{true},
+else it is @code{false}.
+@enddefbuiltin
+
 @defbuiltin{bool __is_base_of (@var{base_type}, @var{derived_type})}
 If @var{base_type} is a base class of @var{derived_type}
 ([class.derived]) then the trait is @code{true}, otherwise it is @code{false}.