@@ -283,7 +283,7 @@ class Parser // NOLINT(readability/identifiers)
283283
284284 bool rDeclarators (cpp_declarationt::declaratorst &, bool , bool =false );
285285 bool rDeclaratorWithInit (cpp_declaratort &, bool , bool );
286- bool rDeclarator (cpp_declaratort &, DeclKind, bool , bool , bool = false );
286+ bool rDeclarator (cpp_declaratort &, DeclKind, bool , bool );
287287 bool rDeclaratorQualifier ();
288288 bool optPtrOperator (typet &);
289289 bool rMemberInitializers (irept &);
@@ -1293,7 +1293,7 @@ bool Parser::rTempArgDeclaration(cpp_declarationt &declaration)
12931293 declaration.declarators ().resize (1 );
12941294 cpp_declaratort &declarator=declaration.declarators ().front ();
12951295
1296- if (!rDeclarator (declarator, kArgDeclarator , false , true ))
1296+ if (!rDeclarator (declarator, kArgDeclarator , true , false ))
12971297 return false ;
12981298
12991299 #ifdef DEBUG
@@ -1507,7 +1507,7 @@ bool Parser::rSimpleDeclaration(cpp_declarationt &declaration)
15071507 declaration.type ().swap (integral);
15081508
15091509 cpp_declaratort declarator;
1510- if (!rDeclarator (declarator, kDeclarator , false , true , true ))
1510+ if (!rDeclarator (declarator, kDeclarator , true , true ))
15111511 return false ;
15121512
15131513 // there really _has_ to be an initializer!
@@ -2876,8 +2876,8 @@ bool Parser::rDeclaratorWithInit(
28762876 {
28772877 cpp_declaratort declarator;
28782878
2879- if (!rDeclarator (declarator, kDeclarator , false ,
2880- should_be_declarator, is_statement))
2879+ if (!rDeclarator (
2880+ declarator, kDeclarator , should_be_declarator, is_statement))
28812881 return false ;
28822882
28832883 int t=lex.LookAhead (0 );
@@ -2993,7 +2993,6 @@ bool Parser::rDeclaratorQualifier()
29932993bool Parser::rDeclarator (
29942994 cpp_declaratort &declarator,
29952995 DeclKind kind,
2996- bool recursive,
29972996 bool should_be_declarator,
29982997 bool is_statement)
29992998{
@@ -3038,7 +3037,7 @@ bool Parser::rDeclarator(
30383037 lex.get_token (op);
30393038
30403039 cpp_declaratort declarator2;
3041- if (!rDeclarator (declarator2, kind, true , true , false ))
3040+ if (!rDeclarator (declarator2, kind, true , false ))
30423041 return false ;
30433042
30443043 #ifdef DEBUG
@@ -4122,7 +4121,7 @@ bool Parser::rArgDeclaration(cpp_declarationt &declaration)
41224121
41234122 cpp_declaratort arg_declarator;
41244123
4125- if (!rDeclarator (arg_declarator, kArgDeclarator , false , true ))
4124+ if (!rDeclarator (arg_declarator, kArgDeclarator , true , false ))
41264125 return false ;
41274126
41284127 declaration.declarators ().push_back (arg_declarator);
0 commit comments