Browse Source

Since we now process records fully, we also get some undesired declarations that are created automatically by Clang. Long story short, in this case we do not want to process injected class names inside the record since that will lead us to process records twice and insert them in different namespaces.

pull/1/head
triton 12 years ago
parent
commit
7377565118
  1. 2
      src/Parser/Parser.cpp

2
src/Parser/Parser.cpp

@ -323,6 +323,8 @@ CppSharp::Class^ Parser::WalkRecordCXX(clang::CXXRecordDecl* Record)
using namespace clang; using namespace clang;
using namespace clix; using namespace clix;
if (Record->isInjectedClassName())
return nullptr;
auto NS = GetNamespace(Record); auto NS = GetNamespace(Record);
assert(NS && "Expected a valid namespace"); assert(NS && "Expected a valid namespace");

Loading…
Cancel
Save