Browse Source

Ignore a couple more unused declarations.

pull/1/head
triton 12 years ago
parent
commit
9cf717707b
  1. 13
      src/Parser/Parser.cpp

13
src/Parser/Parser.cpp

@ -1652,24 +1652,19 @@ CppSharp::Declaration^ Parser::WalkDeclaration(clang::Decl* D,
Decl = WalkVariable(VD); Decl = WalkVariable(VD);
break; break;
} }
case Decl::Empty:
{
auto ED = cast<EmptyDecl>(D);
Decl = nullptr;
break;
}
// Ignore these declarations since they must have been declared in // Ignore these declarations since they must have been declared in
// a class already. // a class already.
case Decl::CXXConstructor: case Decl::CXXConstructor:
case Decl::CXXDestructor: case Decl::CXXDestructor:
case Decl::CXXConversion: case Decl::CXXConversion:
case Decl::CXXMethod: case Decl::CXXMethod:
break;
case Decl::Empty:
case Decl::AccessSpec:
case Decl::Friend:
case Decl::Using: case Decl::Using:
case Decl::UsingShadow: case Decl::UsingShadow:
{
Decl = nullptr;
break; break;
}
default: default:
{ {
Debug("Unhandled declaration kind: %s\n", D->getDeclKindName()); Debug("Unhandled declaration kind: %s\n", D->getDeclKindName());

Loading…
Cancel
Save