From: Paul Eggert Date: Sat, 24 Oct 2020 20:35:17 +0000 (-0700) Subject: doc: mention ‘restrict’ and C++ X-Git-Tag: v1.0~3552 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=b3a495976532f44b4b2fe8f17c954bd89ff11325;p=gnulib.git doc: mention ‘restrict’ and C++ * doc/gnulib-readme.texi (C99 features assumed): Document that ‘restrict’ should be avoided in C++ code. --- diff --git a/ChangeLog b/ChangeLog index 39257f6e2d..8fa32e1ecc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2020-10-24 Paul Eggert + + doc: mention ‘restrict’ and C++ + * doc/gnulib-readme.texi (C99 features assumed): Document + that ‘restrict’ should be avoided in C++ code. + 2020-10-20 Bernhard Voelker selinux-at, selinux-h: port to SELinux 3.1 diff --git a/doc/gnulib-readme.texi b/doc/gnulib-readme.texi index 2ec11d554a..beb0ca9b67 100644 --- a/doc/gnulib-readme.texi +++ b/doc/gnulib-readme.texi @@ -384,6 +384,8 @@ Variadic macros. @item The @code{restrict} qualifier, assuming @code{AC_REQUIRE([AC_C_RESTRICT])} is used. +This qualifier is sometimes implemented via a macro, so C++ code that +uses Gnulib should avoid using @code{restrict} as an identifier. @item Flexible array members (however, see the @code{flexmember} module).