Browse Source

Re-generated the parser bindings.

pull/222/head
triton 12 years ago
parent
commit
a2d44162e5
  1. 85
      src/CppParser/Bindings/CLI/AST.cpp
  2. 51
      src/CppParser/Bindings/CLI/AST.h
  3. 158
      src/CppParser/Bindings/CSharp/AST.cs
  4. 158
      src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/AST.cs

85
src/CppParser/Bindings/CLI/AST.cpp

@ -3035,6 +3035,73 @@ unsigned int CppSharp::Parser::AST::ASTContext::TranslationUnitsCount::get() @@ -3035,6 +3035,73 @@ unsigned int CppSharp::Parser::AST::ASTContext::TranslationUnitsCount::get()
return __ret;
}
CppSharp::Parser::AST::Comment::Comment(::CppSharp::CppParser::AST::Comment* native)
{
NativePtr = native;
}
CppSharp::Parser::AST::Comment::Comment(System::IntPtr native)
{
auto __native = (::CppSharp::CppParser::AST::Comment*)native.ToPointer();
NativePtr = __native;
}
CppSharp::Parser::AST::Comment::Comment(CppSharp::Parser::AST::CommentKind kind)
{
auto arg0 = (::CppSharp::CppParser::AST::CommentKind)kind;
NativePtr = new ::CppSharp::CppParser::AST::Comment(arg0);
}
CppSharp::Parser::AST::Comment::Comment(CppSharp::Parser::AST::Comment^ _0)
{
auto &arg0 = *(::CppSharp::CppParser::AST::Comment*)_0->NativePtr;
NativePtr = new ::CppSharp::CppParser::AST::Comment(arg0);
}
System::IntPtr CppSharp::Parser::AST::Comment::__Instance::get()
{
return System::IntPtr(NativePtr);
}
void CppSharp::Parser::AST::Comment::__Instance::set(System::IntPtr object)
{
NativePtr = (::CppSharp::CppParser::AST::Comment*)object.ToPointer();
}
CppSharp::Parser::AST::CommentKind CppSharp::Parser::AST::Comment::Kind::get()
{
return (CppSharp::Parser::AST::CommentKind)((::CppSharp::CppParser::AST::Comment*)NativePtr)->Kind;
}
void CppSharp::Parser::AST::Comment::Kind::set(CppSharp::Parser::AST::CommentKind value)
{
((::CppSharp::CppParser::AST::Comment*)NativePtr)->Kind = (::CppSharp::CppParser::AST::CommentKind)value;
}
CppSharp::Parser::AST::FullComment::FullComment(::CppSharp::CppParser::AST::FullComment* native)
: CppSharp::Parser::AST::Comment((::CppSharp::CppParser::AST::Comment*)native)
{
}
CppSharp::Parser::AST::FullComment::FullComment(System::IntPtr native)
: CppSharp::Parser::AST::Comment(native)
{
auto __native = (::CppSharp::CppParser::AST::FullComment*)native.ToPointer();
}
CppSharp::Parser::AST::FullComment::FullComment()
: CppSharp::Parser::AST::Comment((::CppSharp::CppParser::AST::Comment*)nullptr)
{
NativePtr = new ::CppSharp::CppParser::AST::FullComment();
}
CppSharp::Parser::AST::FullComment::FullComment(CppSharp::Parser::AST::FullComment^ _0)
: CppSharp::Parser::AST::Comment((::CppSharp::CppParser::AST::Comment*)nullptr)
{
auto &arg0 = *(::CppSharp::CppParser::AST::FullComment*)_0->NativePtr;
NativePtr = new ::CppSharp::CppParser::AST::FullComment(arg0);
}
CppSharp::Parser::AST::RawComment::RawComment(::CppSharp::CppParser::AST::RawComment* native)
{
NativePtr = native;
@ -3097,13 +3164,23 @@ void CppSharp::Parser::AST::RawComment::BriefText::set(System::String^ value) @@ -3097,13 +3164,23 @@ void CppSharp::Parser::AST::RawComment::BriefText::set(System::String^ value)
((::CppSharp::CppParser::AST::RawComment*)NativePtr)->setBriefText(arg0);
}
CppSharp::Parser::AST::RawCommentKind CppSharp::Parser::AST::RawComment::Kind::get()
CppSharp::Parser::AST::RawCommentKind CppSharp::Parser::AST::RawComment::RawCommentKind::get()
{
return (CppSharp::Parser::AST::RawCommentKind)((::CppSharp::CppParser::AST::RawComment*)NativePtr)->RawCommentKind;
}
void CppSharp::Parser::AST::RawComment::RawCommentKind::set(CppSharp::Parser::AST::RawCommentKind value)
{
((::CppSharp::CppParser::AST::RawComment*)NativePtr)->RawCommentKind = (::CppSharp::CppParser::AST::RawCommentKind)value;
}
CppSharp::Parser::AST::FullComment^ CppSharp::Parser::AST::RawComment::FullComment::get()
{
return (CppSharp::Parser::AST::RawCommentKind)((::CppSharp::CppParser::AST::RawComment*)NativePtr)->Kind;
return (((::CppSharp::CppParser::AST::RawComment*)NativePtr)->FullComment == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::FullComment((::CppSharp::CppParser::AST::FullComment*)((::CppSharp::CppParser::AST::RawComment*)NativePtr)->FullComment);
}
void CppSharp::Parser::AST::RawComment::Kind::set(CppSharp::Parser::AST::RawCommentKind value)
void CppSharp::Parser::AST::RawComment::FullComment::set(CppSharp::Parser::AST::FullComment^ value)
{
((::CppSharp::CppParser::AST::RawComment*)NativePtr)->Kind = (::CppSharp::CppParser::AST::RawCommentKind)value;
((::CppSharp::CppParser::AST::RawComment*)NativePtr)->FullComment = (::CppSharp::CppParser::AST::FullComment*)value->NativePtr;
}

51
src/CppParser/Bindings/CLI/AST.h

@ -13,6 +13,7 @@ namespace CppSharp @@ -13,6 +13,7 @@ namespace CppSharp
enum struct CXXMethodKind;
enum struct CXXOperatorKind;
enum struct CallingConvention;
enum struct CommentKind;
enum struct CppAbi;
enum struct DeclarationKind;
enum struct MacroLocation;
@ -32,12 +33,14 @@ namespace CppSharp @@ -32,12 +33,14 @@ namespace CppSharp
ref class ClassTemplate;
ref class ClassTemplatePartialSpecialization;
ref class ClassTemplateSpecialization;
ref class Comment;
ref class DecayedType;
ref class Declaration;
ref class DeclarationContext;
ref class DependentNameType;
ref class Enumeration;
ref class Field;
ref class FullComment;
ref class Function;
ref class FunctionTemplate;
ref class FunctionType;
@ -251,6 +254,11 @@ namespace CppSharp @@ -251,6 +254,11 @@ namespace CppSharp
Merged = 7
};
public enum struct CommentKind
{
FullComment = 0
};
public enum struct MacroLocation
{
Unknown = 0,
@ -1878,6 +1886,41 @@ namespace CppSharp @@ -1878,6 +1886,41 @@ namespace CppSharp
void addTranslationUnits(CppSharp::Parser::AST::TranslationUnit^ s);
};
public ref class Comment : ICppInstance
{
public:
property ::CppSharp::CppParser::AST::Comment* NativePtr;
property System::IntPtr __Instance
{
virtual System::IntPtr get();
virtual void set(System::IntPtr instance);
}
Comment(::CppSharp::CppParser::AST::Comment* native);
Comment(System::IntPtr native);
Comment(CppSharp::Parser::AST::CommentKind kind);
Comment(CppSharp::Parser::AST::Comment^ _0);
property CppSharp::Parser::AST::CommentKind Kind
{
CppSharp::Parser::AST::CommentKind get();
void set(CppSharp::Parser::AST::CommentKind);
}
};
public ref class FullComment : CppSharp::Parser::AST::Comment
{
public:
FullComment(::CppSharp::CppParser::AST::FullComment* native);
FullComment(System::IntPtr native);
FullComment();
FullComment(CppSharp::Parser::AST::FullComment^ _0);
};
public ref class RawComment : ICppInstance
{
public:
@ -1907,11 +1950,17 @@ namespace CppSharp @@ -1907,11 +1950,17 @@ namespace CppSharp
void set(System::String^);
}
property CppSharp::Parser::AST::RawCommentKind Kind
property CppSharp::Parser::AST::RawCommentKind RawCommentKind
{
CppSharp::Parser::AST::RawCommentKind get();
void set(CppSharp::Parser::AST::RawCommentKind);
}
property CppSharp::Parser::AST::FullComment^ FullComment
{
CppSharp::Parser::AST::FullComment^ get();
void set(CppSharp::Parser::AST::FullComment^);
}
};
}
}

