Browse Source

Fix C4099 (class as struct) in generated C++/CLI

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/1625/head
Dimitar Dobrev 4 years ago
parent
commit
c6768bcac5
  1. 22
      src/AST/Class.cs
  2. 598
      src/CppParser/Bindings/CLI/AST.cpp
  3. 96
      src/CppParser/Bindings/CLI/AST.h
  4. 28
      src/CppParser/Bindings/CLI/CppParser.cpp
  5. 6
      src/CppParser/Bindings/CLI/CppParser.h
  6. 1782
      src/CppParser/Bindings/CLI/Decl.cpp
  7. 186
      src/CppParser/Bindings/CLI/Decl.h
  8. 3468
      src/CppParser/Bindings/CLI/Expr.cpp
  9. 448
      src/CppParser/Bindings/CLI/Expr.h
  10. 1220
      src/CppParser/Bindings/CLI/Stmt.cpp
  11. 152
      src/CppParser/Bindings/CLI/Stmt.h
  12. 496
      src/CppParser/Bindings/CLI/Types.cpp
  13. 82
      src/CppParser/Bindings/CLI/Types.h
  14. 6
      src/Generator/Generators/C/CppMarshal.cs
  15. 8
      src/Generator/Generators/C/CppSources.cs
  16. 3
      src/Generator/Generators/CLI/CLIHeaders.cs
  17. 8
      src/Generator/Generators/CLI/CLIMarshal.cs
  18. 22
      src/Generator/Generators/CLI/CLISources.cs

22
src/AST/Class.cs

@ -97,6 +97,28 @@ namespace CppSharp.AST @@ -97,6 +97,28 @@ namespace CppSharp.AST
public TagKind TagKind { get; set; }
public string Tag
{
get
{
switch (TagKind)
{
case TagKind.Struct:
return "struct";
case TagKind.Interface:
return "__interface";
case TagKind.Union:
return "union";
case TagKind.Class:
return "class";
case TagKind.Enum:
return "enum";
default:
throw new ArgumentOutOfRangeException(nameof(TagKind));
}
}
}
// True if the class is final / sealed.
public bool IsFinal { get; set; }

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

File diff suppressed because it is too large Load Diff

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

