From c3810b5a6793dc6ef7bda27f3decf96ec8256cab Mon Sep 17 00:00:00 2001 From: triton Date: Sun, 26 May 2013 18:32:02 +0100 Subject: [PATCH] Actually add variables to the namespace when parsing. --- src/Parser/Parser.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Parser/Parser.cpp b/src/Parser/Parser.cpp index 2d71e91c..459465e2 100644 --- a/src/Parser/Parser.cpp +++ b/src/Parser/Parser.cpp @@ -1725,6 +1725,10 @@ CppSharp::Declaration^ Parser::WalkDeclaration(clang::Decl* D, { auto VD = cast(D); Decl = WalkVariable(VD); + + auto NS = GetNamespace(VD); + Decl->Namespace = NS; + NS->Variables->Add(static_cast(Decl)); break; } // Ignore these declarations since they must have been declared in