Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Commit

Permalink
Actually add variables to the namespace when parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
tritao committed May 26, 2013
1 parent d27ec5a commit c3810b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Parser/Parser.cpp
Expand Up @@ -1725,6 +1725,10 @@ CppSharp::Declaration^ Parser::WalkDeclaration(clang::Decl* D,
{
auto VD = cast<VarDecl>(D);
Decl = WalkVariable(VD);

auto NS = GetNamespace(VD);
Decl->Namespace = NS;
NS->Variables->Add(static_cast<CppSharp::Variable^>(Decl));
break;
}
// Ignore these declarations since they must have been declared in
Expand Down

0 comments on commit c3810b5

Please sign in to comment.