@ -88,15 +88,15 @@ namespace CppSharp @@ -88,15 +88,15 @@ namespace CppSharp
{
public:
property struct ::CppSharp::CppParser::AST::NativeLibrary* NativePtr;
property class ::CppSharp::CppParser::AST::NativeLibrary* NativePtr;
property ::System::IntPtr __Instance
{
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
NativeLibrary(struct ::CppSharp::CppParser::AST::NativeLibrary* native);
NativeLibrary(struct ::CppSharp::CppParser::AST::NativeLibrary* native, bool ownNativeInstance);
NativeLibrary(class ::CppSharp::CppParser::AST::NativeLibrary* native);
NativeLibrary(class ::CppSharp::CppParser::AST::NativeLibrary* native, bool ownNativeInstance);
static NativeLibrary^ __CreateInstance(::System::IntPtr native);
static NativeLibrary^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
NativeLibrary();
@ -160,15 +160,15 @@ namespace CppSharp @@ -160,15 +160,15 @@ namespace CppSharp
{
public:
property struct ::CppSharp::CppParser::AST::Comment* NativePtr;
property class ::CppSharp::CppParser::AST::Comment* NativePtr;
property ::System::IntPtr __Instance
{
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
Comment(struct ::CppSharp::CppParser::AST::Comment* native);
Comment(struct ::CppSharp::CppParser::AST::Comment* native, bool ownNativeInstance);
Comment(class ::CppSharp::CppParser::AST::Comment* native);
Comment(class ::CppSharp::CppParser::AST::Comment* native, bool ownNativeInstance);
static Comment^ __CreateInstance(::System::IntPtr native);
static Comment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Comment(CppSharp::Parser::AST::CommentKind kind);
@ -194,8 +194,8 @@ namespace CppSharp @@ -194,8 +194,8 @@ namespace CppSharp
{
public:
BlockContentComment(struct ::CppSharp::CppParser::AST::BlockContentComment* native);
BlockContentComment(struct ::CppSharp::CppParser::AST::BlockContentComment* native, bool ownNativeInstance);
BlockContentComment(class ::CppSharp::CppParser::AST::BlockContentComment* native);
BlockContentComment(class ::CppSharp::CppParser::AST::BlockContentComment* native, bool ownNativeInstance);
static BlockContentComment^ __CreateInstance(::System::IntPtr native);
static BlockContentComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
BlockContentComment();
@ -213,8 +213,8 @@ namespace CppSharp @@ -213,8 +213,8 @@ namespace CppSharp
{
public:
FullComment(struct ::CppSharp::CppParser::AST::FullComment* native);
FullComment(struct ::CppSharp::CppParser::AST::FullComment* native, bool ownNativeInstance);
FullComment(class ::CppSharp::CppParser::AST::FullComment* native);
FullComment(class ::CppSharp::CppParser::AST::FullComment* native, bool ownNativeInstance);
static FullComment^ __CreateInstance(::System::IntPtr native);
static FullComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
FullComment();
@ -245,8 +245,8 @@ namespace CppSharp @@ -245,8 +245,8 @@ namespace CppSharp
{
public:
InlineContentComment(struct ::CppSharp::CppParser::AST::InlineContentComment* native);
InlineContentComment(struct ::CppSharp::CppParser::AST::InlineContentComment* native, bool ownNativeInstance);
InlineContentComment(class ::CppSharp::CppParser::AST::InlineContentComment* native);
InlineContentComment(class ::CppSharp::CppParser::AST::InlineContentComment* native, bool ownNativeInstance);
static InlineContentComment^ __CreateInstance(::System::IntPtr native);
static InlineContentComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
InlineContentComment();
@ -270,8 +270,8 @@ namespace CppSharp @@ -270,8 +270,8 @@ namespace CppSharp
{
public:
ParagraphComment(struct ::CppSharp::CppParser::AST::ParagraphComment* native);
ParagraphComment(struct ::CppSharp::CppParser::AST::ParagraphComment* native, bool ownNativeInstance);
ParagraphComment(class ::CppSharp::CppParser::AST::ParagraphComment* native);
ParagraphComment(class ::CppSharp::CppParser::AST::ParagraphComment* native, bool ownNativeInstance);
static ParagraphComment^ __CreateInstance(::System::IntPtr native);
static ParagraphComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ParagraphComment();
@ -312,15 +312,15 @@ namespace CppSharp @@ -312,15 +312,15 @@ namespace CppSharp
{
public:
property struct ::CppSharp::CppParser::AST::BlockCommandComment::Argument* NativePtr;
property class ::CppSharp::CppParser::AST::BlockCommandComment::Argument* NativePtr;
property ::System::IntPtr __Instance
{
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
Argument(struct ::CppSharp::CppParser::AST::BlockCommandComment::Argument* native);
Argument(struct ::CppSharp::CppParser::AST::BlockCommandComment::Argument* native, bool ownNativeInstance);
Argument(class ::CppSharp::CppParser::AST::BlockCommandComment::Argument* native);
Argument(class ::CppSharp::CppParser::AST::BlockCommandComment::Argument* native, bool ownNativeInstance);
static Argument^ __CreateInstance(::System::IntPtr native);
static Argument^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Argument();
@ -340,8 +340,8 @@ namespace CppSharp @@ -340,8 +340,8 @@ namespace CppSharp
bool __ownsNativeInstance;
};
BlockCommandComment(struct ::CppSharp::CppParser::AST::BlockCommandComment* native);
BlockCommandComment(struct ::CppSharp::CppParser::AST::BlockCommandComment* native, bool ownNativeInstance);
BlockCommandComment(class ::CppSharp::CppParser::AST::BlockCommandComment* native);
BlockCommandComment(class ::CppSharp::CppParser::AST::BlockCommandComment* native, bool ownNativeInstance);
static BlockCommandComment^ __CreateInstance(::System::IntPtr native);
static BlockCommandComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
BlockCommandComment();
@ -395,8 +395,8 @@ namespace CppSharp @@ -395,8 +395,8 @@ namespace CppSharp
InOut = 2
};
ParamCommandComment(struct ::CppSharp::CppParser::AST::ParamCommandComment* native);
ParamCommandComment(struct ::CppSharp::CppParser::AST::ParamCommandComment* native, bool ownNativeInstance);
ParamCommandComment(class ::CppSharp::CppParser::AST::ParamCommandComment* native);
ParamCommandComment(class ::CppSharp::CppParser::AST::ParamCommandComment* native, bool ownNativeInstance);
static ParamCommandComment^ __CreateInstance(::System::IntPtr native);
static ParamCommandComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ParamCommandComment();
@ -422,8 +422,8 @@ namespace CppSharp @@ -422,8 +422,8 @@ namespace CppSharp
{
public:
TParamCommandComment(struct ::CppSharp::CppParser::AST::TParamCommandComment* native);
TParamCommandComment(struct ::CppSharp::CppParser::AST::TParamCommandComment* native, bool ownNativeInstance);
TParamCommandComment(class ::CppSharp::CppParser::AST::TParamCommandComment* native);
TParamCommandComment(class ::CppSharp::CppParser::AST::TParamCommandComment* native, bool ownNativeInstance);
static TParamCommandComment^ __CreateInstance(::System::IntPtr native);
static TParamCommandComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TParamCommandComment();
@ -454,8 +454,8 @@ namespace CppSharp @@ -454,8 +454,8 @@ namespace CppSharp
{
public:
VerbatimBlockLineComment(struct ::CppSharp::CppParser::AST::VerbatimBlockLineComment* native);
VerbatimBlockLineComment(struct ::CppSharp::CppParser::AST::VerbatimBlockLineComment* native, bool ownNativeInstance);
VerbatimBlockLineComment(class ::CppSharp::CppParser::AST::VerbatimBlockLineComment* native);
VerbatimBlockLineComment(class ::CppSharp::CppParser::AST::VerbatimBlockLineComment* native, bool ownNativeInstance);
static VerbatimBlockLineComment^ __CreateInstance(::System::IntPtr native);
static VerbatimBlockLineComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
VerbatimBlockLineComment();
@ -475,8 +475,8 @@ namespace CppSharp @@ -475,8 +475,8 @@ namespace CppSharp
{
public:
VerbatimBlockComment(struct ::CppSharp::CppParser::AST::VerbatimBlockComment* native);
VerbatimBlockComment(struct ::CppSharp::CppParser::AST::VerbatimBlockComment* native, bool ownNativeInstance);
VerbatimBlockComment(class ::CppSharp::CppParser::AST::VerbatimBlockComment* native);
VerbatimBlockComment(class ::CppSharp::CppParser::AST::VerbatimBlockComment* native, bool ownNativeInstance);
static VerbatimBlockComment^ __CreateInstance(::System::IntPtr native);
static VerbatimBlockComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
VerbatimBlockComment();
@ -507,8 +507,8 @@ namespace CppSharp @@ -507,8 +507,8 @@ namespace CppSharp
{
public:
VerbatimLineComment(struct ::CppSharp::CppParser::AST::VerbatimLineComment* native);
VerbatimLineComment(struct ::CppSharp::CppParser::AST::VerbatimLineComment* native, bool ownNativeInstance);
VerbatimLineComment(class ::CppSharp::CppParser::AST::VerbatimLineComment* native);
VerbatimLineComment(class ::CppSharp::CppParser::AST::VerbatimLineComment* native, bool ownNativeInstance);
static VerbatimLineComment^ __CreateInstance(::System::IntPtr native);
static VerbatimLineComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
VerbatimLineComment();
@ -541,15 +541,15 @@ namespace CppSharp @@ -541,15 +541,15 @@ namespace CppSharp
{
public:
property struct ::CppSharp::CppParser::AST::InlineCommandComment::Argument* NativePtr;
property class ::CppSharp::CppParser::AST::InlineCommandComment::Argument* NativePtr;
property ::System::IntPtr __Instance
{
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
Argument(struct ::CppSharp::CppParser::AST::InlineCommandComment::Argument* native);
Argument(struct ::CppSharp::CppParser::AST::InlineCommandComment::Argument* native, bool ownNativeInstance);
Argument(class ::CppSharp::CppParser::AST::InlineCommandComment::Argument* native);
Argument(class ::CppSharp::CppParser::AST::InlineCommandComment::Argument* native, bool ownNativeInstance);
static Argument^ __CreateInstance(::System::IntPtr native);
static Argument^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Argument();
@ -569,8 +569,8 @@ namespace CppSharp @@ -569,8 +569,8 @@ namespace CppSharp
bool __ownsNativeInstance;
};
InlineCommandComment(struct ::CppSharp::CppParser::AST::InlineCommandComment* native);
InlineCommandComment(struct ::CppSharp::CppParser::AST::InlineCommandComment* native, bool ownNativeInstance);
InlineCommandComment(class ::CppSharp::CppParser::AST::InlineCommandComment* native);
InlineCommandComment(class ::CppSharp::CppParser::AST::InlineCommandComment* native, bool ownNativeInstance);
static InlineCommandComment^ __CreateInstance(::System::IntPtr native);
static InlineCommandComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
InlineCommandComment();
@ -613,8 +613,8 @@ namespace CppSharp @@ -613,8 +613,8 @@ namespace CppSharp
{
public:
HTMLTagComment(struct ::CppSharp::CppParser::AST::HTMLTagComment* native);
HTMLTagComment(struct ::CppSharp::CppParser::AST::HTMLTagComment* native, bool ownNativeInstance);
HTMLTagComment(class ::CppSharp::CppParser::AST::HTMLTagComment* native);
HTMLTagComment(class ::CppSharp::CppParser::AST::HTMLTagComment* native, bool ownNativeInstance);
static HTMLTagComment^ __CreateInstance(::System::IntPtr native);
static HTMLTagComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
HTMLTagComment();
@ -636,15 +636,15 @@ namespace CppSharp @@ -636,15 +636,15 @@ namespace CppSharp
{
public:
property struct ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute* NativePtr;
property class ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute* NativePtr;
property ::System::IntPtr __Instance
{
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
Attribute(struct ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute* native);
Attribute(struct ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute* native, bool ownNativeInstance);
Attribute(class ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute* native);
Attribute(class ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute* native, bool ownNativeInstance);
static Attribute^ __CreateInstance(::System::IntPtr native);
static Attribute^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Attribute();
@ -670,8 +670,8 @@ namespace CppSharp @@ -670,8 +670,8 @@ namespace CppSharp
bool __ownsNativeInstance;
};
HTMLStartTagComment(struct ::CppSharp::CppParser::AST::HTMLStartTagComment* native);
HTMLStartTagComment(struct ::CppSharp::CppParser::AST::HTMLStartTagComment* native, bool ownNativeInstance);
HTMLStartTagComment(class ::CppSharp::CppParser::AST::HTMLStartTagComment* native);
HTMLStartTagComment(class ::CppSharp::CppParser::AST::HTMLStartTagComment* native, bool ownNativeInstance);
static HTMLStartTagComment^ __CreateInstance(::System::IntPtr native);
static HTMLStartTagComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
HTMLStartTagComment();
@ -708,8 +708,8 @@ namespace CppSharp @@ -708,8 +708,8 @@ namespace CppSharp
{
public:
HTMLEndTagComment(struct ::CppSharp::CppParser::AST::HTMLEndTagComment* native);
HTMLEndTagComment(struct ::CppSharp::CppParser::AST::HTMLEndTagComment* native, bool ownNativeInstance);
HTMLEndTagComment(class ::CppSharp::CppParser::AST::HTMLEndTagComment* native);
HTMLEndTagComment(class ::CppSharp::CppParser::AST::HTMLEndTagComment* native, bool ownNativeInstance);
static HTMLEndTagComment^ __CreateInstance(::System::IntPtr native);
static HTMLEndTagComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
HTMLEndTagComment();
@ -729,8 +729,8 @@ namespace CppSharp @@ -729,8 +729,8 @@ namespace CppSharp
{
public:
TextComment(struct ::CppSharp::CppParser::AST::TextComment* native);
TextComment(struct ::CppSharp::CppParser::AST::TextComment* native, bool ownNativeInstance);
TextComment(class ::CppSharp::CppParser::AST::TextComment* native);
TextComment(class ::CppSharp::CppParser::AST::TextComment* native, bool ownNativeInstance);
static TextComment^ __CreateInstance(::System::IntPtr native);
static TextComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TextComment();
@ -750,15 +750,15 @@ namespace CppSharp @@ -750,15 +750,15 @@ namespace CppSharp
{
public:
property struct ::CppSharp::CppParser::AST::RawComment* NativePtr;
property class ::CppSharp::CppParser::AST::RawComment* NativePtr;
property ::System::IntPtr __Instance
{
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
RawComment(struct ::CppSharp::CppParser::AST::RawComment* native);
RawComment(struct ::CppSharp::CppParser::AST::RawComment* native, bool ownNativeInstance);
RawComment(class ::CppSharp::CppParser::AST::RawComment* native);
RawComment(class ::CppSharp::CppParser::AST::RawComment* native, bool ownNativeInstance);
static RawComment^ __CreateInstance(::System::IntPtr native);
static RawComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
RawComment();

28
src/CppParser/Bindings/CLI/CppParser.cpp

@ -360,12 +360,12 @@ void CppSharp::Parser::CppParserOptions::SupportedStdTypes::set(::System::Collec @@ -360,12 +360,12 @@ void CppSharp::Parser::CppParserOptions::SupportedStdTypes::set(::System::Collec
CppSharp::Parser::AST::ASTContext^ CppSharp::Parser::CppParserOptions::ASTContext::get()
{
return (NativePtr->ASTContext == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ASTContext((struct ::CppSharp::CppParser::AST::ASTContext*)NativePtr->ASTContext);
return (NativePtr->ASTContext == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ASTContext((class ::CppSharp::CppParser::AST::ASTContext*)NativePtr->ASTContext);
}
void CppSharp::Parser::CppParserOptions::ASTContext::set(CppSharp::Parser::AST::ASTContext^ value)
{
((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->ASTContext = (struct ::CppSharp::CppParser::AST::ASTContext*)value->NativePtr;
((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->ASTContext = (class ::CppSharp::CppParser::AST::ASTContext*)value->NativePtr;
}
int CppSharp::Parser::CppParserOptions::ToolSetToUse::get()
@ -880,14 +880,14 @@ CppSharp::Parser::AST::NativeLibrary^ CppSharp::Parser::ParserResult::GetLibrari @@ -880,14 +880,14 @@ CppSharp::Parser::AST::NativeLibrary^ CppSharp::Parser::ParserResult::GetLibrari
{
auto __ret = ((struct ::CppSharp::CppParser::ParserResult*)NativePtr)->getLibraries(i);
if (__ret == nullptr) return nullptr;
return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::NativeLibrary((struct ::CppSharp::CppParser::AST::NativeLibrary*)__ret);
return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::NativeLibrary((class ::CppSharp::CppParser::AST::NativeLibrary*)__ret);
}
void CppSharp::Parser::ParserResult::AddLibraries(CppSharp::Parser::AST::NativeLibrary^ s)
{
if (ReferenceEquals(s, nullptr))
throw gcnew ::System::ArgumentNullException("s", "Cannot be null because it is a C++ reference (&).");
auto __arg0 = (struct ::CppSharp::CppParser::AST::NativeLibrary*)s->NativePtr;
auto __arg0 = (class ::CppSharp::CppParser::AST::NativeLibrary*)s->NativePtr;
((struct ::CppSharp::CppParser::ParserResult*)NativePtr)->addLibraries(__arg0);
}
@ -948,7 +948,7 @@ void CppSharp::Parser::ParserResult::Diagnostics::set(::System::Collections::Gen @@ -948,7 +948,7 @@ void CppSharp::Parser::ParserResult::Diagnostics::set(::System::Collections::Gen
auto __list0 = NativePtr->Libraries;
for(auto _element : __list0)
{
auto _marshalElement = (_element == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::NativeLibrary((struct ::CppSharp::CppParser::AST::NativeLibrary*)_element);
auto _marshalElement = (_element == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::NativeLibrary((class ::CppSharp::CppParser::AST::NativeLibrary*)_element);
_tmp__Libraries->Add(_marshalElement);
}
return _tmp__Libraries;
@ -959,7 +959,7 @@ void CppSharp::Parser::ParserResult::Libraries::set(::System::Collections::Gener @@ -959,7 +959,7 @@ void CppSharp::Parser::ParserResult::Libraries::set(::System::Collections::Gener
auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::NativeLibrary*>();
for each(CppSharp::Parser::AST::NativeLibrary^ _element in value)
{
auto _marshalElement = (struct ::CppSharp::CppParser::AST::NativeLibrary*)_element->NativePtr;
auto _marshalElement = (class ::CppSharp::CppParser::AST::NativeLibrary*)_element->NativePtr;
_tmpvalue.push_back(_marshalElement);
}
((struct ::CppSharp::CppParser::ParserResult*)NativePtr)->Libraries = _tmpvalue;
@ -987,7 +987,7 @@ unsigned int CppSharp::Parser::ParserResult::LibrariesCount::get() @@ -987,7 +987,7 @@ unsigned int CppSharp::Parser::ParserResult::LibrariesCount::get()
return __ret;
}
CppSharp::Parser::ClangParser::ClangParser(struct ::CppSharp::CppParser::ClangParser* native)
CppSharp::Parser::ClangParser::ClangParser(class ::CppSharp::CppParser::ClangParser* native)
: __ownsNativeInstance(false)
{
NativePtr = native;
@ -995,10 +995,10 @@ CppSharp::Parser::ClangParser::ClangParser(struct ::CppSharp::CppParser::ClangPa @@ -995,10 +995,10 @@ CppSharp::Parser::ClangParser::ClangParser(struct ::CppSharp::CppParser::ClangPa
CppSharp::Parser::ClangParser^ CppSharp::Parser::ClangParser::__CreateInstance(::System::IntPtr native)
{
return gcnew ::CppSharp::Parser::ClangParser((struct ::CppSharp::CppParser::ClangParser*) native.ToPointer());
return gcnew ::CppSharp::Parser::ClangParser((class ::CppSharp::CppParser::ClangParser*) native.ToPointer());
}
CppSharp::Parser::ClangParser::ClangParser(struct ::CppSharp::CppParser::ClangParser* native, bool ownNativeInstance)
CppSharp::Parser::ClangParser::ClangParser(class ::CppSharp::CppParser::ClangParser* native, bool ownNativeInstance)
: __ownsNativeInstance(ownNativeInstance)
{
NativePtr = native;
@ -1006,7 +1006,7 @@ CppSharp::Parser::ClangParser::ClangParser(struct ::CppSharp::CppParser::ClangPa @@ -1006,7 +1006,7 @@ CppSharp::Parser::ClangParser::ClangParser(struct ::CppSharp::CppParser::ClangPa
CppSharp::Parser::ClangParser^ CppSharp::Parser::ClangParser::__CreateInstance(::System::IntPtr native, bool __ownsNativeInstance)
{
return gcnew ::CppSharp::Parser::ClangParser((struct ::CppSharp::CppParser::ClangParser*) native.ToPointer(), __ownsNativeInstance);
return gcnew ::CppSharp::Parser::ClangParser((class ::CppSharp::CppParser::ClangParser*) native.ToPointer(), __ownsNativeInstance);
}
CppSharp::Parser::ClangParser::~ClangParser()
@ -1033,7 +1033,7 @@ CppSharp::Parser::ParserResult^ CppSharp::Parser::ClangParser::ParseLibrary(CppS @@ -1033,7 +1033,7 @@ CppSharp::Parser::ParserResult^ CppSharp::Parser::ClangParser::ParseLibrary(CppS
CppSharp::Parser::ClangParser::ClangParser()
{
__ownsNativeInstance = true;
NativePtr = new struct ::CppSharp::CppParser::ClangParser();
NativePtr = new class ::CppSharp::CppParser::ClangParser();
}
CppSharp::Parser::ClangParser::ClangParser(CppSharp::Parser::ClangParser^ _0)
@ -1041,8 +1041,8 @@ CppSharp::Parser::ClangParser::ClangParser(CppSharp::Parser::ClangParser^ _0) @@ -1041,8 +1041,8 @@ CppSharp::Parser::ClangParser::ClangParser(CppSharp::Parser::ClangParser^ _0)
__ownsNativeInstance = true;
if (ReferenceEquals(_0, nullptr))
throw gcnew ::System::ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&).");
auto &__arg0 = *(struct ::CppSharp::CppParser::ClangParser*)_0->NativePtr;
NativePtr = new struct ::CppSharp::CppParser::ClangParser(__arg0);
auto &__arg0 = *(class ::CppSharp::CppParser::ClangParser*)_0->NativePtr;
NativePtr = new class ::CppSharp::CppParser::ClangParser(__arg0);
}
::System::IntPtr CppSharp::Parser::ClangParser::__Instance::get()
@ -1052,5 +1052,5 @@ CppSharp::Parser::ClangParser::ClangParser(CppSharp::Parser::ClangParser^ _0) @@ -1052,5 +1052,5 @@ CppSharp::Parser::ClangParser::ClangParser(CppSharp::Parser::ClangParser^ _0)
void CppSharp::Parser::ClangParser::__Instance::set(::System::IntPtr object)
{
NativePtr = (struct ::CppSharp::CppParser::ClangParser*)object.ToPointer();
NativePtr = (class ::CppSharp::CppParser::ClangParser*)object.ToPointer();
}

6
src/CppParser/Bindings/CLI/CppParser.h

@ -485,15 +485,15 @@ namespace CppSharp @@ -485,15 +485,15 @@ namespace CppSharp
{
public:
property struct ::CppSharp::CppParser::ClangParser* NativePtr;
property class ::CppSharp::CppParser::ClangParser* NativePtr;
property ::System::IntPtr __Instance
{
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
ClangParser(struct ::CppSharp::CppParser::ClangParser* native);
ClangParser(struct ::CppSharp::CppParser::ClangParser* native, bool ownNativeInstance);
ClangParser(class ::CppSharp::CppParser::ClangParser* native);
ClangParser(class ::CppSharp::CppParser::ClangParser* native, bool ownNativeInstance);
static ClangParser^ __CreateInstance(::System::IntPtr native);
static ClangParser^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ClangParser();

1782
src/CppParser/Bindings/CLI/Decl.cpp

File diff suppressed because it is too large Load Diff

186
src/CppParser/Bindings/CLI/Decl.h

@ -294,15 +294,15 @@ namespace CppSharp @@ -294,15 +294,15 @@ namespace CppSharp
{
public:
property struct ::CppSharp::CppParser::AST::Declaration* NativePtr;
property class ::CppSharp::CppParser::AST::Declaration* NativePtr;
property ::System::IntPtr __Instance
{
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
Declaration(struct ::CppSharp::CppParser::AST::Declaration* native);
Declaration(struct ::CppSharp::CppParser::AST::Declaration* native, bool ownNativeInstance);
Declaration(class ::CppSharp::CppParser::AST::Declaration* native);
Declaration(class ::CppSharp::CppParser::AST::Declaration* native, bool ownNativeInstance);
static Declaration^ __CreateInstance(::System::IntPtr native);
static Declaration^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Declaration(CppSharp::Parser::AST::DeclarationKind kind);
@ -476,8 +476,8 @@ namespace CppSharp @@ -476,8 +476,8 @@ namespace CppSharp
{
public:
DeclarationContext(struct ::CppSharp::CppParser::AST::DeclarationContext* native);
DeclarationContext(struct ::CppSharp::CppParser::AST::DeclarationContext* native, bool ownNativeInstance);
DeclarationContext(class ::CppSharp::CppParser::AST::DeclarationContext* native);
DeclarationContext(class ::CppSharp::CppParser::AST::DeclarationContext* native, bool ownNativeInstance);
static DeclarationContext^ __CreateInstance(::System::IntPtr native);
static DeclarationContext^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DeclarationContext(CppSharp::Parser::AST::DeclarationKind kind);
@ -652,8 +652,8 @@ namespace CppSharp @@ -652,8 +652,8 @@ namespace CppSharp
{
public:
TypedefNameDecl(struct ::CppSharp::CppParser::AST::TypedefNameDecl* native);
TypedefNameDecl(struct ::CppSharp::CppParser::AST::TypedefNameDecl* native, bool ownNativeInstance);
TypedefNameDecl(class ::CppSharp::CppParser::AST::TypedefNameDecl* native);
TypedefNameDecl(class ::CppSharp::CppParser::AST::TypedefNameDecl* native, bool ownNativeInstance);
static TypedefNameDecl^ __CreateInstance(::System::IntPtr native);
static TypedefNameDecl^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TypedefNameDecl(CppSharp::Parser::AST::DeclarationKind kind);
@ -675,8 +675,8 @@ namespace CppSharp @@ -675,8 +675,8 @@ namespace CppSharp
{
public:
TypedefDecl(struct ::CppSharp::CppParser::AST::TypedefDecl* native);
TypedefDecl(struct ::CppSharp::CppParser::AST::TypedefDecl* native, bool ownNativeInstance);
TypedefDecl(class ::CppSharp::CppParser::AST::TypedefDecl* native);
TypedefDecl(class ::CppSharp::CppParser::AST::TypedefDecl* native, bool ownNativeInstance);
static TypedefDecl^ __CreateInstance(::System::IntPtr native);
static TypedefDecl^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TypedefDecl();
@ -690,8 +690,8 @@ namespace CppSharp @@ -690,8 +690,8 @@ namespace CppSharp
{
public:
TypeAlias(struct ::CppSharp::CppParser::AST::TypeAlias* native);
TypeAlias(struct ::CppSharp::CppParser::AST::TypeAlias* native, bool ownNativeInstance);
TypeAlias(class ::CppSharp::CppParser::AST::TypeAlias* native);
TypeAlias(class ::CppSharp::CppParser::AST::TypeAlias* native, bool ownNativeInstance);
static TypeAlias^ __CreateInstance(::System::IntPtr native);
static TypeAlias^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TypeAlias();
@ -711,8 +711,8 @@ namespace CppSharp @@ -711,8 +711,8 @@ namespace CppSharp
{
public:
Friend(struct ::CppSharp::CppParser::AST::Friend* native);
Friend(struct ::CppSharp::CppParser::AST::Friend* native, bool ownNativeInstance);
Friend(class ::CppSharp::CppParser::AST::Friend* native);
Friend(class ::CppSharp::CppParser::AST::Friend* native, bool ownNativeInstance);
static Friend^ __CreateInstance(::System::IntPtr native);
static Friend^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Friend();
@ -732,15 +732,15 @@ namespace CppSharp @@ -732,15 +732,15 @@ namespace CppSharp
{
public:
property struct ::CppSharp::CppParser::AST::StatementObsolete* NativePtr;
property class ::CppSharp::CppParser::AST::StatementObsolete* NativePtr;
property ::System::IntPtr __Instance
{
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
StatementObsolete(struct ::CppSharp::CppParser::AST::StatementObsolete* native);
StatementObsolete(struct ::CppSharp::CppParser::AST::StatementObsolete* native, bool ownNativeInstance);
StatementObsolete(class ::CppSharp::CppParser::AST::StatementObsolete* native);
StatementObsolete(class ::CppSharp::CppParser::AST::StatementObsolete* native, bool ownNativeInstance);
static StatementObsolete^ __CreateInstance(::System::IntPtr native);
static StatementObsolete^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
StatementObsolete(::System::String^ str, CppSharp::Parser::AST::StatementClassObsolete Class, CppSharp::Parser::AST::Declaration^ decl);
@ -776,8 +776,8 @@ namespace CppSharp @@ -776,8 +776,8 @@ namespace CppSharp
{
public:
ExpressionObsolete(struct ::CppSharp::CppParser::AST::ExpressionObsolete* native);
ExpressionObsolete(struct ::CppSharp::CppParser::AST::ExpressionObsolete* native, bool ownNativeInstance);
ExpressionObsolete(class ::CppSharp::CppParser::AST::ExpressionObsolete* native);
ExpressionObsolete(class ::CppSharp::CppParser::AST::ExpressionObsolete* native, bool ownNativeInstance);
static ExpressionObsolete^ __CreateInstance(::System::IntPtr native);
static ExpressionObsolete^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ExpressionObsolete(::System::String^ str, CppSharp::Parser::AST::StatementClassObsolete Class, CppSharp::Parser::AST::Declaration^ decl);
@ -791,8 +791,8 @@ namespace CppSharp @@ -791,8 +791,8 @@ namespace CppSharp
{
public:
BinaryOperatorObsolete(struct ::CppSharp::CppParser::AST::BinaryOperatorObsolete* native);
BinaryOperatorObsolete(struct ::CppSharp::CppParser::AST::BinaryOperatorObsolete* native, bool ownNativeInstance);
BinaryOperatorObsolete(class ::CppSharp::CppParser::AST::BinaryOperatorObsolete* native);
BinaryOperatorObsolete(class ::CppSharp::CppParser::AST::BinaryOperatorObsolete* native, bool ownNativeInstance);
static BinaryOperatorObsolete^ __CreateInstance(::System::IntPtr native);
static BinaryOperatorObsolete^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
BinaryOperatorObsolete(::System::String^ str, CppSharp::Parser::AST::ExpressionObsolete^ lhs, CppSharp::Parser::AST::ExpressionObsolete^ rhs, ::System::String^ opcodeStr);
@ -824,8 +824,8 @@ namespace CppSharp @@ -824,8 +824,8 @@ namespace CppSharp
{
public:
CallExprObsolete(struct ::CppSharp::CppParser::AST::CallExprObsolete* native);
CallExprObsolete(struct ::CppSharp::CppParser::AST::CallExprObsolete* native, bool ownNativeInstance);
CallExprObsolete(class ::CppSharp::CppParser::AST::CallExprObsolete* native);
CallExprObsolete(class ::CppSharp::CppParser::AST::CallExprObsolete* native, bool ownNativeInstance);
static CallExprObsolete^ __CreateInstance(::System::IntPtr native);
static CallExprObsolete^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CallExprObsolete(::System::String^ str, CppSharp::Parser::AST::Declaration^ decl);
@ -856,8 +856,8 @@ namespace CppSharp @@ -856,8 +856,8 @@ namespace CppSharp
{
public:
CXXConstructExprObsolete(struct ::CppSharp::CppParser::AST::CXXConstructExprObsolete* native);
CXXConstructExprObsolete(struct ::CppSharp::CppParser::AST::CXXConstructExprObsolete* native, bool ownNativeInstance);
CXXConstructExprObsolete(class ::CppSharp::CppParser::AST::CXXConstructExprObsolete* native);
CXXConstructExprObsolete(class ::CppSharp::CppParser::AST::CXXConstructExprObsolete* native, bool ownNativeInstance);
static CXXConstructExprObsolete^ __CreateInstance(::System::IntPtr native);
static CXXConstructExprObsolete^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CXXConstructExprObsolete(::System::String^ str, CppSharp::Parser::AST::Declaration^ decl);
@ -888,8 +888,8 @@ namespace CppSharp @@ -888,8 +888,8 @@ namespace CppSharp
{
public:
Parameter(struct ::CppSharp::CppParser::AST::Parameter* native);
Parameter(struct ::CppSharp::CppParser::AST::Parameter* native, bool ownNativeInstance);
Parameter(class ::CppSharp::CppParser::AST::Parameter* native);
Parameter(class ::CppSharp::CppParser::AST::Parameter* native, bool ownNativeInstance);
static Parameter^ __CreateInstance(::System::IntPtr native);
static Parameter^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Parameter();
@ -939,8 +939,8 @@ namespace CppSharp @@ -939,8 +939,8 @@ namespace CppSharp
{
public:
Function(struct ::CppSharp::CppParser::AST::Function* native);
Function(struct ::CppSharp::CppParser::AST::Function* native, bool ownNativeInstance);
Function(class ::CppSharp::CppParser::AST::Function* native);
Function(class ::CppSharp::CppParser::AST::Function* native, bool ownNativeInstance);
static Function^ __CreateInstance(::System::IntPtr native);
static Function^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Function();
@ -1085,8 +1085,8 @@ namespace CppSharp @@ -1085,8 +1085,8 @@ namespace CppSharp
{
public:
Method(struct ::CppSharp::CppParser::AST::Method* native);
Method(struct ::CppSharp::CppParser::AST::Method* native, bool ownNativeInstance);
Method(class ::CppSharp::CppParser::AST::Method* native);
Method(class ::CppSharp::CppParser::AST::Method* native, bool ownNativeInstance);
static Method^ __CreateInstance(::System::IntPtr native);
static Method^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Method();
@ -1189,8 +1189,8 @@ namespace CppSharp @@ -1189,8 +1189,8 @@ namespace CppSharp
{
public:
Item(struct ::CppSharp::CppParser::AST::Enumeration::Item* native);
Item(struct ::CppSharp::CppParser::AST::Enumeration::Item* native, bool ownNativeInstance);
Item(class ::CppSharp::CppParser::AST::Enumeration::Item* native);
Item(class ::CppSharp::CppParser::AST::Enumeration::Item* native, bool ownNativeInstance);
static Item^ __CreateInstance(::System::IntPtr native);
static Item^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Item();
@ -1212,8 +1212,8 @@ namespace CppSharp @@ -1212,8 +1212,8 @@ namespace CppSharp
}
};
Enumeration(struct ::CppSharp::CppParser::AST::Enumeration* native);
Enumeration(struct ::CppSharp::CppParser::AST::Enumeration* native, bool ownNativeInstance);
Enumeration(class ::CppSharp::CppParser::AST::Enumeration* native);
Enumeration(class ::CppSharp::CppParser::AST::Enumeration* native, bool ownNativeInstance);
static Enumeration^ __CreateInstance(::System::IntPtr native);
static Enumeration^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Enumeration();
@ -1264,8 +1264,8 @@ namespace CppSharp @@ -1264,8 +1264,8 @@ namespace CppSharp
{
public:
Variable(struct ::CppSharp::CppParser::AST::Variable* native);
Variable(struct ::CppSharp::CppParser::AST::Variable* native, bool ownNativeInstance);
Variable(class ::CppSharp::CppParser::AST::Variable* native);
Variable(class ::CppSharp::CppParser::AST::Variable* native, bool ownNativeInstance);
static Variable^ __CreateInstance(::System::IntPtr native);
static Variable^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Variable();
@ -1353,8 +1353,8 @@ namespace CppSharp @@ -1353,8 +1353,8 @@ namespace CppSharp
{
public:
Field(struct ::CppSharp::CppParser::AST::Field* native);
Field(struct ::CppSharp::CppParser::AST::Field* native, bool ownNativeInstance);
Field(class ::CppSharp::CppParser::AST::Field* native);
Field(class ::CppSharp::CppParser::AST::Field* native, bool ownNativeInstance);
static Field^ __CreateInstance(::System::IntPtr native);
static Field^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Field();
@ -1392,8 +1392,8 @@ namespace CppSharp @@ -1392,8 +1392,8 @@ namespace CppSharp
{
public:
AccessSpecifierDecl(struct ::CppSharp::CppParser::AST::AccessSpecifierDecl* native);
AccessSpecifierDecl(struct ::CppSharp::CppParser::AST::AccessSpecifierDecl* native, bool ownNativeInstance);
AccessSpecifierDecl(class ::CppSharp::CppParser::AST::AccessSpecifierDecl* native);
AccessSpecifierDecl(class ::CppSharp::CppParser::AST::AccessSpecifierDecl* native, bool ownNativeInstance);
static AccessSpecifierDecl^ __CreateInstance(::System::IntPtr native);
static AccessSpecifierDecl^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
AccessSpecifierDecl();
@ -1544,15 +1544,15 @@ namespace CppSharp @@ -1544,15 +1544,15 @@ namespace CppSharp
{
public:
property struct ::CppSharp::CppParser::AST::LayoutField* NativePtr;
property class ::CppSharp::CppParser::AST::LayoutField* NativePtr;
property ::System::IntPtr __Instance
{
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
LayoutField(struct ::CppSharp::CppParser::AST::LayoutField* native);
LayoutField(struct ::CppSharp::CppParser::AST::LayoutField* native, bool ownNativeInstance);
LayoutField(class ::CppSharp::CppParser::AST::LayoutField* native);
LayoutField(class ::CppSharp::CppParser::AST::LayoutField* native, bool ownNativeInstance);
static LayoutField^ __CreateInstance(::System::IntPtr native);
static LayoutField^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
LayoutField();
@ -1594,15 +1594,15 @@ namespace CppSharp @@ -1594,15 +1594,15 @@ namespace CppSharp
{
public:
property struct ::CppSharp::CppParser::AST::LayoutBase* NativePtr;
property class ::CppSharp::CppParser::AST::LayoutBase* NativePtr;
property ::System::IntPtr __Instance
{
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
LayoutBase(struct ::CppSharp::CppParser::AST::LayoutBase* native);
LayoutBase(struct ::CppSharp::CppParser::AST::LayoutBase* native, bool ownNativeInstance);
LayoutBase(class ::CppSharp::CppParser::AST::LayoutBase* native);
LayoutBase(class ::CppSharp::CppParser::AST::LayoutBase* native, bool ownNativeInstance);
static LayoutBase^ __CreateInstance(::System::IntPtr native);
static LayoutBase^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
LayoutBase();
@ -1757,8 +1757,8 @@ namespace CppSharp @@ -1757,8 +1757,8 @@ namespace CppSharp
{
public:
Class(struct ::CppSharp::CppParser::AST::Class* native);
Class(struct ::CppSharp::CppParser::AST::Class* native, bool ownNativeInstance);
Class(class ::CppSharp::CppParser::AST::Class* native);
Class(class ::CppSharp::CppParser::AST::Class* native, bool ownNativeInstance);
static Class^ __CreateInstance(::System::IntPtr native);
static Class^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Class();
@ -1912,8 +1912,8 @@ namespace CppSharp @@ -1912,8 +1912,8 @@ namespace CppSharp
{
public:
Template(struct ::CppSharp::CppParser::AST::Template* native);
Template(struct ::CppSharp::CppParser::AST::Template* native, bool ownNativeInstance);
Template(class ::CppSharp::CppParser::AST::Template* native);
Template(class ::CppSharp::CppParser::AST::Template* native, bool ownNativeInstance);
static Template^ __CreateInstance(::System::IntPtr native);
static Template^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Template(CppSharp::Parser::AST::DeclarationKind kind);
@ -1954,8 +1954,8 @@ namespace CppSharp @@ -1954,8 +1954,8 @@ namespace CppSharp
{
public:
TypeAliasTemplate(struct ::CppSharp::CppParser::AST::TypeAliasTemplate* native);
TypeAliasTemplate(struct ::CppSharp::CppParser::AST::TypeAliasTemplate* native, bool ownNativeInstance);
TypeAliasTemplate(class ::CppSharp::CppParser::AST::TypeAliasTemplate* native);
TypeAliasTemplate(class ::CppSharp::CppParser::AST::TypeAliasTemplate* native, bool ownNativeInstance);
static TypeAliasTemplate^ __CreateInstance(::System::IntPtr native);
static TypeAliasTemplate^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TypeAliasTemplate();
@ -1969,8 +1969,8 @@ namespace CppSharp @@ -1969,8 +1969,8 @@ namespace CppSharp
{
public:
TemplateParameter(struct ::CppSharp::CppParser::AST::TemplateParameter* native);
TemplateParameter(struct ::CppSharp::CppParser::AST::TemplateParameter* native, bool ownNativeInstance);
TemplateParameter(class ::CppSharp::CppParser::AST::TemplateParameter* native);
TemplateParameter(class ::CppSharp::CppParser::AST::TemplateParameter* native, bool ownNativeInstance);
static TemplateParameter^ __CreateInstance(::System::IntPtr native);
static TemplateParameter^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TemplateParameter(CppSharp::Parser::AST::DeclarationKind kind);
@ -2004,8 +2004,8 @@ namespace CppSharp @@ -2004,8 +2004,8 @@ namespace CppSharp
{
public:
TemplateTemplateParameter(struct ::CppSharp::CppParser::AST::TemplateTemplateParameter* native);
TemplateTemplateParameter(struct ::CppSharp::CppParser::AST::TemplateTemplateParameter* native, bool ownNativeInstance);
TemplateTemplateParameter(class ::CppSharp::CppParser::AST::TemplateTemplateParameter* native);
TemplateTemplateParameter(class ::CppSharp::CppParser::AST::TemplateTemplateParameter* native, bool ownNativeInstance);
static TemplateTemplateParameter^ __CreateInstance(::System::IntPtr native);
static TemplateTemplateParameter^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TemplateTemplateParameter();
@ -2037,8 +2037,8 @@ namespace CppSharp @@ -2037,8 +2037,8 @@ namespace CppSharp
{
public:
TypeTemplateParameter(struct ::CppSharp::CppParser::AST::TypeTemplateParameter* native);
TypeTemplateParameter(struct ::CppSharp::CppParser::AST::TypeTemplateParameter* native, bool ownNativeInstance);
TypeTemplateParameter(class ::CppSharp::CppParser::AST::TypeTemplateParameter* native);
TypeTemplateParameter(class ::CppSharp::CppParser::AST::TypeTemplateParameter* native, bool ownNativeInstance);
static TypeTemplateParameter^ __CreateInstance(::System::IntPtr native);
static TypeTemplateParameter^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TypeTemplateParameter();
@ -2058,8 +2058,8 @@ namespace CppSharp @@ -2058,8 +2058,8 @@ namespace CppSharp
{
public:
NonTypeTemplateParameter(struct ::CppSharp::CppParser::AST::NonTypeTemplateParameter* native);
NonTypeTemplateParameter(struct ::CppSharp::CppParser::AST::NonTypeTemplateParameter* native, bool ownNativeInstance);
NonTypeTemplateParameter(class ::CppSharp::CppParser::AST::NonTypeTemplateParameter* native);
NonTypeTemplateParameter(class ::CppSharp::CppParser::AST::NonTypeTemplateParameter* native, bool ownNativeInstance);
static NonTypeTemplateParameter^ __CreateInstance(::System::IntPtr native);
static NonTypeTemplateParameter^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
NonTypeTemplateParameter();
@ -2103,8 +2103,8 @@ namespace CppSharp @@ -2103,8 +2103,8 @@ namespace CppSharp
{
public:
ClassTemplate(struct ::CppSharp::CppParser::AST::ClassTemplate* native);
ClassTemplate(struct ::CppSharp::CppParser::AST::ClassTemplate* native, bool ownNativeInstance);
ClassTemplate(class ::CppSharp::CppParser::AST::ClassTemplate* native);
ClassTemplate(class ::CppSharp::CppParser::AST::ClassTemplate* native, bool ownNativeInstance);
static ClassTemplate^ __CreateInstance(::System::IntPtr native);
static ClassTemplate^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ClassTemplate();
@ -2139,8 +2139,8 @@ namespace CppSharp @@ -2139,8 +2139,8 @@ namespace CppSharp
{
public:
ClassTemplateSpecialization(struct ::CppSharp::CppParser::AST::ClassTemplateSpecialization* native);
ClassTemplateSpecialization(struct ::CppSharp::CppParser::AST::ClassTemplateSpecialization* native, bool ownNativeInstance);
ClassTemplateSpecialization(class ::CppSharp::CppParser::AST::ClassTemplateSpecialization* native);
ClassTemplateSpecialization(class ::CppSharp::CppParser::AST::ClassTemplateSpecialization* native, bool ownNativeInstance);
static ClassTemplateSpecialization^ __CreateInstance(::System::IntPtr native);
static ClassTemplateSpecialization^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ClassTemplateSpecialization();
@ -2183,8 +2183,8 @@ namespace CppSharp @@ -2183,8 +2183,8 @@ namespace CppSharp
{
public:
ClassTemplatePartialSpecialization(struct ::CppSharp::CppParser::AST::ClassTemplatePartialSpecialization* native);
ClassTemplatePartialSpecialization(struct ::CppSharp::CppParser::AST::ClassTemplatePartialSpecialization* native, bool ownNativeInstance);
ClassTemplatePartialSpecialization(class ::CppSharp::CppParser::AST::ClassTemplatePartialSpecialization* native);
ClassTemplatePartialSpecialization(class ::CppSharp::CppParser::AST::ClassTemplatePartialSpecialization* native, bool ownNativeInstance);
static ClassTemplatePartialSpecialization^ __CreateInstance(::System::IntPtr native);
static ClassTemplatePartialSpecialization^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ClassTemplatePartialSpecialization();
@ -2198,8 +2198,8 @@ namespace CppSharp @@ -2198,8 +2198,8 @@ namespace CppSharp
{
public:
FunctionTemplate(struct ::CppSharp::CppParser::AST::FunctionTemplate* native);
FunctionTemplate(struct ::CppSharp::CppParser::AST::FunctionTemplate* native, bool ownNativeInstance);
FunctionTemplate(class ::CppSharp::CppParser::AST::FunctionTemplate* native);
FunctionTemplate(class ::CppSharp::CppParser::AST::FunctionTemplate* native, bool ownNativeInstance);
static FunctionTemplate^ __CreateInstance(::System::IntPtr native);
static FunctionTemplate^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
FunctionTemplate();
@ -2232,15 +2232,15 @@ namespace CppSharp @@ -2232,15 +2232,15 @@ namespace CppSharp
{
public:
property struct ::CppSharp::CppParser::AST::FunctionTemplateSpecialization* NativePtr;
property class ::CppSharp::CppParser::AST::FunctionTemplateSpecialization* NativePtr;
property ::System::IntPtr __Instance
{
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
FunctionTemplateSpecialization(struct ::CppSharp::CppParser::AST::FunctionTemplateSpecialization* native);
FunctionTemplateSpecialization(struct ::CppSharp::CppParser::AST::FunctionTemplateSpecialization* native, bool ownNativeInstance);
FunctionTemplateSpecialization(class ::CppSharp::CppParser::AST::FunctionTemplateSpecialization* native);
FunctionTemplateSpecialization(class ::CppSharp::CppParser::AST::FunctionTemplateSpecialization* native, bool ownNativeInstance);
static FunctionTemplateSpecialization^ __CreateInstance(::System::IntPtr native);
static FunctionTemplateSpecialization^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
FunctionTemplateSpecialization();
@ -2293,8 +2293,8 @@ namespace CppSharp @@ -2293,8 +2293,8 @@ namespace CppSharp
{
public:
VarTemplate(struct ::CppSharp::CppParser::AST::VarTemplate* native);
VarTemplate(struct ::CppSharp::CppParser::AST::VarTemplate* native, bool ownNativeInstance);
VarTemplate(class ::CppSharp::CppParser::AST::VarTemplate* native);
VarTemplate(class ::CppSharp::CppParser::AST::VarTemplate* native, bool ownNativeInstance);
static VarTemplate^ __CreateInstance(::System::IntPtr native);
static VarTemplate^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
VarTemplate();
@ -2329,8 +2329,8 @@ namespace CppSharp @@ -2329,8 +2329,8 @@ namespace CppSharp
{
public:
VarTemplateSpecialization(struct ::CppSharp::CppParser::AST::VarTemplateSpecialization* native);
VarTemplateSpecialization(struct ::CppSharp::CppParser::AST::VarTemplateSpecialization* native, bool ownNativeInstance);
VarTemplateSpecialization(class ::CppSharp::CppParser::AST::VarTemplateSpecialization* native);
VarTemplateSpecialization(class ::CppSharp::CppParser::AST::VarTemplateSpecialization* native, bool ownNativeInstance);
static VarTemplateSpecialization^ __CreateInstance(::System::IntPtr native);
static VarTemplateSpecialization^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
VarTemplateSpecialization();
@ -2373,8 +2373,8 @@ namespace CppSharp @@ -2373,8 +2373,8 @@ namespace CppSharp
{
public:
VarTemplatePartialSpecialization(struct ::CppSharp::CppParser::AST::VarTemplatePartialSpecialization* native);
VarTemplatePartialSpecialization(struct ::CppSharp::CppParser::AST::VarTemplatePartialSpecialization* native, bool ownNativeInstance);
VarTemplatePartialSpecialization(class ::CppSharp::CppParser::AST::VarTemplatePartialSpecialization* native);
VarTemplatePartialSpecialization(class ::CppSharp::CppParser::AST::VarTemplatePartialSpecialization* native, bool ownNativeInstance);
static VarTemplatePartialSpecialization^ __CreateInstance(::System::IntPtr native);
static VarTemplatePartialSpecialization^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
VarTemplatePartialSpecialization();
@ -2388,8 +2388,8 @@ namespace CppSharp @@ -2388,8 +2388,8 @@ namespace CppSharp
{
public:
UnresolvedUsingTypename(struct ::CppSharp::CppParser::AST::UnresolvedUsingTypename* native);
UnresolvedUsingTypename(struct ::CppSharp::CppParser::AST::UnresolvedUsingTypename* native, bool ownNativeInstance);
UnresolvedUsingTypename(class ::CppSharp::CppParser::AST::UnresolvedUsingTypename* native);
UnresolvedUsingTypename(class ::CppSharp::CppParser::AST::UnresolvedUsingTypename* native, bool ownNativeInstance);
static UnresolvedUsingTypename^ __CreateInstance(::System::IntPtr native);
static UnresolvedUsingTypename^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
UnresolvedUsingTypename();
@ -2403,8 +2403,8 @@ namespace CppSharp @@ -2403,8 +2403,8 @@ namespace CppSharp
{
public:
Namespace(struct ::CppSharp::CppParser::AST::Namespace* native);
Namespace(struct ::CppSharp::CppParser::AST::Namespace* native, bool ownNativeInstance);
Namespace(class ::CppSharp::CppParser::AST::Namespace* native);
Namespace(class ::CppSharp::CppParser::AST::Namespace* native, bool ownNativeInstance);
static Namespace^ __CreateInstance(::System::IntPtr native);
static Namespace^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Namespace();
@ -2424,15 +2424,15 @@ namespace CppSharp @@ -2424,15 +2424,15 @@ namespace CppSharp
{
public:
property struct ::CppSharp::CppParser::AST::PreprocessedEntity* NativePtr;
property class ::CppSharp::CppParser::AST::PreprocessedEntity* NativePtr;
property ::System::IntPtr __Instance
{
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
PreprocessedEntity(struct ::CppSharp::CppParser::AST::PreprocessedEntity* native);
PreprocessedEntity(struct ::CppSharp::CppParser::AST::PreprocessedEntity* native, bool ownNativeInstance);
PreprocessedEntity(class ::CppSharp::CppParser::AST::PreprocessedEntity* native);
PreprocessedEntity(class ::CppSharp::CppParser::AST::PreprocessedEntity* native, bool ownNativeInstance);
static PreprocessedEntity^ __CreateInstance(::System::IntPtr native);
static PreprocessedEntity^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
PreprocessedEntity();
@ -2468,8 +2468,8 @@ namespace CppSharp @@ -2468,8 +2468,8 @@ namespace CppSharp
{
public:
MacroDefinition(struct ::CppSharp::CppParser::AST::MacroDefinition* native);
MacroDefinition(struct ::CppSharp::CppParser::AST::MacroDefinition* native, bool ownNativeInstance);
MacroDefinition(class ::CppSharp::CppParser::AST::MacroDefinition* native);
MacroDefinition(class ::CppSharp::CppParser::AST::MacroDefinition* native, bool ownNativeInstance);
static MacroDefinition^ __CreateInstance(::System::IntPtr native);
static MacroDefinition^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
MacroDefinition();
@ -2507,8 +2507,8 @@ namespace CppSharp @@ -2507,8 +2507,8 @@ namespace CppSharp
{
public:
MacroExpansion(struct ::CppSharp::CppParser::AST::MacroExpansion* native);
MacroExpansion(struct ::CppSharp::CppParser::AST::MacroExpansion* native, bool ownNativeInstance);
MacroExpansion(class ::CppSharp::CppParser::AST::MacroExpansion* native);
MacroExpansion(class ::CppSharp::CppParser::AST::MacroExpansion* native, bool ownNativeInstance);
static MacroExpansion^ __CreateInstance(::System::IntPtr native);
static MacroExpansion^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
MacroExpansion();
@ -2540,8 +2540,8 @@ namespace CppSharp @@ -2540,8 +2540,8 @@ namespace CppSharp
{
public:
TranslationUnit(struct ::CppSharp::CppParser::AST::TranslationUnit* native);
TranslationUnit(struct ::CppSharp::CppParser::AST::TranslationUnit* native, bool ownNativeInstance);
TranslationUnit(class ::CppSharp::CppParser::AST::TranslationUnit* native);
TranslationUnit(class ::CppSharp::CppParser::AST::TranslationUnit* native, bool ownNativeInstance);
static TranslationUnit^ __CreateInstance(::System::IntPtr native);
static TranslationUnit^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TranslationUnit();
@ -2584,15 +2584,15 @@ namespace CppSharp @@ -2584,15 +2584,15 @@ namespace CppSharp
{
public:
property struct ::CppSharp::CppParser::AST::ASTContext* NativePtr;
property class ::CppSharp::CppParser::AST::ASTContext* NativePtr;
property ::System::IntPtr __Instance
{
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
ASTContext(struct ::CppSharp::CppParser::AST::ASTContext* native);
ASTContext(struct ::CppSharp::CppParser::AST::ASTContext* native, bool ownNativeInstance);
ASTContext(class ::CppSharp::CppParser::AST::ASTContext* native);
ASTContext(class ::CppSharp::CppParser::AST::ASTContext* native, bool ownNativeInstance);
static ASTContext^ __CreateInstance(::System::IntPtr native);
static ASTContext^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ASTContext();

3468
src/CppParser/Bindings/CLI/Expr.cpp

File diff suppressed because it is too large Load Diff

448
src/CppParser/Bindings/CLI/Expr.h

File diff suppressed because it is too large Load Diff

1220
src/CppParser/Bindings/CLI/Stmt.cpp

File diff suppressed because it is too large Load Diff

152
src/CppParser/Bindings/CLI/Stmt.h

@ -198,15 +198,15 @@ namespace CppSharp @@ -198,15 +198,15 @@ namespace CppSharp
{
public:
property struct ::CppSharp::CppParser::AST::Stmt* NativePtr;
property class ::CppSharp::CppParser::AST::Stmt* NativePtr;
property ::System::IntPtr __Instance
{
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
Stmt(struct ::CppSharp::CppParser::AST::Stmt* native);
Stmt(struct ::CppSharp::CppParser::AST::Stmt* native, bool ownNativeInstance);
Stmt(class ::CppSharp::CppParser::AST::Stmt* native);
Stmt(class ::CppSharp::CppParser::AST::Stmt* native, bool ownNativeInstance);
static Stmt^ __CreateInstance(::System::IntPtr native);
static Stmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Stmt();
@ -252,8 +252,8 @@ namespace CppSharp @@ -252,8 +252,8 @@ namespace CppSharp
{
public:
DeclStmt(struct ::CppSharp::CppParser::AST::DeclStmt* native);
DeclStmt(struct ::CppSharp::CppParser::AST::DeclStmt* native, bool ownNativeInstance);
DeclStmt(class ::CppSharp::CppParser::AST::DeclStmt* native);
DeclStmt(class ::CppSharp::CppParser::AST::DeclStmt* native, bool ownNativeInstance);
static DeclStmt^ __CreateInstance(::System::IntPtr native);
static DeclStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DeclStmt();
@ -296,8 +296,8 @@ namespace CppSharp @@ -296,8 +296,8 @@ namespace CppSharp
{
public:
NullStmt(struct ::CppSharp::CppParser::AST::NullStmt* native);
NullStmt(struct ::CppSharp::CppParser::AST::NullStmt* native, bool ownNativeInstance);
NullStmt(class ::CppSharp::CppParser::AST::NullStmt* native);
NullStmt(class ::CppSharp::CppParser::AST::NullStmt* native, bool ownNativeInstance);
static NullStmt^ __CreateInstance(::System::IntPtr native);
static NullStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
NullStmt();
@ -323,8 +323,8 @@ namespace CppSharp @@ -323,8 +323,8 @@ namespace CppSharp
{
public:
CompoundStmt(struct ::CppSharp::CppParser::AST::CompoundStmt* native);
CompoundStmt(struct ::CppSharp::CppParser::AST::CompoundStmt* native, bool ownNativeInstance);
CompoundStmt(class ::CppSharp::CppParser::AST::CompoundStmt* native);
CompoundStmt(class ::CppSharp::CppParser::AST::CompoundStmt* native, bool ownNativeInstance);
static CompoundStmt^ __CreateInstance(::System::IntPtr native);
static CompoundStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CompoundStmt();
@ -391,8 +391,8 @@ namespace CppSharp @@ -391,8 +391,8 @@ namespace CppSharp
{
public:
SwitchCase(struct ::CppSharp::CppParser::AST::SwitchCase* native);
SwitchCase(struct ::CppSharp::CppParser::AST::SwitchCase* native, bool ownNativeInstance);
SwitchCase(class ::CppSharp::CppParser::AST::SwitchCase* native);
SwitchCase(class ::CppSharp::CppParser::AST::SwitchCase* native, bool ownNativeInstance);
static SwitchCase^ __CreateInstance(::System::IntPtr native);
static SwitchCase^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SwitchCase();
@ -428,8 +428,8 @@ namespace CppSharp @@ -428,8 +428,8 @@ namespace CppSharp
{
public:
CaseStmt(struct ::CppSharp::CppParser::AST::CaseStmt* native);
CaseStmt(struct ::CppSharp::CppParser::AST::CaseStmt* native, bool ownNativeInstance);
CaseStmt(class ::CppSharp::CppParser::AST::CaseStmt* native);
CaseStmt(class ::CppSharp::CppParser::AST::CaseStmt* native, bool ownNativeInstance);
static CaseStmt^ __CreateInstance(::System::IntPtr native);
static CaseStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CaseStmt();
@ -473,8 +473,8 @@ namespace CppSharp @@ -473,8 +473,8 @@ namespace CppSharp
{
public:
DefaultStmt(struct ::CppSharp::CppParser::AST::DefaultStmt* native);
DefaultStmt(struct ::CppSharp::CppParser::AST::DefaultStmt* native, bool ownNativeInstance);
DefaultStmt(class ::CppSharp::CppParser::AST::DefaultStmt* native);
DefaultStmt(class ::CppSharp::CppParser::AST::DefaultStmt* native, bool ownNativeInstance);
static DefaultStmt^ __CreateInstance(::System::IntPtr native);
static DefaultStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DefaultStmt();
@ -494,8 +494,8 @@ namespace CppSharp @@ -494,8 +494,8 @@ namespace CppSharp
{
public:
LabelStmt(struct ::CppSharp::CppParser::AST::LabelStmt* native);
LabelStmt(struct ::CppSharp::CppParser::AST::LabelStmt* native, bool ownNativeInstance);
LabelStmt(class ::CppSharp::CppParser::AST::LabelStmt* native);
LabelStmt(class ::CppSharp::CppParser::AST::LabelStmt* native, bool ownNativeInstance);
static LabelStmt^ __CreateInstance(::System::IntPtr native);
static LabelStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
LabelStmt();
@ -527,8 +527,8 @@ namespace CppSharp @@ -527,8 +527,8 @@ namespace CppSharp
{
public:
AttributedStmt(struct ::CppSharp::CppParser::AST::AttributedStmt* native);
AttributedStmt(struct ::CppSharp::CppParser::AST::AttributedStmt* native, bool ownNativeInstance);
AttributedStmt(class ::CppSharp::CppParser::AST::AttributedStmt* native);
AttributedStmt(class ::CppSharp::CppParser::AST::AttributedStmt* native, bool ownNativeInstance);
static AttributedStmt^ __CreateInstance(::System::IntPtr native);
static AttributedStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
AttributedStmt();
@ -554,8 +554,8 @@ namespace CppSharp @@ -554,8 +554,8 @@ namespace CppSharp
{
public:
IfStmt(struct ::CppSharp::CppParser::AST::IfStmt* native);
IfStmt(struct ::CppSharp::CppParser::AST::IfStmt* native, bool ownNativeInstance);
IfStmt(class ::CppSharp::CppParser::AST::IfStmt* native);
IfStmt(class ::CppSharp::CppParser::AST::IfStmt* native, bool ownNativeInstance);
static IfStmt^ __CreateInstance(::System::IntPtr native);
static IfStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
IfStmt();
@ -641,8 +641,8 @@ namespace CppSharp @@ -641,8 +641,8 @@ namespace CppSharp
{
public:
SwitchStmt(struct ::CppSharp::CppParser::AST::SwitchStmt* native);
SwitchStmt(struct ::CppSharp::CppParser::AST::SwitchStmt* native, bool ownNativeInstance);
SwitchStmt(class ::CppSharp::CppParser::AST::SwitchStmt* native);
SwitchStmt(class ::CppSharp::CppParser::AST::SwitchStmt* native, bool ownNativeInstance);
static SwitchStmt^ __CreateInstance(::System::IntPtr native);
static SwitchStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SwitchStmt();
@ -704,8 +704,8 @@ namespace CppSharp @@ -704,8 +704,8 @@ namespace CppSharp
{
public:
WhileStmt(struct ::CppSharp::CppParser::AST::WhileStmt* native);
WhileStmt(struct ::CppSharp::CppParser::AST::WhileStmt* native, bool ownNativeInstance);
WhileStmt(class ::CppSharp::CppParser::AST::WhileStmt* native);
WhileStmt(class ::CppSharp::CppParser::AST::WhileStmt* native, bool ownNativeInstance);
static WhileStmt^ __CreateInstance(::System::IntPtr native);
static WhileStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
WhileStmt();
@ -749,8 +749,8 @@ namespace CppSharp @@ -749,8 +749,8 @@ namespace CppSharp
{
public:
DoStmt(struct ::CppSharp::CppParser::AST::DoStmt* native);
DoStmt(struct ::CppSharp::CppParser::AST::DoStmt* native, bool ownNativeInstance);
DoStmt(class ::CppSharp::CppParser::AST::DoStmt* native);
DoStmt(class ::CppSharp::CppParser::AST::DoStmt* native, bool ownNativeInstance);
static DoStmt^ __CreateInstance(::System::IntPtr native);
static DoStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DoStmt();
@ -794,8 +794,8 @@ namespace CppSharp @@ -794,8 +794,8 @@ namespace CppSharp
{
public:
ForStmt(struct ::CppSharp::CppParser::AST::ForStmt* native);
ForStmt(struct ::CppSharp::CppParser::AST::ForStmt* native, bool ownNativeInstance);
ForStmt(class ::CppSharp::CppParser::AST::ForStmt* native);
ForStmt(class ::CppSharp::CppParser::AST::ForStmt* native, bool ownNativeInstance);
static ForStmt^ __CreateInstance(::System::IntPtr native);
static ForStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ForStmt();
@ -857,8 +857,8 @@ namespace CppSharp @@ -857,8 +857,8 @@ namespace CppSharp
{
public:
GotoStmt(struct ::CppSharp::CppParser::AST::GotoStmt* native);
GotoStmt(struct ::CppSharp::CppParser::AST::GotoStmt* native, bool ownNativeInstance);
GotoStmt(class ::CppSharp::CppParser::AST::GotoStmt* native);
GotoStmt(class ::CppSharp::CppParser::AST::GotoStmt* native, bool ownNativeInstance);
static GotoStmt^ __CreateInstance(::System::IntPtr native);
static GotoStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
GotoStmt();
@ -884,8 +884,8 @@ namespace CppSharp @@ -884,8 +884,8 @@ namespace CppSharp
{
public:
IndirectGotoStmt(struct ::CppSharp::CppParser::AST::IndirectGotoStmt* native);
IndirectGotoStmt(struct ::CppSharp::CppParser::AST::IndirectGotoStmt* native, bool ownNativeInstance);
IndirectGotoStmt(class ::CppSharp::CppParser::AST::IndirectGotoStmt* native);
IndirectGotoStmt(class ::CppSharp::CppParser::AST::IndirectGotoStmt* native, bool ownNativeInstance);
static IndirectGotoStmt^ __CreateInstance(::System::IntPtr native);
static IndirectGotoStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
IndirectGotoStmt();
@ -917,8 +917,8 @@ namespace CppSharp @@ -917,8 +917,8 @@ namespace CppSharp
{
public:
ContinueStmt(struct ::CppSharp::CppParser::AST::ContinueStmt* native);
ContinueStmt(struct ::CppSharp::CppParser::AST::ContinueStmt* native, bool ownNativeInstance);
ContinueStmt(class ::CppSharp::CppParser::AST::ContinueStmt* native);
ContinueStmt(class ::CppSharp::CppParser::AST::ContinueStmt* native, bool ownNativeInstance);
static ContinueStmt^ __CreateInstance(::System::IntPtr native);
static ContinueStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ContinueStmt();
@ -938,8 +938,8 @@ namespace CppSharp @@ -938,8 +938,8 @@ namespace CppSharp
{
public:
BreakStmt(struct ::CppSharp::CppParser::AST::BreakStmt* native);
BreakStmt(struct ::CppSharp::CppParser::AST::BreakStmt* native, bool ownNativeInstance);
BreakStmt(class ::CppSharp::CppParser::AST::BreakStmt* native);
BreakStmt(class ::CppSharp::CppParser::AST::BreakStmt* native, bool ownNativeInstance);
static BreakStmt^ __CreateInstance(::System::IntPtr native);
static BreakStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
BreakStmt();
@ -959,8 +959,8 @@ namespace CppSharp @@ -959,8 +959,8 @@ namespace CppSharp
{
public:
ReturnStmt(struct ::CppSharp::CppParser::AST::ReturnStmt* native);
ReturnStmt(struct ::CppSharp::CppParser::AST::ReturnStmt* native, bool ownNativeInstance);
ReturnStmt(class ::CppSharp::CppParser::AST::ReturnStmt* native);
ReturnStmt(class ::CppSharp::CppParser::AST::ReturnStmt* native, bool ownNativeInstance);
static ReturnStmt^ __CreateInstance(::System::IntPtr native);
static ReturnStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ReturnStmt();
@ -986,8 +986,8 @@ namespace CppSharp @@ -986,8 +986,8 @@ namespace CppSharp
{
public:
AsmStmt(struct ::CppSharp::CppParser::AST::AsmStmt* native);
AsmStmt(struct ::CppSharp::CppParser::AST::AsmStmt* native, bool ownNativeInstance);
AsmStmt(class ::CppSharp::CppParser::AST::AsmStmt* native);
AsmStmt(class ::CppSharp::CppParser::AST::AsmStmt* native, bool ownNativeInstance);
static AsmStmt^ __CreateInstance(::System::IntPtr native);
static AsmStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
AsmStmt();
@ -1091,15 +1091,15 @@ namespace CppSharp @@ -1091,15 +1091,15 @@ namespace CppSharp
Operand = 1
};
property struct ::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* NativePtr;
property class ::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* NativePtr;
property ::System::IntPtr __Instance
{
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
AsmStringPiece(struct ::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* native);
AsmStringPiece(struct ::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* native, bool ownNativeInstance);
AsmStringPiece(class ::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* native);
AsmStringPiece(class ::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* native, bool ownNativeInstance);
static AsmStringPiece^ __CreateInstance(::System::IntPtr native);
static AsmStringPiece^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
AsmStringPiece();
@ -1143,8 +1143,8 @@ namespace CppSharp @@ -1143,8 +1143,8 @@ namespace CppSharp
bool __ownsNativeInstance;
};
GCCAsmStmt(struct ::CppSharp::CppParser::AST::GCCAsmStmt* native);
GCCAsmStmt(struct ::CppSharp::CppParser::AST::GCCAsmStmt* native, bool ownNativeInstance);
GCCAsmStmt(class ::CppSharp::CppParser::AST::GCCAsmStmt* native);
GCCAsmStmt(class ::CppSharp::CppParser::AST::GCCAsmStmt* native, bool ownNativeInstance);
static GCCAsmStmt^ __CreateInstance(::System::IntPtr native);
static GCCAsmStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
GCCAsmStmt();
@ -1164,8 +1164,8 @@ namespace CppSharp @@ -1164,8 +1164,8 @@ namespace CppSharp
{
public:
MSAsmStmt(struct ::CppSharp::CppParser::AST::MSAsmStmt* native);
MSAsmStmt(struct ::CppSharp::CppParser::AST::MSAsmStmt* native, bool ownNativeInstance);
MSAsmStmt(class ::CppSharp::CppParser::AST::MSAsmStmt* native);
MSAsmStmt(class ::CppSharp::CppParser::AST::MSAsmStmt* native, bool ownNativeInstance);
static MSAsmStmt^ __CreateInstance(::System::IntPtr native);
static MSAsmStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
MSAsmStmt();
@ -1203,8 +1203,8 @@ namespace CppSharp @@ -1203,8 +1203,8 @@ namespace CppSharp
{
public:
SEHExceptStmt(struct ::CppSharp::CppParser::AST::SEHExceptStmt* native);
SEHExceptStmt(struct ::CppSharp::CppParser::AST::SEHExceptStmt* native, bool ownNativeInstance);
SEHExceptStmt(class ::CppSharp::CppParser::AST::SEHExceptStmt* native);
SEHExceptStmt(class ::CppSharp::CppParser::AST::SEHExceptStmt* native, bool ownNativeInstance);
static SEHExceptStmt^ __CreateInstance(::System::IntPtr native);
static SEHExceptStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SEHExceptStmt();
@ -1236,8 +1236,8 @@ namespace CppSharp @@ -1236,8 +1236,8 @@ namespace CppSharp
{
public:
SEHFinallyStmt(struct ::CppSharp::CppParser::AST::SEHFinallyStmt* native);
SEHFinallyStmt(struct ::CppSharp::CppParser::AST::SEHFinallyStmt* native, bool ownNativeInstance);
SEHFinallyStmt(class ::CppSharp::CppParser::AST::SEHFinallyStmt* native);
SEHFinallyStmt(class ::CppSharp::CppParser::AST::SEHFinallyStmt* native, bool ownNativeInstance);
static SEHFinallyStmt^ __CreateInstance(::System::IntPtr native);
static SEHFinallyStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SEHFinallyStmt();
@ -1263,8 +1263,8 @@ namespace CppSharp @@ -1263,8 +1263,8 @@ namespace CppSharp
{
public:
SEHTryStmt(struct ::CppSharp::CppParser::AST::SEHTryStmt* native);
SEHTryStmt(struct ::CppSharp::CppParser::AST::SEHTryStmt* native, bool ownNativeInstance);
SEHTryStmt(class ::CppSharp::CppParser::AST::SEHTryStmt* native);
SEHTryStmt(class ::CppSharp::CppParser::AST::SEHTryStmt* native, bool ownNativeInstance);
static SEHTryStmt^ __CreateInstance(::System::IntPtr native);
static SEHTryStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SEHTryStmt();
@ -1314,8 +1314,8 @@ namespace CppSharp @@ -1314,8 +1314,8 @@ namespace CppSharp
{
public:
SEHLeaveStmt(struct ::CppSharp::CppParser::AST::SEHLeaveStmt* native);
SEHLeaveStmt(struct ::CppSharp::CppParser::AST::SEHLeaveStmt* native, bool ownNativeInstance);
SEHLeaveStmt(class ::CppSharp::CppParser::AST::SEHLeaveStmt* native);
SEHLeaveStmt(class ::CppSharp::CppParser::AST::SEHLeaveStmt* native, bool ownNativeInstance);
static SEHLeaveStmt^ __CreateInstance(::System::IntPtr native);
static SEHLeaveStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SEHLeaveStmt();
@ -1347,15 +1347,15 @@ namespace CppSharp @@ -1347,15 +1347,15 @@ namespace CppSharp
{
public:
property struct ::CppSharp::CppParser::AST::CapturedStmt::Capture* NativePtr;
property class ::CppSharp::CppParser::AST::CapturedStmt::Capture* NativePtr;
property ::System::IntPtr __Instance
{
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
Capture(struct ::CppSharp::CppParser::AST::CapturedStmt::Capture* native);
Capture(struct ::CppSharp::CppParser::AST::CapturedStmt::Capture* native, bool ownNativeInstance);
Capture(class ::CppSharp::CppParser::AST::CapturedStmt::Capture* native);
Capture(class ::CppSharp::CppParser::AST::CapturedStmt::Capture* native, bool ownNativeInstance);
static Capture^ __CreateInstance(::System::IntPtr native);
static Capture^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Capture();
@ -1405,8 +1405,8 @@ namespace CppSharp @@ -1405,8 +1405,8 @@ namespace CppSharp
bool __ownsNativeInstance;
};
CapturedStmt(struct ::CppSharp::CppParser::AST::CapturedStmt* native);
CapturedStmt(struct ::CppSharp::CppParser::AST::CapturedStmt* native, bool ownNativeInstance);
CapturedStmt(class ::CppSharp::CppParser::AST::CapturedStmt* native);
CapturedStmt(class ::CppSharp::CppParser::AST::CapturedStmt* native, bool ownNativeInstance);
static CapturedStmt^ __CreateInstance(::System::IntPtr native);
static CapturedStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CapturedStmt();
@ -1449,8 +1449,8 @@ namespace CppSharp @@ -1449,8 +1449,8 @@ namespace CppSharp
{
public:
CXXCatchStmt(struct ::CppSharp::CppParser::AST::CXXCatchStmt* native);
CXXCatchStmt(struct ::CppSharp::CppParser::AST::CXXCatchStmt* native, bool ownNativeInstance);
CXXCatchStmt(class ::CppSharp::CppParser::AST::CXXCatchStmt* native);
CXXCatchStmt(class ::CppSharp::CppParser::AST::CXXCatchStmt* native, bool ownNativeInstance);
static CXXCatchStmt^ __CreateInstance(::System::IntPtr native);
static CXXCatchStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CXXCatchStmt();
@ -1482,8 +1482,8 @@ namespace CppSharp @@ -1482,8 +1482,8 @@ namespace CppSharp
{
public:
CXXTryStmt(struct ::CppSharp::CppParser::AST::CXXTryStmt* native);
CXXTryStmt(struct ::CppSharp::CppParser::AST::CXXTryStmt* native, bool ownNativeInstance);
CXXTryStmt(class ::CppSharp::CppParser::AST::CXXTryStmt* native);
CXXTryStmt(class ::CppSharp::CppParser::AST::CXXTryStmt* native, bool ownNativeInstance);
static CXXTryStmt^ __CreateInstance(::System::IntPtr native);
static CXXTryStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CXXTryStmt();
@ -1515,8 +1515,8 @@ namespace CppSharp @@ -1515,8 +1515,8 @@ namespace CppSharp
{
public:
CXXForRangeStmt(struct ::CppSharp::CppParser::AST::CXXForRangeStmt* native);
CXXForRangeStmt(struct ::CppSharp::CppParser::AST::CXXForRangeStmt* native, bool ownNativeInstance);
CXXForRangeStmt(class ::CppSharp::CppParser::AST::CXXForRangeStmt* native);
CXXForRangeStmt(class ::CppSharp::CppParser::AST::CXXForRangeStmt* native, bool ownNativeInstance);
static CXXForRangeStmt^ __CreateInstance(::System::IntPtr native);
static CXXForRangeStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CXXForRangeStmt();
@ -1608,8 +1608,8 @@ namespace CppSharp @@ -1608,8 +1608,8 @@ namespace CppSharp
{
public:
MSDependentExistsStmt(struct ::CppSharp::CppParser::AST::MSDependentExistsStmt* native);
MSDependentExistsStmt(struct ::CppSharp::CppParser::AST::MSDependentExistsStmt* native, bool ownNativeInstance);
MSDependentExistsStmt(class ::CppSharp::CppParser::AST::MSDependentExistsStmt* native);
MSDependentExistsStmt(class ::CppSharp::CppParser::AST::MSDependentExistsStmt* native, bool ownNativeInstance);
static MSDependentExistsStmt^ __CreateInstance(::System::IntPtr native);
static MSDependentExistsStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
MSDependentExistsStmt();
@ -1668,15 +1668,15 @@ namespace CppSharp @@ -1668,15 +1668,15 @@ namespace CppSharp
{
public:
property struct ::CppSharp::CppParser::AST::CoroutineBodyStmt::CtorArgs* NativePtr;
property class ::CppSharp::CppParser::AST::CoroutineBodyStmt::CtorArgs* NativePtr;
property ::System::IntPtr __Instance
{
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
CtorArgs(struct ::CppSharp::CppParser::AST::CoroutineBodyStmt::CtorArgs* native);
CtorArgs(struct ::CppSharp::CppParser::AST::CoroutineBodyStmt::CtorArgs* native, bool ownNativeInstance);
CtorArgs(class ::CppSharp::CppParser::AST::CoroutineBodyStmt::CtorArgs* native);
CtorArgs(class ::CppSharp::CppParser::AST::CoroutineBodyStmt::CtorArgs* native, bool ownNativeInstance);
static CtorArgs^ __CreateInstance(::System::IntPtr native);
static CtorArgs^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CtorArgs();
@ -1690,8 +1690,8 @@ namespace CppSharp @@ -1690,8 +1690,8 @@ namespace CppSharp
bool __ownsNativeInstance;
};
CoroutineBodyStmt(struct ::CppSharp::CppParser::AST::CoroutineBodyStmt* native);
CoroutineBodyStmt(struct ::CppSharp::CppParser::AST::CoroutineBodyStmt* native, bool ownNativeInstance);
CoroutineBodyStmt(class ::CppSharp::CppParser::AST::CoroutineBodyStmt* native);
CoroutineBodyStmt(class ::CppSharp::CppParser::AST::CoroutineBodyStmt* native, bool ownNativeInstance);
static CoroutineBodyStmt^ __CreateInstance(::System::IntPtr native);
static CoroutineBodyStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CoroutineBodyStmt();
@ -1790,8 +1790,8 @@ namespace CppSharp @@ -1790,8 +1790,8 @@ namespace CppSharp
Count = 2
};
CoreturnStmt(struct ::CppSharp::CppParser::AST::CoreturnStmt* native);
CoreturnStmt(struct ::CppSharp::CppParser::AST::CoreturnStmt* native, bool ownNativeInstance);
CoreturnStmt(class ::CppSharp::CppParser::AST::CoreturnStmt* native);
CoreturnStmt(class ::CppSharp::CppParser::AST::CoreturnStmt* native, bool ownNativeInstance);
static CoreturnStmt^ __CreateInstance(::System::IntPtr native);
static CoreturnStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CoreturnStmt();

496
src/CppParser/Bindings/CLI/Types.cpp

File diff suppressed because it is too large Load Diff

82
src/CppParser/Bindings/CLI/Types.h

@ -140,15 +140,15 @@ namespace CppSharp @@ -140,15 +140,15 @@ namespace CppSharp
{
public:
property struct ::CppSharp::CppParser::AST::Type* NativePtr;
property class ::CppSharp::CppParser::AST::Type* NativePtr;
property ::System::IntPtr __Instance
{
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
Type(struct ::CppSharp::CppParser::AST::Type* native);
Type(struct ::CppSharp::CppParser::AST::Type* native, bool ownNativeInstance);
Type(class ::CppSharp::CppParser::AST::Type* native);
Type(class ::CppSharp::CppParser::AST::Type* native, bool ownNativeInstance);
static Type^ __CreateInstance(::System::IntPtr native);
static Type^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Type(CppSharp::Parser::AST::TypeKind kind);
@ -262,8 +262,8 @@ namespace CppSharp @@ -262,8 +262,8 @@ namespace CppSharp
{
public:
TagType(struct ::CppSharp::CppParser::AST::TagType* native);
TagType(struct ::CppSharp::CppParser::AST::TagType* native, bool ownNativeInstance);
TagType(class ::CppSharp::CppParser::AST::TagType* native);
TagType(class ::CppSharp::CppParser::AST::TagType* native, bool ownNativeInstance);
static TagType^ __CreateInstance(::System::IntPtr native);
static TagType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TagType();
@ -291,8 +291,8 @@ namespace CppSharp @@ -291,8 +291,8 @@ namespace CppSharp
Incomplete = 3
};
ArrayType(struct ::CppSharp::CppParser::AST::ArrayType* native);
ArrayType(struct ::CppSharp::CppParser::AST::ArrayType* native, bool ownNativeInstance);
ArrayType(class ::CppSharp::CppParser::AST::ArrayType* native);
ArrayType(class ::CppSharp::CppParser::AST::ArrayType* native, bool ownNativeInstance);
static ArrayType^ __CreateInstance(::System::IntPtr native);
static ArrayType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ArrayType();
@ -330,8 +330,8 @@ namespace CppSharp @@ -330,8 +330,8 @@ namespace CppSharp
{
public:
FunctionType(struct ::CppSharp::CppParser::AST::FunctionType* native);
FunctionType(struct ::CppSharp::CppParser::AST::FunctionType* native, bool ownNativeInstance);
FunctionType(class ::CppSharp::CppParser::AST::FunctionType* native);
FunctionType(class ::CppSharp::CppParser::AST::FunctionType* native, bool ownNativeInstance);
static FunctionType^ __CreateInstance(::System::IntPtr native);
static FunctionType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
FunctionType();
@ -388,8 +388,8 @@ namespace CppSharp @@ -388,8 +388,8 @@ namespace CppSharp
RVReference = 3
};
PointerType(struct ::CppSharp::CppParser::AST::PointerType* native);
PointerType(struct ::CppSharp::CppParser::AST::PointerType* native, bool ownNativeInstance);
PointerType(class ::CppSharp::CppParser::AST::PointerType* native);
PointerType(class ::CppSharp::CppParser::AST::PointerType* native, bool ownNativeInstance);
static PointerType^ __CreateInstance(::System::IntPtr native);
static PointerType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
PointerType();
@ -415,8 +415,8 @@ namespace CppSharp @@ -415,8 +415,8 @@ namespace CppSharp
{
public:
MemberPointerType(struct ::CppSharp::CppParser::AST::MemberPointerType* native);
MemberPointerType(struct ::CppSharp::CppParser::AST::MemberPointerType* native, bool ownNativeInstance);
MemberPointerType(class ::CppSharp::CppParser::AST::MemberPointerType* native);
MemberPointerType(class ::CppSharp::CppParser::AST::MemberPointerType* native, bool ownNativeInstance);
static MemberPointerType^ __CreateInstance(::System::IntPtr native);
static MemberPointerType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
MemberPointerType();
@ -436,8 +436,8 @@ namespace CppSharp @@ -436,8 +436,8 @@ namespace CppSharp
{
public:
TypedefType(struct ::CppSharp::CppParser::AST::TypedefType* native);
TypedefType(struct ::CppSharp::CppParser::AST::TypedefType* native, bool ownNativeInstance);
TypedefType(class ::CppSharp::CppParser::AST::TypedefType* native);
TypedefType(class ::CppSharp::CppParser::AST::TypedefType* native, bool ownNativeInstance);
static TypedefType^ __CreateInstance(::System::IntPtr native);
static TypedefType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TypedefType();
@ -457,8 +457,8 @@ namespace CppSharp @@ -457,8 +457,8 @@ namespace CppSharp
{
public:
AttributedType(struct ::CppSharp::CppParser::AST::AttributedType* native);
AttributedType(struct ::CppSharp::CppParser::AST::AttributedType* native, bool ownNativeInstance);
AttributedType(class ::CppSharp::CppParser::AST::AttributedType* native);
AttributedType(class ::CppSharp::CppParser::AST::AttributedType* native, bool ownNativeInstance);
static AttributedType^ __CreateInstance(::System::IntPtr native);
static AttributedType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
AttributedType();
@ -484,8 +484,8 @@ namespace CppSharp @@ -484,8 +484,8 @@ namespace CppSharp
{
public:
DecayedType(struct ::CppSharp::CppParser::AST::DecayedType* native);
DecayedType(struct ::CppSharp::CppParser::AST::DecayedType* native, bool ownNativeInstance);
DecayedType(class ::CppSharp::CppParser::AST::DecayedType* native);
DecayedType(class ::CppSharp::CppParser::AST::DecayedType* native, bool ownNativeInstance);
static DecayedType^ __CreateInstance(::System::IntPtr native);
static DecayedType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DecayedType();
@ -579,8 +579,8 @@ namespace CppSharp @@ -579,8 +579,8 @@ namespace CppSharp
{
public:
TemplateSpecializationType(struct ::CppSharp::CppParser::AST::TemplateSpecializationType* native);
TemplateSpecializationType(struct ::CppSharp::CppParser::AST::TemplateSpecializationType* native, bool ownNativeInstance);
TemplateSpecializationType(class ::CppSharp::CppParser::AST::TemplateSpecializationType* native);
TemplateSpecializationType(class ::CppSharp::CppParser::AST::TemplateSpecializationType* native, bool ownNativeInstance);
static TemplateSpecializationType^ __CreateInstance(::System::IntPtr native);
static TemplateSpecializationType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TemplateSpecializationType();
@ -623,8 +623,8 @@ namespace CppSharp @@ -623,8 +623,8 @@ namespace CppSharp
{
public:
DependentTemplateSpecializationType(struct ::CppSharp::CppParser::AST::DependentTemplateSpecializationType* native);
DependentTemplateSpecializationType(struct ::CppSharp::CppParser::AST::DependentTemplateSpecializationType* native, bool ownNativeInstance);
DependentTemplateSpecializationType(class ::CppSharp::CppParser::AST::DependentTemplateSpecializationType* native);
DependentTemplateSpecializationType(class ::CppSharp::CppParser::AST::DependentTemplateSpecializationType* native, bool ownNativeInstance);
static DependentTemplateSpecializationType^ __CreateInstance(::System::IntPtr native);
static DependentTemplateSpecializationType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DependentTemplateSpecializationType();
@ -661,8 +661,8 @@ namespace CppSharp @@ -661,8 +661,8 @@ namespace CppSharp
{
public:
TemplateParameterType(struct ::CppSharp::CppParser::AST::TemplateParameterType* native);
TemplateParameterType(struct ::CppSharp::CppParser::AST::TemplateParameterType* native, bool ownNativeInstance);
TemplateParameterType(class ::CppSharp::CppParser::AST::TemplateParameterType* native);
TemplateParameterType(class ::CppSharp::CppParser::AST::TemplateParameterType* native, bool ownNativeInstance);
static TemplateParameterType^ __CreateInstance(::System::IntPtr native);
static TemplateParameterType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TemplateParameterType();
@ -700,8 +700,8 @@ namespace CppSharp @@ -700,8 +700,8 @@ namespace CppSharp
{
public:
TemplateParameterSubstitutionType(struct ::CppSharp::CppParser::AST::TemplateParameterSubstitutionType* native);
TemplateParameterSubstitutionType(struct ::CppSharp::CppParser::AST::TemplateParameterSubstitutionType* native, bool ownNativeInstance);
TemplateParameterSubstitutionType(class ::CppSharp::CppParser::AST::TemplateParameterSubstitutionType* native);
TemplateParameterSubstitutionType(class ::CppSharp::CppParser::AST::TemplateParameterSubstitutionType* native, bool ownNativeInstance);
static TemplateParameterSubstitutionType^ __CreateInstance(::System::IntPtr native);
static TemplateParameterSubstitutionType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TemplateParameterSubstitutionType();
@ -727,8 +727,8 @@ namespace CppSharp @@ -727,8 +727,8 @@ namespace CppSharp
{
public:
InjectedClassNameType(struct ::CppSharp::CppParser::AST::InjectedClassNameType* native);
InjectedClassNameType(struct ::CppSharp::CppParser::AST::InjectedClassNameType* native, bool ownNativeInstance);
InjectedClassNameType(class ::CppSharp::CppParser::AST::InjectedClassNameType* native);
InjectedClassNameType(class ::CppSharp::CppParser::AST::InjectedClassNameType* native, bool ownNativeInstance);
static InjectedClassNameType^ __CreateInstance(::System::IntPtr native);
static InjectedClassNameType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
InjectedClassNameType();
@ -754,8 +754,8 @@ namespace CppSharp @@ -754,8 +754,8 @@ namespace CppSharp
{
public:
DependentNameType(struct ::CppSharp::CppParser::AST::DependentNameType* native);
DependentNameType(struct ::CppSharp::CppParser::AST::DependentNameType* native, bool ownNativeInstance);
DependentNameType(class ::CppSharp::CppParser::AST::DependentNameType* native);
DependentNameType(class ::CppSharp::CppParser::AST::DependentNameType* native, bool ownNativeInstance);
static DependentNameType^ __CreateInstance(::System::IntPtr native);
static DependentNameType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DependentNameType();
@ -781,8 +781,8 @@ namespace CppSharp @@ -781,8 +781,8 @@ namespace CppSharp
{
public:
PackExpansionType(struct ::CppSharp::CppParser::AST::PackExpansionType* native);
PackExpansionType(struct ::CppSharp::CppParser::AST::PackExpansionType* native, bool ownNativeInstance);
PackExpansionType(class ::CppSharp::CppParser::AST::PackExpansionType* native);
PackExpansionType(class ::CppSharp::CppParser::AST::PackExpansionType* native, bool ownNativeInstance);
static PackExpansionType^ __CreateInstance(::System::IntPtr native);
static PackExpansionType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
PackExpansionType();
@ -796,8 +796,8 @@ namespace CppSharp @@ -796,8 +796,8 @@ namespace CppSharp
{
public:
UnaryTransformType(struct ::CppSharp::CppParser::AST::UnaryTransformType* native);
UnaryTransformType(struct ::CppSharp::CppParser::AST::UnaryTransformType* native, bool ownNativeInstance);
UnaryTransformType(class ::CppSharp::CppParser::AST::UnaryTransformType* native);
UnaryTransformType(class ::CppSharp::CppParser::AST::UnaryTransformType* native, bool ownNativeInstance);
static UnaryTransformType^ __CreateInstance(::System::IntPtr native);
static UnaryTransformType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
UnaryTransformType();
@ -823,8 +823,8 @@ namespace CppSharp @@ -823,8 +823,8 @@ namespace CppSharp
{
public:
UnresolvedUsingType(struct ::CppSharp::CppParser::AST::UnresolvedUsingType* native);
UnresolvedUsingType(struct ::CppSharp::CppParser::AST::UnresolvedUsingType* native, bool ownNativeInstance);
UnresolvedUsingType(class ::CppSharp::CppParser::AST::UnresolvedUsingType* native);
UnresolvedUsingType(class ::CppSharp::CppParser::AST::UnresolvedUsingType* native, bool ownNativeInstance);
static UnresolvedUsingType^ __CreateInstance(::System::IntPtr native);
static UnresolvedUsingType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
UnresolvedUsingType();
@ -844,8 +844,8 @@ namespace CppSharp @@ -844,8 +844,8 @@ namespace CppSharp
{
public:
VectorType(struct ::CppSharp::CppParser::AST::VectorType* native);
VectorType(struct ::CppSharp::CppParser::AST::VectorType* native, bool ownNativeInstance);
VectorType(class ::CppSharp::CppParser::AST::VectorType* native);
VectorType(class ::CppSharp::CppParser::AST::VectorType* native, bool ownNativeInstance);
static VectorType^ __CreateInstance(::System::IntPtr native);
static VectorType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
VectorType();
@ -871,8 +871,8 @@ namespace CppSharp @@ -871,8 +871,8 @@ namespace CppSharp
{
public:
BuiltinType(struct ::CppSharp::CppParser::AST::BuiltinType* native);
BuiltinType(struct ::CppSharp::CppParser::AST::BuiltinType* native, bool ownNativeInstance);
BuiltinType(class ::CppSharp::CppParser::AST::BuiltinType* native);
BuiltinType(class ::CppSharp::CppParser::AST::BuiltinType* native, bool ownNativeInstance);
static BuiltinType^ __CreateInstance(::System::IntPtr native);
static BuiltinType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
BuiltinType();

6
src/Generator/Generators/C/CppMarshal.cs

@ -272,7 +272,7 @@ namespace CppSharp.Generators.Cpp @@ -272,7 +272,7 @@ namespace CppSharp.Generators.Cpp
Context.Return.Write($"({instance} == nullptr) ? nullptr : {MemoryAllocOperator} ");
Context.Return.Write($"{QualifiedIdentifier(@class)}(");
Context.Return.Write($"({(@class.IsUnion ? "union" : "struct")} ::{@class.QualifiedOriginalName}*)");
Context.Return.Write($"({@class.Tag} ::{@class.QualifiedOriginalName}*)");
Context.Return.Write($"{instance})");
}
@ -588,7 +588,7 @@ namespace CppSharp.Generators.Cpp @@ -588,7 +588,7 @@ namespace CppSharp.Generators.Cpp
&& method.Conversion == MethodConversionKind.FunctionToInstanceMethod
&& Context.ParameterIndex == 0)
{
Context.Return.Write($"({(@class.IsUnion ? "union" : "struct")} ::{@class.QualifiedOriginalName}*)");
Context.Return.Write($"({@class.Tag} ::{@class.QualifiedOriginalName}*)");
Context.Return.Write(Helpers.InstanceIdentifier);
return;
}
@ -596,7 +596,7 @@ namespace CppSharp.Generators.Cpp @@ -596,7 +596,7 @@ namespace CppSharp.Generators.Cpp
var paramType = Context.Parameter.Type.Desugar();
var isPointer = paramType.SkipPointerRefs().IsPointer();
var deref = isPointer ? "->" : ".";
var instance = $"({(@class.IsUnion ? "union" : "struct")} ::{@class.QualifiedOriginalName}*)" +
var instance = $"({@class.Tag} ::{@class.QualifiedOriginalName}*)" +
$"{Context.Parameter.Name}{deref}{Helpers.InstanceIdentifier}";
if (isPointer)

8
src/Generator/Generators/C/CppSources.cs

@ -294,7 +294,7 @@ namespace CppSharp.Generators.Cpp @@ -294,7 +294,7 @@ namespace CppSharp.Generators.Cpp
{
Write($"{QualifiedIdentifier(@class)}::{@class.Name}(");
var nativeType = $"{(@class.IsUnion ? "union" : "struct")} ::{@class.QualifiedOriginalName}*";
var nativeType = $"{@class.Tag} ::{@class.QualifiedOriginalName}*";
//WriteLine($"{nativeType} {ClassCtorInstanceParamIdentifier})");
WriteLine(!withOwnNativeInstanceParam ? $"{nativeType} {ClassCtorInstanceParamIdentifier})" :
$"{nativeType} {ClassCtorInstanceParamIdentifier}, bool ownNativeInstance)");
@ -413,7 +413,7 @@ namespace CppSharp.Generators.Cpp @@ -413,7 +413,7 @@ namespace CppSharp.Generators.Cpp
PushBlock(BlockKind.ConstructorBody, @class);
var @params = GenerateFunctionParamsMarshal(method.Parameters, method);
Write($@"{Helpers.InstanceIdentifier} = new {(@class.IsUnion ? "union" : "struct")} ::{
Write($@"{Helpers.InstanceIdentifier} = new {@class.Tag} ::{
method.Namespace.QualifiedOriginalName}(");
GenerateFunctionParams(@params);
WriteLine(");");
@ -493,7 +493,7 @@ namespace CppSharp.Generators.Cpp @@ -493,7 +493,7 @@ namespace CppSharp.Generators.Cpp
var field = property?.Field;
if (field != null)
{
Write($"(({(@class.IsUnion ? "union" : "struct")} ::{@class.QualifiedOriginalName}*){Helpers.InstanceIdentifier})->");
Write($"(({@class.Tag} ::{@class.QualifiedOriginalName}*){Helpers.InstanceIdentifier})->");
Write($"{field.OriginalName}");
var isGetter = property.GetMethod == method;
@ -511,7 +511,7 @@ namespace CppSharp.Generators.Cpp @@ -511,7 +511,7 @@ namespace CppSharp.Generators.Cpp
else
{
if (IsNativeMethod(function))
Write($"(({(@class.IsUnion ? "union" : "struct")} ::{@class.QualifiedOriginalName}*){Helpers.InstanceIdentifier})->");
Write($"(({@class.Tag} ::{@class.QualifiedOriginalName}*){Helpers.InstanceIdentifier})->");
Write($"{base.GetMethodIdentifier(function, TypePrinterContextKind.Native)}(");
}

3
src/Generator/Generators/CLI/CLIHeaders.cs

@ -4,7 +4,6 @@ using System.Linq; @@ -4,7 +4,6 @@ using System.Linq;
using CppSharp.AST;
using CppSharp.AST.Extensions;
using CppSharp.Generators.C;
using CppSharp.Generators.CSharp;
namespace CppSharp.Generators.CLI
{
@ -262,7 +261,7 @@ namespace CppSharp.Generators.CLI @@ -262,7 +261,7 @@ namespace CppSharp.Generators.CLI
GenerateDeclContext(@class);
Unindent();
string nativeType = $"{(@class.IsUnion ? "union" : "struct")} ::{@class.QualifiedOriginalName}*";
string nativeType = $"{@class.Tag} ::{@class.QualifiedOriginalName}*";
if (CLIGenerator.ShouldGenerateClassNativeField(@class))
GenerateClassNativeField(nativeType);

8
src/Generator/Generators/CLI/CLIMarshal.cs

@ -280,7 +280,7 @@ namespace CppSharp.Generators.CLI @@ -280,7 +280,7 @@ namespace CppSharp.Generators.CLI
if (@class.IsRefType && needsCopy)
{
var name = Generator.GeneratedIdentifier(Context.ReturnVarName);
Context.Before.WriteLine($"auto {name} = new {(@class.IsUnion ? "union" : "struct")} ::{@class.QualifiedOriginalName}({Context.ReturnVarName});");
Context.Before.WriteLine($"auto {name} = new {@class.Tag} ::{@class.QualifiedOriginalName}({Context.ReturnVarName});");
instance = name;
ownNativeInstance = true;
@ -305,7 +305,7 @@ namespace CppSharp.Generators.CLI @@ -305,7 +305,7 @@ namespace CppSharp.Generators.CLI
instance);
Context.Return.Write("::{0}(", QualifiedIdentifier(@class));
Context.Return.Write($"({(@class.IsUnion ? "union" : "struct")} ::{@class.QualifiedOriginalName}*)");
Context.Return.Write($"({@class.Tag} ::{@class.QualifiedOriginalName}*)");
Context.Return.Write("{0}{1})", instance, ownNativeInstance ? ", true" : "");
}
@ -727,12 +727,12 @@ namespace CppSharp.Generators.CLI @@ -727,12 +727,12 @@ namespace CppSharp.Generators.CLI
&& method.Conversion == MethodConversionKind.FunctionToInstanceMethod
&& Context.ParameterIndex == 0)
{
Context.Return.Write($"({(@class.IsUnion ? "union" : "struct")} ::{@class.QualifiedOriginalName}*)");
Context.Return.Write($"({@class.Tag} ::{@class.QualifiedOriginalName}*)");
Context.Return.Write("NativePtr");
return;
}
Context.Return.Write($"({(@class.IsUnion ? "union" : "struct")} ::{@class.QualifiedOriginalName}*)");
Context.Return.Write($"({@class.Tag} ::{@class.QualifiedOriginalName}*)");
Context.Return.Write("{0}->NativePtr", Context.Parameter.Name);
}

22
src/Generator/Generators/CLI/CLISources.cs

@ -1,12 +1,10 @@ @@ -1,12 +1,10 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using CppSharp.AST;
using CppSharp.AST.Extensions;
using CppSharp.Generators.C;
using CppSharp.Generators.CSharp;
using Type = CppSharp.AST.Type;
namespace CppSharp.Generators.CLI
@ -147,7 +145,7 @@ namespace CppSharp.Generators.CLI @@ -147,7 +145,7 @@ namespace CppSharp.Generators.CLI
WriteLine("void {0}::{1}::set(::System::IntPtr object)",
qualifiedIdentifier, Helpers.InstanceIdentifier);
WriteOpenBraceAndIndent();
var nativeType = $"{(@class.IsUnion ? "union" : "struct")} ::{@class.QualifiedOriginalName}*";
var nativeType = $"{@class.Tag} ::{@class.QualifiedOriginalName}*";
WriteLine("NativePtr = ({0})object.ToPointer();", nativeType);
UnindentAndWriteCloseBrace();
PopBlock(NewLineKind.BeforeNextBlock);
@ -260,7 +258,7 @@ namespace CppSharp.Generators.CLI @@ -260,7 +258,7 @@ namespace CppSharp.Generators.CLI
WriteOpenBraceAndIndent();
WriteLine("auto __nativePtr = NativePtr;");
WriteLine("NativePtr = 0;");
WriteLine($"delete ({(@class.IsUnion ? "union" : "struct")} ::{@class.QualifiedOriginalName}*) __nativePtr;", @class.QualifiedOriginalName);
WriteLine($"delete ({@class.Tag} ::{@class.QualifiedOriginalName}*) __nativePtr;", @class.QualifiedOriginalName);
UnindentAndWriteCloseBrace();
}
@ -398,7 +396,7 @@ namespace CppSharp.Generators.CLI @@ -398,7 +396,7 @@ namespace CppSharp.Generators.CLI
if (decl is Variable)
variable = $"::{@class.QualifiedOriginalName}::{decl.OriginalName}";
else
variable = $"(({(@class.IsUnion ? "union" : "struct")} ::{@class.QualifiedOriginalName}*)NativePtr)->{decl.OriginalName}";
variable = $"(({@class.Tag} ::{@class.QualifiedOriginalName}*)NativePtr)->{decl.OriginalName}";
var ctx = new MarshalContext(Context, CurrentIndentation)
{
@ -486,7 +484,7 @@ namespace CppSharp.Generators.CLI @@ -486,7 +484,7 @@ namespace CppSharp.Generators.CLI
else if (CLIGenerator.ShouldGenerateClassNativeField(@class))
variable = $"NativePtr->{decl.OriginalName}";
else
variable = $"(({(@class.IsUnion ? "union" : "struct")} ::{@class.QualifiedOriginalName}*)NativePtr)->{decl.OriginalName}";
variable = $"(({@class.Tag} ::{@class.QualifiedOriginalName}*)NativePtr)->{decl.OriginalName}";
var ctx = new MarshalContext(Context, CurrentIndentation)
{
@ -545,7 +543,7 @@ namespace CppSharp.Generators.CLI @@ -545,7 +543,7 @@ namespace CppSharp.Generators.CLI
WriteLine("auto _fptr = (void (*)({0}))Marshal::GetFunctionPointerForDelegate({1}Instance).ToPointer();",
args, delegateName);
WriteLine($"(({(@class.IsUnion ? "union" : "struct")} ::{@class.QualifiedOriginalName}*)NativePtr)->{@event.OriginalName}.Connect(_fptr);");
WriteLine($"(({@class.Tag} ::{@class.QualifiedOriginalName}*)NativePtr)->{@event.OriginalName}.Connect(_fptr);");
UnindentAndWriteCloseBrace();
@ -631,7 +629,7 @@ namespace CppSharp.Generators.CLI @@ -631,7 +629,7 @@ namespace CppSharp.Generators.CLI
Write("{0}::{1}(", qualifiedIdentifier, @class.Name);
string nativeType = $"{(@class.IsUnion ? "union" : "struct")} ::{@class.QualifiedOriginalName}*";
string nativeType = $"{@class.Tag} ::{@class.QualifiedOriginalName}*";
WriteLine(!withOwnNativeInstanceParam ? "{0} native)" : "{0} native, bool ownNativeInstance)", nativeType);
var hasBase = GenerateClassConstructorBase(@class, null, withOwnNativeInstanceParam);
@ -785,7 +783,7 @@ namespace CppSharp.Generators.CLI @@ -785,7 +783,7 @@ namespace CppSharp.Generators.CLI
if (!@class.IsAbstract)
{
var @params = GenerateFunctionParamsMarshal(method.Parameters, method);
Write($@"NativePtr = new {(@class.IsUnion ? "union" : "struct")} ::{
Write($@"NativePtr = new {@class.Tag} ::{
@class.QualifiedOriginalName}(");
GenerateFunctionParams(@params);
WriteLine(");");
@ -869,7 +867,7 @@ namespace CppSharp.Generators.CLI @@ -869,7 +867,7 @@ namespace CppSharp.Generators.CLI
names.Add(marshal.Context.Return);
}
WriteLine($@"{(@class.IsUnion ? "union" : "struct")} ::{
WriteLine($@"{@class.Tag} ::{
@class.QualifiedOriginalName} _native({string.Join(", ", names)});");
GenerateValueTypeConstructorCallProperties(@class);
@ -961,7 +959,7 @@ namespace CppSharp.Generators.CLI @@ -961,7 +959,7 @@ namespace CppSharp.Generators.CLI
var isValueType = @class != null && @class.IsValueType;
if (isValueType && !IsNativeFunctionOrStaticMethod(function))
{
WriteLine($"auto {valueMarshalName} = {(@class.IsUnion ? "union" : "struct")} ::{@class.QualifiedOriginalName}();");
WriteLine($"auto {valueMarshalName} = {@class.Tag} ::{@class.QualifiedOriginalName}();");
var param = new Parameter { Name = "(*this)" , Namespace = function.Namespace };
var ctx = new MarshalContext(Context, CurrentIndentation)
@ -1020,7 +1018,7 @@ namespace CppSharp.Generators.CLI @@ -1020,7 +1018,7 @@ namespace CppSharp.Generators.CLI
if (isValueType)
Write($"{valueMarshalName}.");
else if (IsNativeMethod(function))
Write($"(({(@class.IsUnion ? "union" : "struct")} ::{@class.QualifiedOriginalName}*)NativePtr)->");
Write($"(({@class.Tag} ::{@class.QualifiedOriginalName}*)NativePtr)->");
Write("{0}(", function.OriginalName);
}

Loading…
Cancel
Save