Skip to content

Commit

Permalink
Hide __local declarations in -vcg-ast output.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgehr committed Sep 10, 2017
1 parent 4317772 commit 448ce8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ddmd/hdrgen.d
Original file line number Diff line number Diff line change
Expand Up @@ -1792,6 +1792,8 @@ public:

override void visit(AliasDeclaration d)
{
if (d.storage_class & STClocal)
return;
buf.writestring("alias ");
if (d.aliassym)
{
Expand Down Expand Up @@ -1823,6 +1825,8 @@ public:

override void visit(VarDeclaration d)
{
if (d.storage_class & STClocal)
return;
visitVarDecl(d, false);
buf.writeByte(';');
buf.writenl();
Expand Down

0 comments on commit 448ce8d

Please sign in to comment.