From 1afaad6847af7b762adeaaef20b7e32688c012ad Mon Sep 17 00:00:00 2001 From: triton Date: Fri, 31 Jan 2014 14:27:28 +0000 Subject: [PATCH] Added missing definitions for the AST structures in the C++ parser. --- src/CppParser/AST.cpp | 7 +++++++ src/CppParser/AST.h | 1 + 2 files changed, 8 insertions(+) diff --git a/src/CppParser/AST.cpp b/src/CppParser/AST.cpp index 89a2abe5..55e4b6b9 100644 --- a/src/CppParser/AST.cpp +++ b/src/CppParser/AST.cpp @@ -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) DEF_STRING(NativeLibrary, FileName) DEF_VECTOR_STRING(NativeLibrary, Symbols) +// ASTContext +DEF_VECTOR(ASTContext, TranslationUnit*, TranslationUnits) + ClassTemplateSpecialization* ClassTemplate::FindSpecialization(void* ptr) { return 0; diff --git a/src/CppParser/AST.h b/src/CppParser/AST.h index 3e9ca72e..4e040218 100644 --- a/src/CppParser/AST.h +++ b/src/CppParser/AST.h @@ -287,6 +287,7 @@ struct CS_API VTableComponent struct CS_API VTableLayout { + VTableLayout(); VECTOR(VTableComponent, Components) };