@@ -283,7 +283,7 @@ class Parser // NOLINT(readability/identifiers)
283
283
284
284
bool rDeclarators (cpp_declarationt::declaratorst &, bool , bool =false );
285
285
bool rDeclaratorWithInit (cpp_declaratort &, bool , bool );
286
- bool rDeclarator (cpp_declaratort &, DeclKind, bool , bool , bool = false );
286
+ bool rDeclarator (cpp_declaratort &, DeclKind, bool , bool );
287
287
bool rDeclaratorQualifier ();
288
288
bool optPtrOperator (typet &);
289
289
bool rMemberInitializers (irept &);
@@ -1293,7 +1293,7 @@ bool Parser::rTempArgDeclaration(cpp_declarationt &declaration)
1293
1293
declaration.declarators ().resize (1 );
1294
1294
cpp_declaratort &declarator=declaration.declarators ().front ();
1295
1295
1296
- if (!rDeclarator (declarator, kArgDeclarator , false , true ))
1296
+ if (!rDeclarator (declarator, kArgDeclarator , true , false ))
1297
1297
return false ;
1298
1298
1299
1299
#ifdef DEBUG
@@ -1507,7 +1507,7 @@ bool Parser::rSimpleDeclaration(cpp_declarationt &declaration)
1507
1507
declaration.type ().swap (integral);
1508
1508
1509
1509
cpp_declaratort declarator;
1510
- if (!rDeclarator (declarator, kDeclarator , false , true , true ))
1510
+ if (!rDeclarator (declarator, kDeclarator , true , true ))
1511
1511
return false ;
1512
1512
1513
1513
// there really _has_ to be an initializer!
@@ -2876,8 +2876,8 @@ bool Parser::rDeclaratorWithInit(
2876
2876
{
2877
2877
cpp_declaratort declarator;
2878
2878
2879
- if (!rDeclarator (declarator, kDeclarator , false ,
2880
- should_be_declarator, is_statement))
2879
+ if (!rDeclarator (
2880
+ declarator, kDeclarator , should_be_declarator, is_statement))
2881
2881
return false ;
2882
2882
2883
2883
int t=lex.LookAhead (0 );
@@ -2993,7 +2993,6 @@ bool Parser::rDeclaratorQualifier()
2993
2993
bool Parser::rDeclarator (
2994
2994
cpp_declaratort &declarator,
2995
2995
DeclKind kind,
2996
- bool recursive,
2997
2996
bool should_be_declarator,
2998
2997
bool is_statement)
2999
2998
{
@@ -3038,7 +3037,7 @@ bool Parser::rDeclarator(
3038
3037
lex.get_token (op);
3039
3038
3040
3039
cpp_declaratort declarator2;
3041
- if (!rDeclarator (declarator2, kind, true , true , false ))
3040
+ if (!rDeclarator (declarator2, kind, true , false ))
3042
3041
return false ;
3043
3042
3044
3043
#ifdef DEBUG
@@ -4122,7 +4121,7 @@ bool Parser::rArgDeclaration(cpp_declarationt &declaration)
4122
4121
4123
4122
cpp_declaratort arg_declarator;
4124
4123
4125
- if (!rDeclarator (arg_declarator, kArgDeclarator , false , true ))
4124
+ if (!rDeclarator (arg_declarator, kArgDeclarator , true , false ))
4126
4125
return false ;
4127
4126
4128
4127
declaration.declarators ().push_back (arg_declarator);
0 commit comments