Browse Source

Actually add variables to the namespace when parsing.

pull/1/head
triton 12 years ago
parent
commit
c3810b5a67
  1. 4
      src/Parser/Parser.cpp

4
src/Parser/Parser.cpp

@ -1725,6 +1725,10 @@ CppSharp::Declaration^ Parser::WalkDeclaration(clang::Decl* D,
{ {
auto VD = cast<VarDecl>(D); auto VD = cast<VarDecl>(D);
Decl = WalkVariable(VD); Decl = WalkVariable(VD);
auto NS = GetNamespace(VD);
Decl->Namespace = NS;
NS->Variables->Add(static_cast<CppSharp::Variable^>(Decl));
break; break;
} }
// Ignore these declarations since they must have been declared in // Ignore these declarations since they must have been declared in

Loading…
Cancel
Save