Browse Source

Fixed dependent information parsing for declaration contexts.

pull/123/head
triton 12 years ago
parent
commit
efc95d35aa
  1. 3
      src/CppParser/Parser.cpp
  2. 3
      src/Parser/Parser.cpp

3
src/CppParser/Parser.cpp

@ -1917,6 +1917,9 @@ void Parser::HandleDeclaration(clang::Decl* D, Declaration* Decl) @@ -1917,6 +1917,9 @@ void Parser::HandleDeclaration(clang::Decl* D, Declaration* Decl)
if (const clang::ValueDecl *VD = clang::dyn_cast_or_null<clang::ValueDecl>(D))
Decl->IsDependent = VD->getType()->isDependentType();
if (const clang::DeclContext *DC = clang::dyn_cast_or_null<clang::DeclContext>(D))
Decl->IsDependent |= DC->isDependentContext();
Decl->Access = ConvertToAccess(D->getAccess());
}

3
src/Parser/Parser.cpp

@ -2053,6 +2053,9 @@ void Parser::HandleDeclaration(clang::Decl* D, CppSharp::AST::Declaration^ Decl) @@ -2053,6 +2053,9 @@ void Parser::HandleDeclaration(clang::Decl* D, CppSharp::AST::Declaration^ Decl)
if (const clang::ValueDecl *VD = clang::dyn_cast_or_null<clang::ValueDecl>(D))
Decl->IsDependent = VD->getType()->isDependentType();
if (const clang::DeclContext *DC = clang::dyn_cast_or_null<clang::DeclContext>(D))
Decl->IsDependent |= DC->isDependentContext();
Decl->Access = ConvertToAccess(D->getAccess());
}

Loading…
Cancel
Save