[PATCH] teach gengtype about 'mutable'

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
This commit is contained in:
Nathan Sidwell 2019-10-13 14:46:45 +00:00 committed by Nathan Sidwell
parent 19400cb96c
commit ad67109874
2 changed files with 5 additions and 1 deletions

View 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

View 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