[PATCH] teach gengtype about 'mutable'
authorNathan Sidwell <nathan@acm.org>
Sun, 13 Oct 2019 14:46:45 +0000 (14:46 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Sun, 13 Oct 2019 14:46:45 +0000 (14:46 +0000)
https://gcc.gnu.org/ml/gcc-patches/2019-10/msg00942.html

In constifying some more of line-map I discovered gengtype didn't know mutable. Added thusly.
* gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.

From-SVN: r276939

gcc/ChangeLog
gcc/gengtype-lex.l

index 44753c8b9bd7a001d82f7f2c7d061ebba158e134..752eda4cd538f350c708d2aefef604db0062661b 100644 (file)
@@ -1,3 +1,7 @@
+2019-10-13  Nathan Sidwell  <nathan@acm.org>
+
+       * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
+
 2019-10-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        * doc/sourcebuild.texi (Test Directives, Add Options): Remove
index 1188691f785ab8c091b7d3f91d21c4eab8a0d76b..57527495505141ec393e3f1cd86529528c306ac3 100644 (file)
@@ -58,7 +58,7 @@ ITYPE {IWORD}({WS}{IWORD})*
     /* Include '::' in identifiers to capture C++ scope qualifiers.  */
 ID     {CID}({HWS}::{HWS}{CID})*
 EOID   [^[:alnum:]_]
-CXX_KEYWORD inline|public:|private:|protected:|template|operator|friend|static
+CXX_KEYWORD inline|public:|private:|protected:|template|operator|friend|static|mutable
 
 %x in_struct in_struct_comment in_comment
 %option warn noyywrap nounput nodefault perf-report