Browse Source

Fixed another C++ memory leak in the parser.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/592/merge
Dimitar Dobrev 10 years ago
parent
commit
ffa8d93948
  1. 2
      src/Core/Parser/ASTConverter.cs
  2. 24
      src/CppParser/AST.cpp
  3. 4
      src/CppParser/AST.h
  4. 24
      src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/AST.cs
  5. 24
      src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/AST.cs
  6. 24
      src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/AST.cs
  7. 18
      src/CppParser/Bindings/CSharp/x86_64-linux-gnu/AST.cs

2
src/Core/Parser/ASTConverter.cs

@ -734,6 +734,8 @@ namespace CppSharp
_rawComment.FullComment = commentConverter.Visit(rawComment.FullCommentBlock) _rawComment.FullComment = commentConverter.Visit(rawComment.FullCommentBlock)
as AST.FullComment; as AST.FullComment;
NativeObjects.Add(rawComment);
return _rawComment; return _rawComment;
} }

24
src/CppParser/AST.cpp

@ -744,8 +744,20 @@ DEF_STRING(RawComment, BriefText)
RawComment::RawComment() : FullCommentBlock(0) {} RawComment::RawComment() : FullCommentBlock(0) {}
RawComment::~RawComment()
{
if (FullCommentBlock)
delete FullCommentBlock;
}
FullComment::FullComment() : Comment(CommentKind::FullComment) {} FullComment::FullComment() : Comment(CommentKind::FullComment) {}
FullComment::~FullComment()
{
for (auto& block : Blocks)
delete block;
}
DEF_VECTOR(FullComment, BlockContentComment*, Blocks) DEF_VECTOR(FullComment, BlockContentComment*, Blocks)
BlockContentComment::BlockContentComment() : Comment(CommentKind::BlockContentComment) {} BlockContentComment::BlockContentComment() : Comment(CommentKind::BlockContentComment) {}
@ -770,6 +782,12 @@ DEF_VECTOR(TParamCommandComment, unsigned, Position)
VerbatimBlockComment::VerbatimBlockComment() : BlockCommandComment(CommentKind::VerbatimBlockComment) {} VerbatimBlockComment::VerbatimBlockComment() : BlockCommandComment(CommentKind::VerbatimBlockComment) {}
VerbatimBlockComment::~VerbatimBlockComment()
{
for (auto& line : Lines)
delete line;
}
DEF_VECTOR(VerbatimBlockComment, VerbatimBlockLineComment*, Lines) DEF_VECTOR(VerbatimBlockComment, VerbatimBlockLineComment*, Lines)
VerbatimLineComment::VerbatimLineComment() : BlockCommandComment(CommentKind::VerbatimLineComment) {} VerbatimLineComment::VerbatimLineComment() : BlockCommandComment(CommentKind::VerbatimLineComment) {}
@ -778,6 +796,12 @@ DEF_STRING(VerbatimLineComment, Text)
ParagraphComment::ParagraphComment() : BlockContentComment(CommentKind::ParagraphComment), IsWhitespace(false) {} ParagraphComment::ParagraphComment() : BlockContentComment(CommentKind::ParagraphComment), IsWhitespace(false) {}
ParagraphComment::~ParagraphComment()
{
for (auto& content : Content)
delete content;
}
DEF_VECTOR(ParagraphComment, InlineContentComment*, Content) DEF_VECTOR(ParagraphComment, InlineContentComment*, Content)
HTMLTagComment::HTMLTagComment() : InlineContentComment(CommentKind::HTMLTagComment) {} HTMLTagComment::HTMLTagComment() : InlineContentComment(CommentKind::HTMLTagComment) {}

4
src/CppParser/AST.h

