Browse Source

Added missing definitions for the AST structures in the C++ parser.

pull/155/merge
triton 12 years ago
parent
commit
1afaad6847
  1. 7
      src/CppParser/AST.cpp
  2. 1
      src/CppParser/AST.h

7
src/CppParser/AST.cpp

@ -78,6 +78,10 @@ RawComment::RawComment() : FullComment(0) {} @@ -78,6 +78,10 @@ RawComment::RawComment() : FullComment(0) {}
VTableComponent::VTableComponent() : Offset(0), Declaration(0) {}
// VTableLayout
VTableLayout::VTableLayout() {}
DEF_VECTOR(VTableLayout, VTableComponent, Components)
ClassLayout::ClassLayout() : ABI(CppAbi::Itanium) {}
DEF_VECTOR(ClassLayout, VFTableInfo, VFTables)
@ -415,6 +419,9 @@ DEF_VECTOR(TranslationUnit, MacroDefinition*, Macros) @@ -415,6 +419,9 @@ DEF_VECTOR(TranslationUnit, MacroDefinition*, Macros)
DEF_STRING(NativeLibrary, FileName)
DEF_VECTOR_STRING(NativeLibrary, Symbols)
// ASTContext
DEF_VECTOR(ASTContext, TranslationUnit*, TranslationUnits)
ClassTemplateSpecialization* ClassTemplate::FindSpecialization(void* ptr)
{
return 0;

1
src/CppParser/AST.h

@ -287,6 +287,7 @@ struct CS_API VTableComponent @@ -287,6 +287,7 @@ struct CS_API VTableComponent
struct CS_API VTableLayout
{
VTableLayout();
VECTOR(VTableComponent, Components)
};

Loading…
Cancel
Save