Skip to content

Commit

Permalink
issue #8011: No callgraph if having more than one 'using namespace's.
Browse files Browse the repository at this point in the history
  • Loading branch information
whatacold committed Feb 9, 2021
1 parent 46ffd77 commit 7509b11
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/code.l
Original file line number Diff line number Diff line change
Expand Up @@ -896,11 +896,9 @@ NUMBER {INTEGER_NUMBER}|{FLOAT_NUMBER}
endFontClass(yyscanner);
BEGIN(UsingName);
}
<UsingName>{ID}("::"{ID})* { addUsingDirective(yyscanner,yytext);
<UsingName>{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);
}
<UsingName>\n { codifyLines(yyscanner,yytext); BEGIN(Body); }
Expand Down

0 comments on commit 7509b11

Please sign in to comment.