Skip to content

Commit

Permalink
Function declaration following a function definition incorrectly list…
Browse files Browse the repository at this point in the history
…ed as calling dependencing
  • Loading branch information
Dimitri van Heesch committed Apr 2, 2017
1 parent 127a43d commit 436fc7e
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/code.l
Expand Up @@ -1943,7 +1943,6 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
g_code->codify(yytext);
if (*yytext=='{')
{
g_curlyCount++;
if (g_searchingForBody)
{
g_searchingForBody=FALSE;
Expand Down Expand Up @@ -2066,11 +2065,6 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
<SkipCPP>"//" {
g_code->codify(yytext);
}
<Body,FuncCall>"}" {
g_theVarContext.popScope();
g_yyColNr++;
g_code->codify(yytext);
}
<Body,FuncCall>"{" {
g_theVarContext.pushScope();

Expand All @@ -2083,7 +2077,6 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
g_insideBody=TRUE;
}
g_code->codify(yytext);
g_curlyCount++;
if (g_insideBody)
{
g_bodyCurlyCount++;
Expand All @@ -2092,7 +2085,7 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
g_name.resize(0);
BEGIN( Body );
}
<Body,MemberCall,MemberCall2>"}" {
<Body,FuncCall,MemberCall,MemberCall2>"}" {
g_theVarContext.popScope();
g_type.resize(0);
g_name.resize(0);
Expand Down Expand Up @@ -2265,7 +2258,6 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
<Bases,ClassName,ClassVar,CppCliTypeModifierFollowup>{B}*"{"{B}* {
g_theVarContext.pushScope();
g_code->codify(yytext);
g_curlyCount++;
if (YY_START==ClassVar && g_curClassName.isEmpty())
{
g_curClassName = g_name.copy();
Expand Down Expand Up @@ -3156,7 +3148,6 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
g_insideBody=TRUE;
}
if (g_insideBody) g_bodyCurlyCount++;
g_curlyCount++;
g_type.resize(0); g_name.resize(0);
BEGIN( Body );
}
Expand Down Expand Up @@ -3211,7 +3202,6 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
}
<SkipInits>"{" {
g_code->codify(yytext);
g_curlyCount++;
if (g_searchingForBody)
{
g_searchingForBody=FALSE;
Expand Down

0 comments on commit 436fc7e

Please sign in to comment.