Browse Source

Minor cleanup.

pull/16/merge
triton 12 years ago
parent
commit
5b7bd8bd03
  1. 5
      src/Parser/Parser.cpp
  2. 2
      src/Parser/Parser.h

5
src/Parser/Parser.cpp

@ -333,7 +333,7 @@ std::string Parser::GetTypeName(const clang::Type* Type)
return TypeName; return TypeName;
} }
CppSharp::AST::TypeQualifiers GetTypeQualifiers(clang::QualType Type) static CppSharp::AST::TypeQualifiers GetTypeQualifiers(clang::QualType Type)
{ {
CppSharp::AST::TypeQualifiers quals; CppSharp::AST::TypeQualifiers quals;
quals.IsConst = Type.isLocalConstQualified(); quals.IsConst = Type.isLocalConstQualified();
@ -342,7 +342,8 @@ CppSharp::AST::TypeQualifiers GetTypeQualifiers(clang::QualType Type)
return quals; return quals;
} }
CppSharp::AST::QualifiedType GetQualifiedType(clang::QualType qual, CppSharp::AST::Type^ type) static CppSharp::AST::QualifiedType
GetQualifiedType(clang::QualType qual, CppSharp::AST::Type^ type)
{ {
CppSharp::AST::QualifiedType qualType; CppSharp::AST::QualifiedType qualType;
qualType.Type = type; qualType.Type = type;

2
src/Parser/Parser.h

@ -147,7 +147,7 @@ protected:
CppSharp::AST::FunctionTemplate^ Parser::WalkFunctionTemplate( CppSharp::AST::FunctionTemplate^ Parser::WalkFunctionTemplate(
clang::FunctionTemplateDecl*); clang::FunctionTemplateDecl*);
CppSharp::AST::Variable^ WalkVariable(clang::VarDecl*); CppSharp::AST::Variable^ WalkVariable(clang::VarDecl*);
CppSharp::AST::RawComment^ WalkRawComment(const clang::RawComment*); CppSharp::AST::RawComment^ WalkRawComment(const clang::RawComment*);
CppSharp::AST::Type^ WalkType(clang::QualType, clang::TypeLoc* = 0, CppSharp::AST::Type^ WalkType(clang::QualType, clang::TypeLoc* = 0,
bool DesugarType = false); bool DesugarType = false);
void WalkVTable(clang::CXXRecordDecl*, CppSharp::AST::Class^); void WalkVTable(clang::CXXRecordDecl*, CppSharp::AST::Class^);

Loading…
Cancel
Save