158
src/CppParser/Bindings/CSharp/AST.cs

@ -183,6 +183,11 @@ namespace CppSharp @@ -183,6 +183,11 @@ namespace CppSharp
Merged = 7
}
public enum CommentKind
{
FullComment = 0
}
public enum MacroLocation
{
Unknown = 0,
@ -7516,13 +7521,143 @@ namespace CppSharp @@ -7516,13 +7521,143 @@ namespace CppSharp
}
}
public unsafe partial class Comment : IDisposable
{
[StructLayout(LayoutKind.Explicit, Size = 4)]
public struct Internal
{
[FieldOffset(0)]
internal CppSharp.Parser.AST.CommentKind Kind;
[SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall,
EntryPoint="??0Comment@AST@CppParser@CppSharp@@QAE@W4CommentKind@123@@Z")]
internal static extern global::System.IntPtr ctor_0(global::System.IntPtr instance, CppSharp.Parser.AST.CommentKind kind);
[SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall,
EntryPoint="??0Comment@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")]
internal static extern global::System.IntPtr cctor_1(global::System.IntPtr instance, global::System.IntPtr _0);
}
public global::System.IntPtr __Instance { get; protected set; }
internal Comment(Comment.Internal* native)
: this(new global::System.IntPtr(native))
{
}
internal Comment(Comment.Internal native)
: this(&native)
{
}
public Comment(global::System.IntPtr native, bool isInternalImpl = false)
{
__Instance = native;
}
public Comment(CppSharp.Parser.AST.CommentKind kind)
{
__Instance = Marshal.AllocHGlobal(4);
var arg0 = kind;
Internal.ctor_0(__Instance, arg0);
}
public Comment(CppSharp.Parser.AST.Comment _0)
{
__Instance = Marshal.AllocHGlobal(4);
*((Comment.Internal*) __Instance) = *((Comment.Internal*) _0.__Instance);
}
public void Dispose()
{
Dispose(disposing: true);
GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing)
{
Marshal.FreeHGlobal(__Instance);
}
public CppSharp.Parser.AST.CommentKind Kind
{
get
{
var __ptr = (Internal*)__Instance.ToPointer();
return __ptr->Kind;
}
set
{
var __ptr = (Internal*)__Instance.ToPointer();
__ptr->Kind = value;
}
}
}
public unsafe partial class FullComment : CppSharp.Parser.AST.Comment, IDisposable
{
[StructLayout(LayoutKind.Explicit, Size = 4)]
public new struct Internal
{
[FieldOffset(0)]
internal CppSharp.Parser.AST.CommentKind Kind;
[SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall,
EntryPoint="??0FullComment@AST@CppParser@CppSharp@@QAE@XZ")]
internal static extern global::System.IntPtr ctor_0(global::System.IntPtr instance);
[SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall,
EntryPoint="??0FullComment@AST@CppParser@CppSharp@@QAE@ABU0123@@Z")]
internal static extern global::System.IntPtr cctor_1(global::System.IntPtr instance, global::System.IntPtr _0);
}
internal FullComment(FullComment.Internal* native)
: this(new global::System.IntPtr(native))
{
}
internal FullComment(FullComment.Internal native)
: this(&native)
{
}
public FullComment(global::System.IntPtr native, bool isInternalImpl = false)
: base(native)
{
}
public FullComment()
: this(IntPtr.Zero)
{
__Instance = Marshal.AllocHGlobal(4);
Internal.ctor_0(__Instance);
}
public FullComment(CppSharp.Parser.AST.FullComment _0)
: this(IntPtr.Zero)
{
__Instance = Marshal.AllocHGlobal(4);
*((FullComment.Internal*) __Instance) = *((FullComment.Internal*) _0.__Instance);
}
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
}
public unsafe partial class RawComment : IDisposable
{
[StructLayout(LayoutKind.Explicit, Size = 56)]
public struct Internal
{
[FieldOffset(0)]
internal CppSharp.Parser.AST.RawCommentKind Kind;
internal CppSharp.Parser.AST.RawCommentKind RawCommentKind;
[FieldOffset(4)]
internal Std.String Text;
@ -7645,18 +7780,33 @@ namespace CppSharp @@ -7645,18 +7780,33 @@ namespace CppSharp
}
}
public CppSharp.Parser.AST.RawCommentKind Kind
public CppSharp.Parser.AST.RawCommentKind RawCommentKind
{
get
{
var __ptr = (Internal*)__Instance.ToPointer();
return __ptr->Kind;
return __ptr->RawCommentKind;
}
set
{
var __ptr = (Internal*)__Instance.ToPointer();
__ptr->Kind = value;
__ptr->RawCommentKind = value;
}
}
public CppSharp.Parser.AST.FullComment FullComment
{
get
{
var __ptr = (Internal*)__Instance.ToPointer();
return (__ptr->FullComment == IntPtr.Zero) ? null : new CppSharp.Parser.AST.FullComment(__ptr->FullComment);
}
set
{
var __ptr = (Internal*)__Instance.ToPointer();
__ptr->FullComment = value == (CppSharp.Parser.AST.FullComment) null ? global::System.IntPtr.Zero : value.__Instance;
}
}
}

