Browse Source

Remove the unused TypeLoc parameter from WalkDeclaration.

pull/1/head
triton 12 years ago
parent
commit
c984806f5c
  1. 8
      src/Parser/Parser.cpp
  2. 2
      src/Parser/Parser.h

8
src/Parser/Parser.cpp

@ -816,7 +816,7 @@ CppSharp::Type^ Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL,
TypedefNameDecl* TD = TT->getDecl(); TypedefNameDecl* TD = TT->getDecl();
auto TTL = TD->getTypeSourceInfo()->getTypeLoc(); auto TTL = TD->getTypeSourceInfo()->getTypeLoc();
auto TDD = safe_cast<CppSharp::TypedefDecl^>(WalkDeclaration(TD, &TTL, auto TDD = safe_cast<CppSharp::TypedefDecl^>(WalkDeclaration(TD,
/*IgnoreSystemDecls=*/false)); /*IgnoreSystemDecls=*/false));
auto Type = gcnew CppSharp::TypedefType(); auto Type = gcnew CppSharp::TypedefType();
@ -836,7 +836,7 @@ CppSharp::Type^ Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL,
RecordDecl* RD = RT->getDecl(); RecordDecl* RD = RT->getDecl();
auto TT = gcnew CppSharp::TagType(); auto TT = gcnew CppSharp::TagType();
TT->Declaration = WalkDeclaration(RD, 0, /*IgnoreSystemDecls=*/false); TT->Declaration = WalkDeclaration(RD, /*IgnoreSystemDecls=*/false);
return TT; return TT;
} }
@ -1496,11 +1496,11 @@ void Parser::HandlePreprocessedEntities(clang::Decl* D, CppSharp::Declaration^ D
CppSharp::Declaration^ Parser::WalkDeclarationDef(clang::Decl* D) CppSharp::Declaration^ Parser::WalkDeclarationDef(clang::Decl* D)
{ {
return WalkDeclaration(D, 0, /*IgnoreSystemDecls=*/true, return WalkDeclaration(D, /*IgnoreSystemDecls=*/true,
/*CanBeDefinition=*/true); /*CanBeDefinition=*/true);
} }
CppSharp::Declaration^ Parser::WalkDeclaration(clang::Decl* D, clang::TypeLoc* TL, CppSharp::Declaration^ Parser::WalkDeclaration(clang::Decl* D,
bool IgnoreSystemDecls, bool IgnoreSystemDecls,
bool CanBeDefinition) bool CanBeDefinition)
{ {

2
src/Parser/Parser.h

@ -131,7 +131,7 @@ protected:
// AST traversers // AST traversers
void WalkAST(); void WalkAST();
void WalkMacros(clang::PreprocessingRecord* PR); void WalkMacros(clang::PreprocessingRecord* PR);
CppSharp::Declaration^ WalkDeclaration(clang::Decl* D, clang::TypeLoc* = 0, CppSharp::Declaration^ WalkDeclaration(clang::Decl* D,
bool IgnoreSystemDecls = true, bool CanBeDefinition = false); bool IgnoreSystemDecls = true, bool CanBeDefinition = false);
CppSharp::Declaration^ WalkDeclarationDef(clang::Decl* D); CppSharp::Declaration^ WalkDeclarationDef(clang::Decl* D);
CppSharp::Enumeration^ WalkEnum(clang::EnumDecl*); CppSharp::Enumeration^ WalkEnum(clang::EnumDecl*);

Loading…
Cancel
Save