diff --git a/src/Core/Parser/ASTConverter.cs b/src/Core/Parser/ASTConverter.cs index 65a62cd1..b2db822e 100644 --- a/src/Core/Parser/ASTConverter.cs +++ b/src/Core/Parser/ASTConverter.cs @@ -734,6 +734,8 @@ namespace CppSharp _rawComment.FullComment = commentConverter.Visit(rawComment.FullCommentBlock) as AST.FullComment; + NativeObjects.Add(rawComment); + return _rawComment; } diff --git a/src/CppParser/AST.cpp b/src/CppParser/AST.cpp index 1192e887..fed537e6 100644 --- a/src/CppParser/AST.cpp +++ b/src/CppParser/AST.cpp @@ -744,8 +744,20 @@ DEF_STRING(RawComment, BriefText) RawComment::RawComment() : FullCommentBlock(0) {} +RawComment::~RawComment() +{ + if (FullCommentBlock) + delete FullCommentBlock; +} + FullComment::FullComment() : Comment(CommentKind::FullComment) {} +FullComment::~FullComment() +{ + for (auto& block : Blocks) + delete block; +} + DEF_VECTOR(FullComment, BlockContentComment*, Blocks) BlockContentComment::BlockContentComment() : Comment(CommentKind::BlockContentComment) {} @@ -770,6 +782,12 @@ DEF_VECTOR(TParamCommandComment, unsigned, Position) VerbatimBlockComment::VerbatimBlockComment() : BlockCommandComment(CommentKind::VerbatimBlockComment) {} +VerbatimBlockComment::~VerbatimBlockComment() +{ + for (auto& line : Lines) + delete line; +} + DEF_VECTOR(VerbatimBlockComment, VerbatimBlockLineComment*, Lines) VerbatimLineComment::VerbatimLineComment() : BlockCommandComment(CommentKind::VerbatimLineComment) {} @@ -778,6 +796,12 @@ DEF_STRING(VerbatimLineComment, Text) ParagraphComment::ParagraphComment() : BlockContentComment(CommentKind::ParagraphComment), IsWhitespace(false) {} +ParagraphComment::~ParagraphComment() +{ + for (auto& content : Content) + delete content; +} + DEF_VECTOR(ParagraphComment, InlineContentComment*, Content) HTMLTagComment::HTMLTagComment() : InlineContentComment(CommentKind::HTMLTagComment) {} diff --git a/src/CppParser/AST.h b/src/CppParser/AST.h index c78572d6..70a3f0ff 100644 --- a/src/CppParser/AST.h +++ b/src/CppParser/AST.h @@ -920,6 +920,7 @@ class CS_API FullComment : public Comment { public: FullComment(); + ~FullComment(); VECTOR(BlockContentComment*, Blocks) }; @@ -970,6 +971,7 @@ class CS_API VerbatimBlockComment : public BlockCommandComment { public: VerbatimBlockComment(); + ~VerbatimBlockComment(); VECTOR(VerbatimBlockLineComment*, Lines) }; @@ -991,6 +993,7 @@ class CS_API ParagraphComment : public BlockContentComment { public: ParagraphComment(); + ~ParagraphComment(); bool IsWhitespace; VECTOR(InlineContentComment*, Content) }; @@ -1068,6 +1071,7 @@ class CS_API RawComment { public: RawComment(); + ~RawComment(); RawCommentKind Kind; STRING(Text) STRING(BriefText) diff --git a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/AST.cs b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/AST.cs index 370c19c7..07a03a35 100644 --- a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/AST.cs +++ b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/AST.cs @@ -10105,7 +10105,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, 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] [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) { 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; } @@ -10184,7 +10184,7 @@ namespace CppSharp if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_2((__Instance + __PointerAdjustment), arg0); + Internal.cctor_1((__Instance + __PointerAdjustment), arg0); } public CppSharp.Parser.AST.BlockContentComment getBlocks(uint i) @@ -10878,7 +10878,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, 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] [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) { 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; } @@ -10957,7 +10957,7 @@ namespace CppSharp if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_2((__Instance + __PointerAdjustment), arg0); + Internal.cctor_1((__Instance + __PointerAdjustment), arg0); } public CppSharp.Parser.AST.VerbatimBlockLineComment getLines(uint i) @@ -11207,7 +11207,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, 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] [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) { 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; } @@ -11286,7 +11286,7 @@ namespace CppSharp if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_2((__Instance + __PointerAdjustment), arg0); + Internal.cctor_1((__Instance + __PointerAdjustment), arg0); } public CppSharp.Parser.AST.InlineContentComment getContent(uint i) @@ -12227,7 +12227,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, 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] [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) { 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; } @@ -12310,7 +12310,7 @@ namespace CppSharp if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_2((__Instance + __PointerAdjustment), arg0); + Internal.cctor_1((__Instance + __PointerAdjustment), arg0); } public void Dispose() diff --git a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/AST.cs b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/AST.cs index fc8b9462..3f6aa5de 100644 --- a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/AST.cs +++ b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/AST.cs @@ -10105,7 +10105,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, 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] [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) { 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; } @@ -10184,7 +10184,7 @@ namespace CppSharp if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_2((__Instance + __PointerAdjustment), arg0); + Internal.cctor_1((__Instance + __PointerAdjustment), arg0); } public CppSharp.Parser.AST.BlockContentComment getBlocks(uint i) @@ -10878,7 +10878,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, 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] [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) { 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; } @@ -10957,7 +10957,7 @@ namespace CppSharp if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_2((__Instance + __PointerAdjustment), arg0); + Internal.cctor_1((__Instance + __PointerAdjustment), arg0); } public CppSharp.Parser.AST.VerbatimBlockLineComment getLines(uint i) @@ -11207,7 +11207,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, 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] [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) { 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; } @@ -11286,7 +11286,7 @@ namespace CppSharp if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_2((__Instance + __PointerAdjustment), arg0); + Internal.cctor_1((__Instance + __PointerAdjustment), arg0); } public CppSharp.Parser.AST.InlineContentComment getContent(uint i) @@ -12227,7 +12227,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, 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] [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) { 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; } @@ -12310,7 +12310,7 @@ namespace CppSharp if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_2((__Instance + __PointerAdjustment), arg0); + Internal.cctor_1((__Instance + __PointerAdjustment), arg0); } public void Dispose() diff --git a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/AST.cs b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/AST.cs index 1f589c17..15e47f41 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/AST.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/AST.cs @@ -10104,7 +10104,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, 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] [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) { 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; } @@ -10183,7 +10183,7 @@ namespace CppSharp if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_2((__Instance + __PointerAdjustment), arg0); + Internal.cctor_1((__Instance + __PointerAdjustment), arg0); } public CppSharp.Parser.AST.BlockContentComment getBlocks(uint i) @@ -10877,7 +10877,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, 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] [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) { 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; } @@ -10956,7 +10956,7 @@ namespace CppSharp if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_2((__Instance + __PointerAdjustment), arg0); + Internal.cctor_1((__Instance + __PointerAdjustment), arg0); } public CppSharp.Parser.AST.VerbatimBlockLineComment getLines(uint i) @@ -11206,7 +11206,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, 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] [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) { 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; } @@ -11285,7 +11285,7 @@ namespace CppSharp if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_2((__Instance + __PointerAdjustment), arg0); + Internal.cctor_1((__Instance + __PointerAdjustment), arg0); } public CppSharp.Parser.AST.InlineContentComment getContent(uint i) @@ -12226,7 +12226,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, 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] [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) { 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; } @@ -12309,7 +12309,7 @@ namespace CppSharp if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_2((__Instance + __PointerAdjustment), arg0); + Internal.cctor_1((__Instance + __PointerAdjustment), arg0); } public void Dispose() diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/AST.cs b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/AST.cs index affa294a..ffe6abdc 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/AST.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/AST.cs @@ -10104,7 +10104,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, 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] [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) { 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; } @@ -10183,7 +10183,7 @@ namespace CppSharp if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_2((__Instance + __PointerAdjustment), arg0); + Internal.cctor_1((__Instance + __PointerAdjustment), arg0); } public CppSharp.Parser.AST.BlockContentComment getBlocks(uint i) @@ -10877,7 +10877,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, 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] [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) { 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; } @@ -10956,7 +10956,7 @@ namespace CppSharp if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_2((__Instance + __PointerAdjustment), arg0); + Internal.cctor_1((__Instance + __PointerAdjustment), arg0); } public CppSharp.Parser.AST.VerbatimBlockLineComment getLines(uint i) @@ -11206,7 +11206,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, 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] [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) { 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; } @@ -11285,7 +11285,7 @@ namespace CppSharp if (ReferenceEquals(_0, null)) throw new global::System.ArgumentNullException("_0", "_0 cannot be null because it is a C++ reference (&)."); var arg0 = _0.__Instance; - Internal.cctor_2((__Instance + __PointerAdjustment), arg0); + Internal.cctor_1((__Instance + __PointerAdjustment), arg0); } public CppSharp.Parser.AST.InlineContentComment getContent(uint i)