Skip to content

Commit 81493b5

Browse files
committed
Regenerate the parser bindings
Signed-off-by: Dimitar Dobrev <[email protected]>
1 parent 77e9d0c commit 81493b5

File tree

16 files changed

+3880
-1610
lines changed

16 files changed

+3880
-1610
lines changed

src/CppParser/AST.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,7 @@ BlockCommandComment::Argument::Argument() {}
10041004

10051005
BlockCommandComment::Argument::Argument(const Argument& rhs) : text(rhs.text) {}
10061006

1007+
BlockCommandComment::Argument::~Argument() {}
10071008

10081009
BlockCommandComment::BlockCommandComment() : BlockContentComment(CommentKind::BlockCommandComment), commandId(0), paragraphComment(0) {}
10091010

@@ -1091,6 +1092,8 @@ InlineCommandComment::Argument::Argument() {}
10911092

10921093
InlineCommandComment::Argument::Argument(const Argument& rhs) : text(rhs.text) {}
10931094

1095+
InlineCommandComment::Argument::~Argument() {}
1096+
10941097
InlineCommandComment::InlineCommandComment()
10951098
: InlineContentComment(CommentKind::InlineCommandComment), commandId(0), commentRenderKind(RenderNormal) {}
10961099

src/CppParser/AST.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ class CS_API BlockCommandComment : public BlockContentComment
107107
public:
108108
Argument();
109109
Argument(const Argument&);
110+
~Argument();
110111
std::string text;
111112
};
112113
BlockCommandComment();
@@ -176,6 +177,7 @@ class CS_API InlineCommandComment : public InlineContentComment
176177
public:
177178
Argument();
178179
Argument(const Argument&);
180+
~Argument();
179181
std::string text;
180182
};
181183
InlineCommandComment();

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

Lines changed: 626 additions & 261 deletions
Large diffs are not rendered by default.

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

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -371,14 +371,17 @@ public Allocator()
371371

372372
public void Dispose()
373373
{
374-
Dispose(disposing: true);
374+
Dispose(disposing: true, callNativeDtor : __ownsNativeInstance );
375375
}
376376

377-
public virtual void Dispose(bool disposing)
377+
partial void DisposePartial(bool disposing);
378+
379+
internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
378380
{
379381
if (__Instance == IntPtr.Zero)
380382
return;
381383
NativeToManagedMap.TryRemove(__Instance, out _);
384+
DisposePartial(disposing);
382385
if (__ownsNativeInstance)
383386
Marshal.FreeHGlobal(__Instance);
384387
__Instance = IntPtr.Zero;
@@ -810,14 +813,17 @@ protected CharTraits(void* native, bool skipVTables = false)
810813

811814
public void Dispose()
812815
{
813-
Dispose(disposing: true);
816+
Dispose(disposing: true, callNativeDtor : __ownsNativeInstance );
814817
}
815818

816-
public virtual void Dispose(bool disposing)
819+
partial void DisposePartial(bool disposing);
820+
821+
internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
817822
{
818823
if (__Instance == IntPtr.Zero)
819824
return;
820825
NativeToManagedMap.TryRemove(__Instance, out _);
826+
DisposePartial(disposing);
821827
if (__ownsNativeInstance)
822828
Marshal.FreeHGlobal(__Instance);
823829
__Instance = IntPtr.Zero;
@@ -985,15 +991,18 @@ public BasicString()
985991

986992
public void Dispose()
987993
{
988-
Dispose(disposing: true);
994+
Dispose(disposing: true, callNativeDtor : __ownsNativeInstance );
989995
}
990996

991-
public virtual void Dispose(bool disposing)
997+
partial void DisposePartial(bool disposing);
998+
999+
internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
9921000
{
9931001
if (__Instance == IntPtr.Zero)
9941002
return;
9951003
NativeToManagedMap.TryRemove(__Instance, out _);
996-
if (disposing)
1004+
DisposePartial(disposing);
1005+
if (callNativeDtor)
9971006
{
9981007
var ___CharT = typeof(_CharT);
9991008
var ___Traits = typeof(_Traits);

0 commit comments

Comments
 (0)