]> gcc.gnu.org Git - gcc.git/commit
A few parser cleanups
authorNathan Sidwell <nathan@acm.org>
Thu, 30 Jan 2020 16:33:53 +0000 (08:33 -0800)
committerNathan Sidwell <nathan@acm.org>
Thu, 30 Jan 2020 16:33:53 +0000 (08:33 -0800)
commit55695b9451e0557f67b695bc2c0fdbcf48a7226f
tree38fe092ae8d811e598b0db343a689619a50a8e32
parent1fa99997b3a5ff6923916449fbd54f22059a4c6c
A few parser cleanups

gcc/cp/
* parser.c (cp_lexer_alloc): Remove pch finalizing.
(cp_parser_skip_to_closing_parenthesis_1): Deal with falling into
a CPP_PRAGMA.
(cp_parser_skip_to_end_of_{,block_or_}statement): Likewise.
(cp_parser_skip_to_pragma_eol): Don't consume CPP_EOF.
(cp_parser_new): Take a lexer, don't create it here.
(cp_parser_declaration): Just point at peeked tokens, don't copy.
(cp_parser_block_declaration): Likewise.
(cp_parser_initial_pragma): Don't get the first token.
(c_parse_file): Do it here, and finalize pch.
ChangeLog.modules
gcc/cp/parser.c
This page took 0.054215 seconds and 6 git commands to generate.