From 436fc7ed1158d517dd6f6d25aa3e05568f8c3d94 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sun, 2 Apr 2017 14:14:56 +0200 Subject: [PATCH] Function declaration following a function definition incorrectly listed as calling dependencing --- src/code.l | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/code.l b/src/code.l index 783cf7e496c..b2564e9408b 100644 --- a/src/code.l +++ b/src/code.l @@ -1943,7 +1943,6 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\" g_code->codify(yytext); if (*yytext=='{') { - g_curlyCount++; if (g_searchingForBody) { g_searchingForBody=FALSE; @@ -2066,11 +2065,6 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\" "//" { g_code->codify(yytext); } -"}" { - g_theVarContext.popScope(); - g_yyColNr++; - g_code->codify(yytext); - } "{" { g_theVarContext.pushScope(); @@ -2083,7 +2077,6 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\" g_insideBody=TRUE; } g_code->codify(yytext); - g_curlyCount++; if (g_insideBody) { g_bodyCurlyCount++; @@ -2092,7 +2085,7 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\" g_name.resize(0); BEGIN( Body ); } -"}" { +"}" { g_theVarContext.popScope(); g_type.resize(0); g_name.resize(0); @@ -2265,7 +2258,6 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\" {B}*"{"{B}* { g_theVarContext.pushScope(); g_code->codify(yytext); - g_curlyCount++; if (YY_START==ClassVar && g_curClassName.isEmpty()) { g_curClassName = g_name.copy(); @@ -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 ); } @@ -3211,7 +3202,6 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\" } "{" { g_code->codify(yytext); - g_curlyCount++; if (g_searchingForBody) { g_searchingForBody=FALSE;