Browse Source

Ignore using declarations and pack expansion types.

pull/1/head
triton 12 years ago
parent
commit
6cbd727c13
  1. 7
      src/Parser/Parser.cpp

7
src/Parser/Parser.cpp

@ -1070,6 +1070,11 @@ CppSharp::Type^ Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, @@ -1070,6 +1070,11 @@ CppSharp::Type^ Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL,
// Ignored.
return nullptr;
}
case Type::PackExpansion:
{
// Ignored.
return nullptr;
}
default:
{
Debug("Unhandled type class '%s'\n", Type->getTypeClassName());
@ -1727,6 +1732,8 @@ CppSharp::Declaration^ Parser::WalkDeclaration(clang::Decl* D, clang::TypeLoc* T @@ -1727,6 +1732,8 @@ CppSharp::Declaration^ Parser::WalkDeclaration(clang::Decl* D, clang::TypeLoc* T
case Decl::CXXDestructor:
case Decl::CXXConversion:
case Decl::CXXMethod:
case Decl::Using:
case Decl::UsingShadow:
{
Decl = nullptr;
break;

Loading…
Cancel
Save