@ -920,6 +920,7 @@ class CS_API FullComment : public Comment
{ {
public: public:
FullComment(); FullComment();
~FullComment();
VECTOR(BlockContentComment*, Blocks) VECTOR(BlockContentComment*, Blocks)
}; };
@ -970,6 +971,7 @@ class CS_API VerbatimBlockComment : public BlockCommandComment
{ {
public: public:
VerbatimBlockComment(); VerbatimBlockComment();
~VerbatimBlockComment();
VECTOR(VerbatimBlockLineComment*, Lines) VECTOR(VerbatimBlockLineComment*, Lines)
}; };
@ -991,6 +993,7 @@ class CS_API ParagraphComment : public BlockContentComment
{ {
public: public:
ParagraphComment(); ParagraphComment();
~ParagraphComment();
bool IsWhitespace; bool IsWhitespace;
VECTOR(InlineContentComment*, Content) VECTOR(InlineContentComment*, Content)
}; };
@ -1068,6 +1071,7 @@ class CS_API RawComment
{ {
public: public:
RawComment(); RawComment();
~RawComment();
RawCommentKind Kind; RawCommentKind Kind;
STRING(Text) STRING(Text)
STRING(BriefText) STRING(BriefText)

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

@ -10105,7 +10105,7 @@ namespace CppSharp
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST11FullCommentC2ERKS2_")] EntryPoint="_ZN8CppSharp9CppParser3AST11FullCommentC2ERKS2_")]
internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
@ -10146,7 +10146,7 @@ namespace CppSharp
private static FullComment.Internal* __CopyValue(FullComment.Internal native) private static FullComment.Internal* __CopyValue(FullComment.Internal native)
{ {
var ret = Marshal.AllocHGlobal(16); var ret = Marshal.AllocHGlobal(16);
CppSharp.Parser.AST.FullComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); CppSharp.Parser.AST.FullComment.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (FullComment.Internal*) ret; return (FullComment.Internal*) ret;
} }
@ -10184,7 +10184,7 @@ namespace CppSharp
if (ReferenceEquals(_0, null)) if (ReferenceEquals(_0, null))
throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&).");
var arg0 = _0.__Instance; var arg0 = _0.__Instance;
Internal.cctor_2((__Instance + __PointerAdjustment), arg0); Internal.cctor_1((__Instance + __PointerAdjustment), arg0);
} }
public CppSharp.Parser.AST.BlockContentComment getBlocks(uint i) public CppSharp.Parser.AST.BlockContentComment getBlocks(uint i)
@ -10878,7 +10878,7 @@ namespace CppSharp
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentC2ERKS2_")] EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentC2ERKS2_")]
internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
@ -10919,7 +10919,7 @@ namespace CppSharp
private static VerbatimBlockComment.Internal* __CopyValue(VerbatimBlockComment.Internal native) private static VerbatimBlockComment.Internal* __CopyValue(VerbatimBlockComment.Internal native)
{ {
var ret = Marshal.AllocHGlobal(32); var ret = Marshal.AllocHGlobal(32);
CppSharp.Parser.AST.VerbatimBlockComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); CppSharp.Parser.AST.VerbatimBlockComment.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (VerbatimBlockComment.Internal*) ret; return (VerbatimBlockComment.Internal*) ret;
} }
@ -10957,7 +10957,7 @@ namespace CppSharp
if (ReferenceEquals(_0, null)) if (ReferenceEquals(_0, null))
throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&).");
var arg0 = _0.__Instance; var arg0 = _0.__Instance;
Internal.cctor_2((__Instance + __PointerAdjustment), arg0); Internal.cctor_1((__Instance + __PointerAdjustment), arg0);
} }
public CppSharp.Parser.AST.VerbatimBlockLineComment getLines(uint i) public CppSharp.Parser.AST.VerbatimBlockLineComment getLines(uint i)
@ -11207,7 +11207,7 @@ namespace CppSharp
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphCommentC2ERKS2_")] EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphCommentC2ERKS2_")]
internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
@ -11248,7 +11248,7 @@ namespace CppSharp
private static ParagraphComment.Internal* __CopyValue(ParagraphComment.Internal native) private static ParagraphComment.Internal* __CopyValue(ParagraphComment.Internal native)
{ {
var ret = Marshal.AllocHGlobal(20); var ret = Marshal.AllocHGlobal(20);
CppSharp.Parser.AST.ParagraphComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); CppSharp.Parser.AST.ParagraphComment.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (ParagraphComment.Internal*) ret; return (ParagraphComment.Internal*) ret;
} }
@ -11286,7 +11286,7 @@ namespace CppSharp
if (ReferenceEquals(_0, null)) if (ReferenceEquals(_0, null))
throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&).");
var arg0 = _0.__Instance; var arg0 = _0.__Instance;
Internal.cctor_2((__Instance + __PointerAdjustment), arg0); Internal.cctor_1((__Instance + __PointerAdjustment), arg0);
} }
public CppSharp.Parser.AST.InlineContentComment getContent(uint i) public CppSharp.Parser.AST.InlineContentComment getContent(uint i)
@ -12227,7 +12227,7 @@ namespace CppSharp
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST10RawCommentC2ERKS2_")] EntryPoint="_ZN8CppSharp9CppParser3AST10RawCommentC2ERKS2_")]
internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
@ -12276,7 +12276,7 @@ namespace CppSharp
private static RawComment.Internal* __CopyValue(RawComment.Internal native) private static RawComment.Internal* __CopyValue(RawComment.Internal native)
{ {
var ret = Marshal.AllocHGlobal(32); var ret = Marshal.AllocHGlobal(32);
CppSharp.Parser.AST.RawComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); CppSharp.Parser.AST.RawComment.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (RawComment.Internal*) ret; return (RawComment.Internal*) ret;
} }
@ -12310,7 +12310,7 @@ namespace CppSharp
if (ReferenceEquals(_0, null)) if (ReferenceEquals(_0, null))
throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&).");
var arg0 = _0.__Instance; var arg0 = _0.__Instance;
Internal.cctor_2((__Instance + __PointerAdjustment), arg0); Internal.cctor_1((__Instance + __PointerAdjustment), arg0);
} }
public void Dispose() public void Dispose()

