Skip to content

Commit

Permalink
issue #7236: C++: bug when using function as parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
doxygen committed Aug 29, 2019
1 parent e901c9b commit 6a04051
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/defargs.l
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,21 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
}
<CopyArgSharp>">" {
*g_copyArgValue += *yytext;
// don't count > inside )
if (g_argSharpCount>0 && g_argRoundCount==0) g_argSharpCount--;
else BEGIN( g_readArgContext );
if (g_argRoundCount>0 && g_argSharpCount==0)
{
// don't count > inside )
}
else
{
if (g_argSharpCount>0)
{
g_argSharpCount--;
}
else
{
BEGIN( g_readArgContext );
}
}
}
<CopyArgSharp>"(" {
g_argRoundCount++;
Expand Down

0 comments on commit 6a04051

Please sign in to comment.