@@ -287,7 +287,7 @@ class Parser // NOLINT(readability/identifiers)
287
287
288
288
bool rDeclarators (cpp_declarationt::declaratorst &, bool , bool =false );
289
289
bool rDeclaratorWithInit (cpp_declaratort &, bool , bool );
290
- bool rDeclarator (cpp_declaratort &, DeclKind, bool , bool , bool = false );
290
+ bool rDeclarator (cpp_declaratort &, DeclKind, bool , bool );
291
291
bool rDeclaratorQualifier ();
292
292
bool optPtrOperator (typet &);
293
293
bool rMemberInitializers (irept &);
@@ -1297,7 +1297,7 @@ bool Parser::rTempArgDeclaration(cpp_declarationt &declaration)
1297
1297
declaration.declarators ().resize (1 );
1298
1298
cpp_declaratort &declarator=declaration.declarators ().front ();
1299
1299
1300
- if (!rDeclarator (declarator, kArgDeclarator , false , true ))
1300
+ if (!rDeclarator (declarator, kArgDeclarator , true , false ))
1301
1301
return false ;
1302
1302
1303
1303
#ifdef DEBUG
@@ -1512,7 +1512,7 @@ bool Parser::rSimpleDeclaration(cpp_declarationt &declaration)
1512
1512
declaration.type ().swap (integral);
1513
1513
1514
1514
cpp_declaratort declarator;
1515
- if (!rDeclarator (declarator, kDeclarator , false , true , true ))
1515
+ if (!rDeclarator (declarator, kDeclarator , true , true ))
1516
1516
return false ;
1517
1517
1518
1518
// there really _has_ to be an initializer!
@@ -2867,8 +2867,8 @@ bool Parser::rDeclaratorWithInit(
2867
2867
{
2868
2868
cpp_declaratort declarator;
2869
2869
2870
- if (!rDeclarator (declarator, kDeclarator , false ,
2871
- should_be_declarator, is_statement))
2870
+ if (!rDeclarator (
2871
+ declarator, kDeclarator , should_be_declarator, is_statement))
2872
2872
return false ;
2873
2873
2874
2874
int t=lex.LookAhead (0 );
@@ -2984,7 +2984,6 @@ bool Parser::rDeclaratorQualifier()
2984
2984
bool Parser::rDeclarator (
2985
2985
cpp_declaratort &declarator,
2986
2986
DeclKind kind,
2987
- bool recursive,
2988
2987
bool should_be_declarator,
2989
2988
bool is_statement)
2990
2989
{
@@ -3029,7 +3028,7 @@ bool Parser::rDeclarator(
3029
3028
lex.get_token (op);
3030
3029
3031
3030
cpp_declaratort declarator2;
3032
- if (!rDeclarator (declarator2, kind, true , true , false ))
3031
+ if (!rDeclarator (declarator2, kind, true , false ))
3033
3032
return false ;
3034
3033
3035
3034
#ifdef DEBUG
@@ -4111,7 +4110,7 @@ bool Parser::rArgDeclaration(cpp_declarationt &declaration)
4111
4110
4112
4111
cpp_declaratort arg_declarator;
4113
4112
4114
- if (!rDeclarator (arg_declarator, kArgDeclarator , false , true ))
4113
+ if (!rDeclarator (arg_declarator, kArgDeclarator , true , false ))
4115
4114
return false ;
4116
4115
4117
4116
declaration.declarators ().push_back (arg_declarator);
0 commit comments