24
src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/AST.cs

@ -10105,7 +10105,7 @@ namespace CppSharp
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall,
EntryPoint="??0FullComment@AST@CppParser@CppSharp@@QAE@ABV0123@@Z")] EntryPoint="??0FullComment@AST@CppParser@CppSharp@@QAE@ABV0123@@Z")]
internal static extern global::System.IntPtr cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); internal static extern global::System.IntPtr cctor_1(global::System.IntPtr instance, global::System.IntPtr _0);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall,
@ -10146,7 +10146,7 @@ namespace CppSharp
private static FullComment.Internal* __CopyValue(FullComment.Internal native) private static FullComment.Internal* __CopyValue(FullComment.Internal native)
{ {
var ret = Marshal.AllocHGlobal(16); var ret = Marshal.AllocHGlobal(16);
CppSharp.Parser.AST.FullComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); CppSharp.Parser.AST.FullComment.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (FullComment.Internal*) ret; return (FullComment.Internal*) ret;
} }
@ -10184,7 +10184,7 @@ namespace CppSharp
if (ReferenceEquals(_0, null)) if (ReferenceEquals(_0, null))
throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&).");
var arg0 = _0.__Instance; var arg0 = _0.__Instance;
Internal.cctor_2((__Instance + __PointerAdjustment), arg0); Internal.cctor_1((__Instance + __PointerAdjustment), arg0);
} }
public CppSharp.Parser.AST.BlockContentComment getBlocks(uint i) public CppSharp.Parser.AST.BlockContentComment getBlocks(uint i)
@ -10878,7 +10878,7 @@ namespace CppSharp
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall,
EntryPoint="??0VerbatimBlockComment@AST@CppParser@CppSharp@@QAE@ABV0123@@Z")] EntryPoint="??0VerbatimBlockComment@AST@CppParser@CppSharp@@QAE@ABV0123@@Z")]
internal static extern global::System.IntPtr cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); internal static extern global::System.IntPtr cctor_1(global::System.IntPtr instance, global::System.IntPtr _0);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall,
@ -10919,7 +10919,7 @@ namespace CppSharp
private static VerbatimBlockComment.Internal* __CopyValue(VerbatimBlockComment.Internal native) private static VerbatimBlockComment.Internal* __CopyValue(VerbatimBlockComment.Internal native)
{ {
var ret = Marshal.AllocHGlobal(32); var ret = Marshal.AllocHGlobal(32);
CppSharp.Parser.AST.VerbatimBlockComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); CppSharp.Parser.AST.VerbatimBlockComment.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (VerbatimBlockComment.Internal*) ret; return (VerbatimBlockComment.Internal*) ret;
} }
@ -10957,7 +10957,7 @@ namespace CppSharp
if (ReferenceEquals(_0, null)) if (ReferenceEquals(_0, null))
throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&).");
var arg0 = _0.__Instance; var arg0 = _0.__Instance;
Internal.cctor_2((__Instance + __PointerAdjustment), arg0); Internal.cctor_1((__Instance + __PointerAdjustment), arg0);
} }
public CppSharp.Parser.AST.VerbatimBlockLineComment getLines(uint i) public CppSharp.Parser.AST.VerbatimBlockLineComment getLines(uint i)
@ -11207,7 +11207,7 @@ namespace CppSharp
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall,
EntryPoint="??0ParagraphComment@AST@CppParser@CppSharp@@QAE@ABV0123@@Z")] EntryPoint="??0ParagraphComment@AST@CppParser@CppSharp@@QAE@ABV0123@@Z")]
internal static extern global::System.IntPtr cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); internal static extern global::System.IntPtr cctor_1(global::System.IntPtr instance, global::System.IntPtr _0);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall,
@ -11248,7 +11248,7 @@ namespace CppSharp
private static ParagraphComment.Internal* __CopyValue(ParagraphComment.Internal native) private static ParagraphComment.Internal* __CopyValue(ParagraphComment.Internal native)
{ {
var ret = Marshal.AllocHGlobal(20); var ret = Marshal.AllocHGlobal(20);
CppSharp.Parser.AST.ParagraphComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); CppSharp.Parser.AST.ParagraphComment.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (ParagraphComment.Internal*) ret; return (ParagraphComment.Internal*) ret;
} }
@ -11286,7 +11286,7 @@ namespace CppSharp
if (ReferenceEquals(_0, null)) if (ReferenceEquals(_0, null))
throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&).");
var arg0 = _0.__Instance; var arg0 = _0.__Instance;
Internal.cctor_2((__Instance + __PointerAdjustment), arg0); Internal.cctor_1((__Instance + __PointerAdjustment), arg0);
} }
public CppSharp.Parser.AST.InlineContentComment getContent(uint i) public CppSharp.Parser.AST.InlineContentComment getContent(uint i)
@ -12227,7 +12227,7 @@ namespace CppSharp
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall,
EntryPoint="??0RawComment@AST@CppParser@CppSharp@@QAE@ABV0123@@Z")] EntryPoint="??0RawComment@AST@CppParser@CppSharp@@QAE@ABV0123@@Z")]
internal static extern global::System.IntPtr cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); internal static extern global::System.IntPtr cctor_1(global::System.IntPtr instance, global::System.IntPtr _0);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall,
@ -12276,7 +12276,7 @@ namespace CppSharp
private static RawComment.Internal* __CopyValue(RawComment.Internal native) private static RawComment.Internal* __CopyValue(RawComment.Internal native)
{ {
var ret = Marshal.AllocHGlobal(56); var ret = Marshal.AllocHGlobal(56);
CppSharp.Parser.AST.RawComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); CppSharp.Parser.AST.RawComment.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (RawComment.Internal*) ret; return (RawComment.Internal*) ret;
} }
@ -12310,7 +12310,7 @@ namespace CppSharp
if (ReferenceEquals(_0, null)) if (ReferenceEquals(_0, null))
throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&).");
var arg0 = _0.__Instance; var arg0 = _0.__Instance;
Internal.cctor_2((__Instance + __PointerAdjustment), arg0); Internal.cctor_1((__Instance + __PointerAdjustment), arg0);
} }
public void Dispose() public void Dispose()

