]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Use type_id_in_expr_sentinel in 6 further spots in the parser
authorJakub Jelinek <jakub@redhat.com>
Wed, 18 Dec 2024 11:02:38 +0000 (12:02 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 18 Dec 2024 11:02:38 +0000 (12:02 +0100)
commit84794671859ae8eb54ff81c7d3e32b4db8686024
tree154100bb1335b0abefd5b3fcddba77e2b8371982
parent7eb2acb7221b5a219ece1a693d9ac594f229a61a
c++: Use type_id_in_expr_sentinel in 6 further spots in the parser

The following patch uses type_id_in_expr_sentinel in a few spots which
did it all manually.

2024-12-18  Jakub Jelinek  <jakub@redhat.com>

* parser.cc (cp_parser_postfix_expression): Use
type_id_in_expr_sentinel instead of manually saving+setting/restoring
parser->in_type_id_in_expr_p around cp_parser_type_id calls.
(cp_parser_has_attribute_expression): Likewise.
(cp_parser_cast_expression): Likewise.
(cp_parser_sizeof_operand): Likewise.
gcc/cp/parser.cc