Browse Source

Use fully qualified names in AST headers.

pull/86/head
triton 12 years ago
parent
commit
4e1d34b98b
  1. 36
      src/CppParser/AST.h
  2. 4
      src/CppParser/CppParser.h

36
src/CppParser/AST.h

@ -38,7 +38,7 @@ struct CS_API TypeQualifiers
struct CS_API QualifiedType struct CS_API QualifiedType
{ {
Type* Type; CppSharp::CppParser::Type* Type;
TypeQualifiers Qualifiers; TypeQualifiers Qualifiers;
}; };
@ -46,7 +46,7 @@ struct Declaration;
struct CS_API TagType : public Type struct CS_API TagType : public Type
{ {
Declaration* Declaration; CppSharp::CppParser::Declaration* Declaration;
}; };
struct CS_API ArrayType : public Type struct CS_API ArrayType : public Type
@ -59,7 +59,7 @@ struct CS_API ArrayType : public Type
Incomplete Incomplete
}; };
QualifiedType QualifiedType; CppSharp::CppParser::QualifiedType QualifiedType;
ArraySize SizeType; ArraySize SizeType;
long Size; long Size;
}; };
@ -80,7 +80,7 @@ struct CS_API FunctionType : public Type
{ {
QualifiedType ReturnType; QualifiedType ReturnType;
std::vector<Parameter*> Parameters; std::vector<Parameter*> Parameters;
CallingConvention CallingConvention; CppSharp::CppParser::CallingConvention CallingConvention;
}; };
struct CS_API PointerType : public Type struct CS_API PointerType : public Type
@ -132,7 +132,7 @@ struct CS_API TemplateArgument
ArgumentKind Kind; ArgumentKind Kind;
QualifiedType Type; QualifiedType Type;
Declaration* Declaration; CppSharp::CppParser::Declaration* Declaration;
long Integral; long Integral;
}; };
@ -141,7 +141,7 @@ struct Template;
struct CS_API TemplateSpecializationType : public Type struct CS_API TemplateSpecializationType : public Type
{ {
std::vector<TemplateArgument> Arguments; std::vector<TemplateArgument> Arguments;
Template* Template; CppSharp::CppParser::Template* Template;
Type* Desugared; Type* Desugared;
}; };
@ -165,7 +165,7 @@ struct Class;
struct CS_API InjectedClassNameType : public Type struct CS_API InjectedClassNameType : public Type
{ {
TemplateSpecializationType TemplateSpecialization; TemplateSpecializationType TemplateSpecialization;
Class* Class; CppSharp::CppParser::Class* Class;
}; };
struct CS_API DependentNameType : public Type struct CS_API DependentNameType : public Type
@ -220,7 +220,7 @@ struct CS_API RawComment
RawCommentKind Kind; RawCommentKind Kind;
std::string Text; std::string Text;
std::string BriefText; std::string BriefText;
FullComment* FullComment; CppSharp::CppParser::FullComment* FullComment;
}; };
// Class layouts // Class layouts
@ -241,7 +241,7 @@ struct CS_API VTableComponent
{ {
VTableComponentKind Kind; VTableComponentKind Kind;
unsigned Offset; unsigned Offset;
Declaration* Declaration; CppSharp::CppParser::Declaration* Declaration;
}; };
struct CS_API VTableLayout struct CS_API VTableLayout
@ -352,14 +352,14 @@ struct CS_API DeclarationContext : public Declaration
struct CS_API TypedefDecl : public Declaration struct CS_API TypedefDecl : public Declaration
{ {
QualifiedType QualifiedType; CppSharp::CppParser::QualifiedType QualifiedType;
}; };
struct CS_API Parameter : public Declaration struct CS_API Parameter : public Declaration
{ {
Parameter() : IsIndirect(false) {} Parameter() : IsIndirect(false) {}
QualifiedType QualifiedType; CppSharp::CppParser::QualifiedType QualifiedType;
bool IsIndirect; bool IsIndirect;
bool HasDefaultValue; bool HasDefaultValue;
}; };
@ -436,7 +436,7 @@ struct CS_API Function : public Declaration
CXXOperatorKind OperatorKind; CXXOperatorKind OperatorKind;
std::string Mangled; std::string Mangled;
std::string Signature; std::string Signature;
CallingConvention CallingConvention; CppSharp::CppParser::CallingConvention CallingConvention;
std::vector<Parameter*> Parameters; std::vector<Parameter*> Parameters;
}; };
@ -477,32 +477,32 @@ struct CS_API Enumeration : public Declaration
}; };
EnumModifiers Modifiers; EnumModifiers Modifiers;
Type* Type; CppSharp::CppParser::Type* Type;
BuiltinType* BuiltinType; CppSharp::CppParser::BuiltinType* BuiltinType;
std::vector<Item> Items; std::vector<Item> Items;
}; };
struct CS_API Variable : public Declaration struct CS_API Variable : public Declaration
{ {
std::string Mangled; std::string Mangled;
QualifiedType QualifiedType; CppSharp::CppParser::QualifiedType QualifiedType;
}; };
struct CS_API BaseClassSpecifier struct CS_API BaseClassSpecifier
{ {
AccessSpecifier Access; AccessSpecifier Access;
bool IsVirtual; bool IsVirtual;
Type* Type; CppSharp::CppParser::Type* Type;
}; };
struct Class; struct Class;
struct CS_API Field : public Declaration struct CS_API Field : public Declaration
{ {
QualifiedType QualifiedType; CppSharp::CppParser::QualifiedType QualifiedType;
AccessSpecifier Access; AccessSpecifier Access;
unsigned Offset; unsigned Offset;
Class* Class; CppSharp::CppParser::Class* Class;
}; };

4
src/CppParser/CppParser.h

@ -29,7 +29,7 @@ struct CS_API ParserOptions
// C/C++ header file name. // C/C++ header file name.
std::string FileName; std::string FileName;
Library* Library; CppSharp::CppParser::Library* Library;
int ToolSetToUse; int ToolSetToUse;
std::string TargetTriple; std::string TargetTriple;
@ -70,7 +70,7 @@ enum struct ParserResultKind
struct CS_API ParserResult struct CS_API ParserResult
{ {
ParserResultKind Kind; ParserResultKind Kind;
Library* Library; CppSharp::CppParser::Library* Library;
std::vector<ParserDiagnostic> Diagnostics; std::vector<ParserDiagnostic> Diagnostics;
}; };

Loading…
Cancel
Save