]> Savannah Git Hosting - gnulib.git/commitdiff
doc: mention ‘restrict’ and C++
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 24 Oct 2020 20:35:17 +0000 (13:35 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 24 Oct 2020 20:35:49 +0000 (13:35 -0700)
* doc/gnulib-readme.texi (C99 features assumed): Document
that ‘restrict’ should be avoided in C++ code.

ChangeLog
doc/gnulib-readme.texi

index 39257f6e2dcef126b1e1a3a30594d6e146b32b1b..8fa32e1ecc12cc8732afd7ee7f890ac1a0ea88a9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-10-24  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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  <mail@bernhard-voelker.de>
 
        selinux-at, selinux-h: port to SELinux 3.1
index 2ec11d554a1f0c1883e614b7c377b37ef9386734..beb0ca9b672e89f2ac2a0978e7787c4bcfc884e6 100644 (file)
@@ -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).