Skip to content

Commit

Permalink
bug_365053 Wrong reference to ::classname (in typedef)
Browse files Browse the repository at this point in the history
This fixes the second problem:
```
class Foo
{
   typedef ::Bar MyBar;
}
```
mentioned in the issue.
Besides the already supported words also the word `typedef` should be supported.
  • Loading branch information
albert-github committed Dec 15, 2021
1 parent 644607d commit 872421a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/scanner.l
Expand Up @@ -2346,6 +2346,18 @@ NONLopt [^\n]*
}
yyextra->current->name=yyextra->current->name.mid(9);
}
else if (yyextra->current->name.left(8)=="typedef ")
{
if (yyextra->current->type.isEmpty())
{
yyextra->current->type="typedef";
}
else
{
yyextra->current->type+="typedef ";
}
yyextra->current->name=yyextra->current->name.mid(8);
}
}
QCString tmp=yytext;
if (nameIsOperator(tmp))
Expand Down

0 comments on commit 872421a

Please sign in to comment.