24
src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/AST.cs

@ -10104,7 +10104,7 @@ namespace CppSharp
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST11FullCommentC2ERKS2_")] EntryPoint="_ZN8CppSharp9CppParser3AST11FullCommentC2ERKS2_")]
internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
@ -10145,7 +10145,7 @@ namespace CppSharp
private static FullComment.Internal* __CopyValue(FullComment.Internal native) private static FullComment.Internal* __CopyValue(FullComment.Internal native)
{ {
var ret = Marshal.AllocHGlobal(32); var ret = Marshal.AllocHGlobal(32);
CppSharp.Parser.AST.FullComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); CppSharp.Parser.AST.FullComment.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (FullComment.Internal*) ret; return (FullComment.Internal*) ret;
} }
@ -10183,7 +10183,7 @@ namespace CppSharp
if (ReferenceEquals(_0, null)) if (ReferenceEquals(_0, null))
throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&).");
var arg0 = _0.__Instance; var arg0 = _0.__Instance;
Internal.cctor_2((__Instance + __PointerAdjustment), arg0); Internal.cctor_1((__Instance + __PointerAdjustment), arg0);
} }
public CppSharp.Parser.AST.BlockContentComment getBlocks(uint i) public CppSharp.Parser.AST.BlockContentComment getBlocks(uint i)
@ -10877,7 +10877,7 @@ namespace CppSharp
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentC2ERKS2_")] EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentC2ERKS2_")]
internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
@ -10918,7 +10918,7 @@ namespace CppSharp
private static VerbatimBlockComment.Internal* __CopyValue(VerbatimBlockComment.Internal native) private static VerbatimBlockComment.Internal* __CopyValue(VerbatimBlockComment.Internal native)
{ {
var ret = Marshal.AllocHGlobal(56); var ret = Marshal.AllocHGlobal(56);
CppSharp.Parser.AST.VerbatimBlockComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); CppSharp.Parser.AST.VerbatimBlockComment.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (VerbatimBlockComment.Internal*) ret; return (VerbatimBlockComment.Internal*) ret;
} }
@ -10956,7 +10956,7 @@ namespace CppSharp
if (ReferenceEquals(_0, null)) if (ReferenceEquals(_0, null))
throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&).");
var arg0 = _0.__Instance; var arg0 = _0.__Instance;
Internal.cctor_2((__Instance + __PointerAdjustment), arg0); Internal.cctor_1((__Instance + __PointerAdjustment), arg0);
} }
public CppSharp.Parser.AST.VerbatimBlockLineComment getLines(uint i) public CppSharp.Parser.AST.VerbatimBlockLineComment getLines(uint i)
@ -11206,7 +11206,7 @@ namespace CppSharp
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphCommentC2ERKS2_")] EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphCommentC2ERKS2_")]
internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
@ -11247,7 +11247,7 @@ namespace CppSharp
private static ParagraphComment.Internal* __CopyValue(ParagraphComment.Internal native) private static ParagraphComment.Internal* __CopyValue(ParagraphComment.Internal native)
{ {
var ret = Marshal.AllocHGlobal(32); var ret = Marshal.AllocHGlobal(32);
CppSharp.Parser.AST.ParagraphComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); CppSharp.Parser.AST.ParagraphComment.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (ParagraphComment.Internal*) ret; return (ParagraphComment.Internal*) ret;
} }
@ -11285,7 +11285,7 @@ namespace CppSharp
if (ReferenceEquals(_0, null)) if (ReferenceEquals(_0, null))
throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&).");
var arg0 = _0.__Instance; var arg0 = _0.__Instance;
Internal.cctor_2((__Instance + __PointerAdjustment), arg0); Internal.cctor_1((__Instance + __PointerAdjustment), arg0);
} }
public CppSharp.Parser.AST.InlineContentComment getContent(uint i) public CppSharp.Parser.AST.InlineContentComment getContent(uint i)
@ -12226,7 +12226,7 @@ namespace CppSharp
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST10RawCommentC2ERKS2_")] EntryPoint="_ZN8CppSharp9CppParser3AST10RawCommentC2ERKS2_")]
internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
@ -12275,7 +12275,7 @@ namespace CppSharp
private static RawComment.Internal* __CopyValue(RawComment.Internal native) private static RawComment.Internal* __CopyValue(RawComment.Internal native)
{ {
var ret = Marshal.AllocHGlobal(64); var ret = Marshal.AllocHGlobal(64);
CppSharp.Parser.AST.RawComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); CppSharp.Parser.AST.RawComment.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (RawComment.Internal*) ret; return (RawComment.Internal*) ret;
} }
@ -12309,7 +12309,7 @@ namespace CppSharp
if (ReferenceEquals(_0, null)) if (ReferenceEquals(_0, null))
throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&).");
var arg0 = _0.__Instance; var arg0 = _0.__Instance;
Internal.cctor_2((__Instance + __PointerAdjustment), arg0); Internal.cctor_1((__Instance + __PointerAdjustment), arg0);
} }
public void Dispose() public void Dispose()

