@@ -287,7 +287,7 @@ class Parser // NOLINT(readability/identifiers)
287287
288288 bool rDeclarators (cpp_declarationt::declaratorst &, bool , bool =false );
289289 bool rDeclaratorWithInit (cpp_declaratort &, bool , bool );
290- bool rDeclarator (cpp_declaratort &, DeclKind, bool , bool , bool = false );
290+ bool rDeclarator (cpp_declaratort &, DeclKind, bool , bool );
291291 bool rDeclaratorQualifier ();
292292 bool optPtrOperator (typet &);
293293 bool rMemberInitializers (irept &);
@@ -1297,7 +1297,7 @@ bool Parser::rTempArgDeclaration(cpp_declarationt &declaration)
12971297 declaration.declarators ().resize (1 );
12981298 cpp_declaratort &declarator=declaration.declarators ().front ();
12991299
1300- if (!rDeclarator (declarator, kArgDeclarator , false , true ))
1300+ if (!rDeclarator (declarator, kArgDeclarator , true , false ))
13011301 return false ;
13021302
13031303 #ifdef DEBUG
@@ -1512,7 +1512,7 @@ bool Parser::rSimpleDeclaration(cpp_declarationt &declaration)
15121512 declaration.type ().swap (integral);
15131513
15141514 cpp_declaratort declarator;
1515- if (!rDeclarator (declarator, kDeclarator , false , true , true ))
1515+ if (!rDeclarator (declarator, kDeclarator , true , true ))
15161516 return false ;
15171517
15181518 // there really _has_ to be an initializer!
@@ -2867,8 +2867,8 @@ bool Parser::rDeclaratorWithInit(
28672867 {
28682868 cpp_declaratort declarator;
28692869
2870- if (!rDeclarator (declarator, kDeclarator , false ,
2871- should_be_declarator, is_statement))
2870+ if (!rDeclarator (
2871+ declarator, kDeclarator , should_be_declarator, is_statement))
28722872 return false ;
28732873
28742874 int t=lex.LookAhead (0 );
@@ -2984,7 +2984,6 @@ bool Parser::rDeclaratorQualifier()
29842984bool Parser::rDeclarator (
29852985 cpp_declaratort &declarator,
29862986 DeclKind kind,
2987- bool recursive,
29882987 bool should_be_declarator,
29892988 bool is_statement)
29902989{
@@ -3029,7 +3028,7 @@ bool Parser::rDeclarator(
30293028 lex.get_token (op);
30303029
30313030 cpp_declaratort declarator2;
3032- if (!rDeclarator (declarator2, kind, true , true , false ))
3031+ if (!rDeclarator (declarator2, kind, true , false ))
30333032 return false ;
30343033
30353034 #ifdef DEBUG
@@ -4111,7 +4110,7 @@ bool Parser::rArgDeclaration(cpp_declarationt &declaration)
41114110
41124111 cpp_declaratort arg_declarator;
41134112
4114- if (!rDeclarator (arg_declarator, kArgDeclarator , false , true ))
4113+ if (!rDeclarator (arg_declarator, kArgDeclarator , true , false ))
41154114 return false ;
41164115
41174116 declaration.declarators ().push_back (arg_declarator);
0 commit comments