diff options
author | Nathan Sidwell <nathan@acm.org> | 2019-10-13 14:46:45 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2019-10-13 14:46:45 +0000 |
commit | ad671098740b0dc798a89bc55833088f3948038b (patch) | |
tree | 333f012cdf0475a618daad27f41fbc9769597406 /gcc | |
parent | 19400cb96ce8fde3268d0b476d4d3c1efe3d3728 (diff) | |
download | gcc-ad671098740b0dc798a89bc55833088f3948038b.zip gcc-ad671098740b0dc798a89bc55833088f3948038b.tar.gz gcc-ad671098740b0dc798a89bc55833088f3948038b.tar.bz2 |
[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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/gengtype-lex.l | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 44753c8..752eda4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/gengtype-lex.l b/gcc/gengtype-lex.l index 1188691..5752749 100644 --- a/gcc/gengtype-lex.l +++ b/gcc/gengtype-lex.l @@ -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 |