Browse Source

Parser now adds namespace function parameters.

pull/13/head
marcos henrich 13 years ago
parent
commit
253946c622
  1. 3
      src/Parser/Parser.cpp

3
src/Parser/Parser.cpp

@ -1346,9 +1346,10 @@ void Parser::WalkFunction(clang::FunctionDecl* FD, CppSharp::AST::Function^ F, @@ -1346,9 +1346,10 @@ void Parser::WalkFunction(clang::FunctionDecl* FD, CppSharp::AST::Function^ F,
TypeLoc PTL;
if (auto TSI = VD->getTypeSourceInfo())
PTL = VD->getTypeSourceInfo()->getTypeLoc();
P->QualifiedType = GetQualifiedType(VD->getType(), WalkType(VD->getType(), &PTL));
P->HasDefaultValue = VD->hasDefaultArg();
P->Namespace = NS;
F->Parameters->Add(P);
}

Loading…
Cancel
Save