158
src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/AST.cs

@ -183,6 +183,11 @@ namespace CppSharp @@ -183,6 +183,11 @@ namespace CppSharp
Merged = 7
}
public enum CommentKind
{
FullComment = 0
}
public enum MacroLocation
{
Unknown = 0,
@ -7516,13 +7521,143 @@ namespace CppSharp @@ -7516,13 +7521,143 @@ namespace CppSharp
}
}
public unsafe partial class Comment : IDisposable
{
[StructLayout(LayoutKind.Explicit, Size = 4)]
public struct Internal
{
[FieldOffset(0)]
internal CppSharp.Parser.AST.CommentKind Kind;
[SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST7CommentC2ENS1_11CommentKindE")]
internal static extern void ctor_0(global::System.IntPtr instance, CppSharp.Parser.AST.CommentKind kind);
[SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST7CommentC2ERKS2_")]
internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0);
}
public global::System.IntPtr __Instance { get; protected set; }
internal Comment(Comment.Internal* native)
: this(new global::System.IntPtr(native))
{
}
internal Comment(Comment.Internal native)
: this(&native)
{
}
public Comment(global::System.IntPtr native, bool isInternalImpl = false)
{
__Instance = native;
}
public Comment(CppSharp.Parser.AST.CommentKind kind)
{
__Instance = Marshal.AllocHGlobal(4);
var arg0 = kind;
Internal.ctor_0(__Instance, arg0);
}
public Comment(CppSharp.Parser.AST.Comment _0)
{
__Instance = Marshal.AllocHGlobal(4);
*((Comment.Internal*) __Instance) = *((Comment.Internal*) _0.__Instance);
}
public void Dispose()
{
Dispose(disposing: true);
GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing)
{
Marshal.FreeHGlobal(__Instance);
}
public CppSharp.Parser.AST.CommentKind Kind
{
get
{
var __ptr = (Internal*)__Instance.ToPointer();
return __ptr->Kind;
}
set
{
var __ptr = (Internal*)__Instance.ToPointer();
__ptr->Kind = value;
}
}
}
public unsafe partial class FullComment : CppSharp.Parser.AST.Comment, IDisposable
{
[StructLayout(LayoutKind.Explicit, Size = 4)]
public new struct Internal
{
[FieldOffset(0)]
internal CppSharp.Parser.AST.CommentKind Kind;
[SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST11FullCommentC2Ev")]
internal static extern void ctor_0(global::System.IntPtr instance);
[SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST11FullCommentC2ERKS2_")]
internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0);
}
internal FullComment(FullComment.Internal* native)
: this(new global::System.IntPtr(native))
{
}
internal FullComment(FullComment.Internal native)
: this(&native)
{
}
public FullComment(global::System.IntPtr native, bool isInternalImpl = false)
: base(native)
{
}
public FullComment()
: this(IntPtr.Zero)
{
__Instance = Marshal.AllocHGlobal(4);
Internal.ctor_0(__Instance);
}
public FullComment(CppSharp.Parser.AST.FullComment _0)
: this(IntPtr.Zero)
{
__Instance = Marshal.AllocHGlobal(4);
*((FullComment.Internal*) __Instance) = *((FullComment.Internal*) _0.__Instance);
}
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
}
public unsafe partial class RawComment : IDisposable
{
[StructLayout(LayoutKind.Explicit, Size = 32)]
public struct Internal
{
[FieldOffset(0)]
internal CppSharp.Parser.AST.RawCommentKind Kind;
internal CppSharp.Parser.AST.RawCommentKind RawCommentKind;
[FieldOffset(4)]
internal Std.String Text;
@ -7645,18 +7780,33 @@ namespace CppSharp @@ -7645,18 +7780,33 @@ namespace CppSharp
}
}
public CppSharp.Parser.AST.RawCommentKind Kind
public CppSharp.Parser.AST.RawCommentKind RawCommentKind
{
get
{
var __ptr = (Internal*)__Instance.ToPointer();
return __ptr->Kind;
return __ptr->RawCommentKind;
}
set
{
var __ptr = (Internal*)__Instance.ToPointer();
__ptr->Kind = value;
__ptr->RawCommentKind = value;
}
}
public CppSharp.Parser.AST.FullComment FullComment
{
get
{
var __ptr = (Internal*)__Instance.ToPointer();
return (__ptr->FullComment == IntPtr.Zero) ? null : new CppSharp.Parser.AST.FullComment(__ptr->FullComment);
}
set
{
var __ptr = (Internal*)__Instance.ToPointer();
__ptr->FullComment = value == (CppSharp.Parser.AST.FullComment) null ? global::System.IntPtr.Zero : value.__Instance;
}
}
}

Loading…
Cancel
Save