18
src/CppParser/Bindings/CSharp/x86_64-linux-gnu/AST.cs

@ -10104,7 +10104,7 @@ namespace CppSharp
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST11FullCommentC2ERKS2_")] EntryPoint="_ZN8CppSharp9CppParser3AST11FullCommentC2ERKS2_")]
internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
@ -10145,7 +10145,7 @@ namespace CppSharp
private static FullComment.Internal* __CopyValue(FullComment.Internal native) private static FullComment.Internal* __CopyValue(FullComment.Internal native)
{ {
var ret = Marshal.AllocHGlobal(32); var ret = Marshal.AllocHGlobal(32);
CppSharp.Parser.AST.FullComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); CppSharp.Parser.AST.FullComment.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (FullComment.Internal*) ret; return (FullComment.Internal*) ret;
} }
@ -10183,7 +10183,7 @@ namespace CppSharp
if (ReferenceEquals(_0, null)) if (ReferenceEquals(_0, null))
throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&).");
var arg0 = _0.__Instance; var arg0 = _0.__Instance;
Internal.cctor_2((__Instance + __PointerAdjustment), arg0); Internal.cctor_1((__Instance + __PointerAdjustment), arg0);
} }
public CppSharp.Parser.AST.BlockContentComment getBlocks(uint i) public CppSharp.Parser.AST.BlockContentComment getBlocks(uint i)
@ -10877,7 +10877,7 @@ namespace CppSharp
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentC2ERKS2_")] EntryPoint="_ZN8CppSharp9CppParser3AST20VerbatimBlockCommentC2ERKS2_")]
internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
@ -10918,7 +10918,7 @@ namespace CppSharp
private static VerbatimBlockComment.Internal* __CopyValue(VerbatimBlockComment.Internal native) private static VerbatimBlockComment.Internal* __CopyValue(VerbatimBlockComment.Internal native)
{ {
var ret = Marshal.AllocHGlobal(56); var ret = Marshal.AllocHGlobal(56);
CppSharp.Parser.AST.VerbatimBlockComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); CppSharp.Parser.AST.VerbatimBlockComment.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (VerbatimBlockComment.Internal*) ret; return (VerbatimBlockComment.Internal*) ret;
} }
@ -10956,7 +10956,7 @@ namespace CppSharp
if (ReferenceEquals(_0, null)) if (ReferenceEquals(_0, null))
throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&).");
var arg0 = _0.__Instance; var arg0 = _0.__Instance;
Internal.cctor_2((__Instance + __PointerAdjustment), arg0); Internal.cctor_1((__Instance + __PointerAdjustment), arg0);
} }
public CppSharp.Parser.AST.VerbatimBlockLineComment getLines(uint i) public CppSharp.Parser.AST.VerbatimBlockLineComment getLines(uint i)
@ -11206,7 +11206,7 @@ namespace CppSharp
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphCommentC2ERKS2_")] EntryPoint="_ZN8CppSharp9CppParser3AST16ParagraphCommentC2ERKS2_")]
internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0); internal static extern void cctor_1(global::System.IntPtr instance, global::System.IntPtr _0);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
@ -11247,7 +11247,7 @@ namespace CppSharp
private static ParagraphComment.Internal* __CopyValue(ParagraphComment.Internal native) private static ParagraphComment.Internal* __CopyValue(ParagraphComment.Internal native)
{ {
var ret = Marshal.AllocHGlobal(32); var ret = Marshal.AllocHGlobal(32);
CppSharp.Parser.AST.ParagraphComment.Internal.cctor_2(ret, new global::System.IntPtr(&native)); CppSharp.Parser.AST.ParagraphComment.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (ParagraphComment.Internal*) ret; return (ParagraphComment.Internal*) ret;
} }
@ -11285,7 +11285,7 @@ namespace CppSharp
if (ReferenceEquals(_0, null)) if (ReferenceEquals(_0, null))
throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&).");
var arg0 = _0.__Instance; var arg0 = _0.__Instance;
Internal.cctor_2((__Instance + __PointerAdjustment), arg0); Internal.cctor_1((__Instance + __PointerAdjustment), arg0);
} }
public CppSharp.Parser.AST.InlineContentComment getContent(uint i) public CppSharp.Parser.AST.InlineContentComment getContent(uint i)

Loading…
Cancel
Save