From 7509b118fd110f3224b0c24e49752256836410ce Mon Sep 17 00:00:00 2001 From: Guangwang Huang Date: Tue, 9 Feb 2021 23:19:18 +0800 Subject: issue #8011: No callgraph if having more than one 'using namespace's. --- src/code.l | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/code.l b/src/code.l index 233a4f0..6134ab2 100644 --- a/src/code.l +++ b/src/code.l @@ -896,11 +896,9 @@ NUMBER {INTEGER_NUMBER}|{FLOAT_NUMBER} endFontClass(yyscanner); BEGIN(UsingName); } -{ID}("::"{ID})* { addUsingDirective(yyscanner,yytext); +{ID}("::"{ID})* { + addUsingDirective(yyscanner,yytext); generateClassOrGlobalLink(yyscanner,*yyextra->code,yytext); - DBG_CTX((stderr,"** scope stack push CLASSBLOCK\n")); - yyextra->scopeStack.push(CLASSBLOCK); - pushScope(yyscanner,yytext); BEGIN(Body); } \n { codifyLines(yyscanner,yytext); BEGIN(Body); } -- cgit v0.12