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

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

@ -360,12 +360,12 @@ void CppSharp::Parser::CppParserOptions::SupportedStdTypes::set(::System::Collec
CppSharp::Parser::AST::ASTContext^ CppSharp::Parser::CppParserOptions::ASTContext::get() 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) 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() int CppSharp::Parser::CppParserOptions::ToolSetToUse::get()
@ -880,14 +880,14 @@ CppSharp::Parser::AST::NativeLibrary^ CppSharp::Parser::ParserResult::GetLibrari
{ {
auto __ret = ((struct ::CppSharp::CppParser::ParserResult*)NativePtr)->getLibraries(i); auto __ret = ((struct ::CppSharp::CppParser::ParserResult*)NativePtr)->getLibraries(i);
if (__ret == nullptr) return nullptr; 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) void CppSharp::Parser::ParserResult::AddLibraries(CppSharp::Parser::AST::NativeLibrary^ s)
{ {
if (ReferenceEquals(s, nullptr)) if (ReferenceEquals(s, nullptr))
throw gcnew ::System::ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); 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); ((struct ::CppSharp::CppParser::ParserResult*)NativePtr)->addLibraries(__arg0);
} }
@ -948,7 +948,7 @@ void CppSharp::Parser::ParserResult::Diagnostics::set(::System::Collections::Gen
auto __list0 = NativePtr->Libraries; auto __list0 = NativePtr->Libraries;
for(auto _element : __list0) 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); _tmp__Libraries->Add(_marshalElement);
} }
return _tmp__Libraries; return _tmp__Libraries;
@ -959,7 +959,7 @@ void CppSharp::Parser::ParserResult::Libraries::set(::System::Collections::Gener
auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::NativeLibrary*>(); auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::NativeLibrary*>();
for each(CppSharp::Parser::AST::NativeLibrary^ _element in value) 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); _tmpvalue.push_back(_marshalElement);
} }
((struct ::CppSharp::CppParser::ParserResult*)NativePtr)->Libraries = _tmpvalue; ((struct ::CppSharp::CppParser::ParserResult*)NativePtr)->Libraries = _tmpvalue;
@ -987,7 +987,7 @@ unsigned int CppSharp::Parser::ParserResult::LibrariesCount::get()
return __ret; return __ret;
} }
CppSharp::Parser::ClangParser::ClangParser(struct ::CppSharp::CppParser::ClangParser* native) CppSharp::Parser::ClangParser::ClangParser(class ::CppSharp::CppParser::ClangParser* native)
: __ownsNativeInstance(false) : __ownsNativeInstance(false)
{ {
NativePtr = native; NativePtr = native;
@ -995,10 +995,10 @@ CppSharp::Parser::ClangParser::ClangParser(struct ::CppSharp::CppParser::ClangPa
CppSharp::Parser::ClangParser^ CppSharp::Parser::ClangParser::__CreateInstance(::System::IntPtr native) 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) : __ownsNativeInstance(ownNativeInstance)
{ {
NativePtr = native; NativePtr = native;
@ -1006,7 +1006,7 @@ CppSharp::Parser::ClangParser::ClangParser(struct ::CppSharp::CppParser::ClangPa
CppSharp::Parser::ClangParser^ CppSharp::Parser::ClangParser::__CreateInstance(::System::IntPtr native, bool __ownsNativeInstance) 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() CppSharp::Parser::ClangParser::~ClangParser()
@ -1033,7 +1033,7 @@ CppSharp::Parser::ParserResult^ CppSharp::Parser::ClangParser::ParseLibrary(CppS
CppSharp::Parser::ClangParser::ClangParser() CppSharp::Parser::ClangParser::ClangParser()
{ {
__ownsNativeInstance = true; __ownsNativeInstance = true;
NativePtr = new struct ::CppSharp::CppParser::ClangParser(); NativePtr = new class ::CppSharp::CppParser::ClangParser();
} }
CppSharp::Parser::ClangParser::ClangParser(CppSharp::Parser::ClangParser^ _0) CppSharp::Parser::ClangParser::ClangParser(CppSharp::Parser::ClangParser^ _0)
@ -1041,8 +1041,8 @@ CppSharp::Parser::ClangParser::ClangParser(CppSharp::Parser::ClangParser^ _0)
__ownsNativeInstance = true; __ownsNativeInstance = true;
if (ReferenceEquals(_0, nullptr)) if (ReferenceEquals(_0, nullptr))
throw gcnew ::System::ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&)."); throw gcnew ::System::ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&).");
auto &__arg0 = *(struct ::CppSharp::CppParser::ClangParser*)_0->NativePtr; auto &__arg0 = *(class ::CppSharp::CppParser::ClangParser*)_0->NativePtr;
NativePtr = new struct ::CppSharp::CppParser::ClangParser(__arg0); NativePtr = new class ::CppSharp::CppParser::ClangParser(__arg0);
} }
::System::IntPtr CppSharp::Parser::ClangParser::__Instance::get() ::System::IntPtr CppSharp::Parser::ClangParser::__Instance::get()
@ -1052,5 +1052,5 @@ CppSharp::Parser::ClangParser::ClangParser(CppSharp::Parser::ClangParser^ _0)
void CppSharp::Parser::ClangParser::__Instance::set(::System::IntPtr object) 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
{ {
public: public:
property struct ::CppSharp::CppParser::ClangParser* NativePtr; property class ::CppSharp::CppParser::ClangParser* NativePtr;
property ::System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual ::System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
ClangParser(struct ::CppSharp::CppParser::ClangParser* native); ClangParser(class ::CppSharp::CppParser::ClangParser* native);
ClangParser(struct ::CppSharp::CppParser::ClangParser* native, bool ownNativeInstance); ClangParser(class ::CppSharp::CppParser::ClangParser* native, bool ownNativeInstance);
static ClangParser^ __CreateInstance(::System::IntPtr native); static ClangParser^ __CreateInstance(::System::IntPtr native);
static ClangParser^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static ClangParser^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ClangParser(); 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
{ {
public: public:
property struct ::CppSharp::CppParser::AST::Declaration* NativePtr; property class ::CppSharp::CppParser::AST::Declaration* NativePtr;
property ::System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual ::System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
Declaration(struct ::CppSharp::CppParser::AST::Declaration* native); Declaration(class ::CppSharp::CppParser::AST::Declaration* native);
Declaration(struct ::CppSharp::CppParser::AST::Declaration* native, bool ownNativeInstance); Declaration(class ::CppSharp::CppParser::AST::Declaration* native, bool ownNativeInstance);
static Declaration^ __CreateInstance(::System::IntPtr native); static Declaration^ __CreateInstance(::System::IntPtr native);
static Declaration^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static Declaration^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Declaration(CppSharp::Parser::AST::DeclarationKind kind); Declaration(CppSharp::Parser::AST::DeclarationKind kind);
@ -476,8 +476,8 @@ namespace CppSharp
{ {
public: public:
DeclarationContext(struct ::CppSharp::CppParser::AST::DeclarationContext* native); DeclarationContext(class ::CppSharp::CppParser::AST::DeclarationContext* native);
DeclarationContext(struct ::CppSharp::CppParser::AST::DeclarationContext* native, bool ownNativeInstance); DeclarationContext(class ::CppSharp::CppParser::AST::DeclarationContext* native, bool ownNativeInstance);
static DeclarationContext^ __CreateInstance(::System::IntPtr native); static DeclarationContext^ __CreateInstance(::System::IntPtr native);
static DeclarationContext^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static DeclarationContext^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DeclarationContext(CppSharp::Parser::AST::DeclarationKind kind); DeclarationContext(CppSharp::Parser::AST::DeclarationKind kind);
@ -652,8 +652,8 @@ namespace CppSharp
{ {
public: public:
TypedefNameDecl(struct ::CppSharp::CppParser::AST::TypedefNameDecl* native); TypedefNameDecl(class ::CppSharp::CppParser::AST::TypedefNameDecl* native);
TypedefNameDecl(struct ::CppSharp::CppParser::AST::TypedefNameDecl* native, bool ownNativeInstance); TypedefNameDecl(class ::CppSharp::CppParser::AST::TypedefNameDecl* native, bool ownNativeInstance);
static TypedefNameDecl^ __CreateInstance(::System::IntPtr native); static TypedefNameDecl^ __CreateInstance(::System::IntPtr native);
static TypedefNameDecl^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static TypedefNameDecl^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TypedefNameDecl(CppSharp::Parser::AST::DeclarationKind kind); TypedefNameDecl(CppSharp::Parser::AST::DeclarationKind kind);
@ -675,8 +675,8 @@ namespace CppSharp
{ {
public: public:
TypedefDecl(struct ::CppSharp::CppParser::AST::TypedefDecl* native); TypedefDecl(class ::CppSharp::CppParser::AST::TypedefDecl* native);
TypedefDecl(struct ::CppSharp::CppParser::AST::TypedefDecl* native, bool ownNativeInstance); TypedefDecl(class ::CppSharp::CppParser::AST::TypedefDecl* native, bool ownNativeInstance);
static TypedefDecl^ __CreateInstance(::System::IntPtr native); static TypedefDecl^ __CreateInstance(::System::IntPtr native);
static TypedefDecl^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static TypedefDecl^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TypedefDecl(); TypedefDecl();
@ -690,8 +690,8 @@ namespace CppSharp
{ {
public: public:
TypeAlias(struct ::CppSharp::CppParser::AST::TypeAlias* native); TypeAlias(class ::CppSharp::CppParser::AST::TypeAlias* native);
TypeAlias(struct ::CppSharp::CppParser::AST::TypeAlias* native, bool ownNativeInstance); TypeAlias(class ::CppSharp::CppParser::AST::TypeAlias* native, bool ownNativeInstance);
static TypeAlias^ __CreateInstance(::System::IntPtr native); static TypeAlias^ __CreateInstance(::System::IntPtr native);
static TypeAlias^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static TypeAlias^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TypeAlias(); TypeAlias();
@ -711,8 +711,8 @@ namespace CppSharp
{ {
public: public:
Friend(struct ::CppSharp::CppParser::AST::Friend* native); Friend(class ::CppSharp::CppParser::AST::Friend* native);
Friend(struct ::CppSharp::CppParser::AST::Friend* native, bool ownNativeInstance); Friend(class ::CppSharp::CppParser::AST::Friend* native, bool ownNativeInstance);
static Friend^ __CreateInstance(::System::IntPtr native); static Friend^ __CreateInstance(::System::IntPtr native);
static Friend^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static Friend^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Friend(); Friend();
@ -732,15 +732,15 @@ namespace CppSharp
{ {
public: public:
property struct ::CppSharp::CppParser::AST::StatementObsolete* NativePtr; property class ::CppSharp::CppParser::AST::StatementObsolete* NativePtr;
property ::System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual ::System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
StatementObsolete(struct ::CppSharp::CppParser::AST::StatementObsolete* native); StatementObsolete(class ::CppSharp::CppParser::AST::StatementObsolete* native);
StatementObsolete(struct ::CppSharp::CppParser::AST::StatementObsolete* native, bool ownNativeInstance); StatementObsolete(class ::CppSharp::CppParser::AST::StatementObsolete* native, bool ownNativeInstance);
static StatementObsolete^ __CreateInstance(::System::IntPtr native); static StatementObsolete^ __CreateInstance(::System::IntPtr native);
static StatementObsolete^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static StatementObsolete^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
StatementObsolete(::System::String^ str, CppSharp::Parser::AST::StatementClassObsolete Class, CppSharp::Parser::AST::Declaration^ decl); StatementObsolete(::System::String^ str, CppSharp::Parser::AST::StatementClassObsolete Class, CppSharp::Parser::AST::Declaration^ decl);
@ -776,8 +776,8 @@ namespace CppSharp
{ {
public: public:
ExpressionObsolete(struct ::CppSharp::CppParser::AST::ExpressionObsolete* native); ExpressionObsolete(class ::CppSharp::CppParser::AST::ExpressionObsolete* native);
ExpressionObsolete(struct ::CppSharp::CppParser::AST::ExpressionObsolete* native, bool ownNativeInstance); ExpressionObsolete(class ::CppSharp::CppParser::AST::ExpressionObsolete* native, bool ownNativeInstance);
static ExpressionObsolete^ __CreateInstance(::System::IntPtr native); static ExpressionObsolete^ __CreateInstance(::System::IntPtr native);
static ExpressionObsolete^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static ExpressionObsolete^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ExpressionObsolete(::System::String^ str, CppSharp::Parser::AST::StatementClassObsolete Class, CppSharp::Parser::AST::Declaration^ decl); ExpressionObsolete(::System::String^ str, CppSharp::Parser::AST::StatementClassObsolete Class, CppSharp::Parser::AST::Declaration^ decl);
@ -791,8 +791,8 @@ namespace CppSharp
{ {
public: public:
BinaryOperatorObsolete(struct ::CppSharp::CppParser::AST::BinaryOperatorObsolete* native); BinaryOperatorObsolete(class ::CppSharp::CppParser::AST::BinaryOperatorObsolete* native);
BinaryOperatorObsolete(struct ::CppSharp::CppParser::AST::BinaryOperatorObsolete* native, bool ownNativeInstance); BinaryOperatorObsolete(class ::CppSharp::CppParser::AST::BinaryOperatorObsolete* native, bool ownNativeInstance);
static BinaryOperatorObsolete^ __CreateInstance(::System::IntPtr native); static BinaryOperatorObsolete^ __CreateInstance(::System::IntPtr native);
static BinaryOperatorObsolete^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); 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); BinaryOperatorObsolete(::System::String^ str, CppSharp::Parser::AST::ExpressionObsolete^ lhs, CppSharp::Parser::AST::ExpressionObsolete^ rhs, ::System::String^ opcodeStr);
@ -824,8 +824,8 @@ namespace CppSharp
{ {
public: public:
CallExprObsolete(struct ::CppSharp::CppParser::AST::CallExprObsolete* native); CallExprObsolete(class ::CppSharp::CppParser::AST::CallExprObsolete* native);
CallExprObsolete(struct ::CppSharp::CppParser::AST::CallExprObsolete* native, bool ownNativeInstance); CallExprObsolete(class ::CppSharp::CppParser::AST::CallExprObsolete* native, bool ownNativeInstance);
static CallExprObsolete^ __CreateInstance(::System::IntPtr native); static CallExprObsolete^ __CreateInstance(::System::IntPtr native);
static CallExprObsolete^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static CallExprObsolete^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CallExprObsolete(::System::String^ str, CppSharp::Parser::AST::Declaration^ decl); CallExprObsolete(::System::String^ str, CppSharp::Parser::AST::Declaration^ decl);
@ -856,8 +856,8 @@ namespace CppSharp
{ {
public: public:
CXXConstructExprObsolete(struct ::CppSharp::CppParser::AST::CXXConstructExprObsolete* native); CXXConstructExprObsolete(class ::CppSharp::CppParser::AST::CXXConstructExprObsolete* native);
CXXConstructExprObsolete(struct ::CppSharp::CppParser::AST::CXXConstructExprObsolete* native, bool ownNativeInstance); CXXConstructExprObsolete(class ::CppSharp::CppParser::AST::CXXConstructExprObsolete* native, bool ownNativeInstance);
static CXXConstructExprObsolete^ __CreateInstance(::System::IntPtr native); static CXXConstructExprObsolete^ __CreateInstance(::System::IntPtr native);
static CXXConstructExprObsolete^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static CXXConstructExprObsolete^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CXXConstructExprObsolete(::System::String^ str, CppSharp::Parser::AST::Declaration^ decl); CXXConstructExprObsolete(::System::String^ str, CppSharp::Parser::AST::Declaration^ decl);
@ -888,8 +888,8 @@ namespace CppSharp
{ {
public: public:
Parameter(struct ::CppSharp::CppParser::AST::Parameter* native); Parameter(class ::CppSharp::CppParser::AST::Parameter* native);
Parameter(struct ::CppSharp::CppParser::AST::Parameter* native, bool ownNativeInstance); Parameter(class ::CppSharp::CppParser::AST::Parameter* native, bool ownNativeInstance);
static Parameter^ __CreateInstance(::System::IntPtr native); static Parameter^ __CreateInstance(::System::IntPtr native);
static Parameter^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static Parameter^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Parameter(); Parameter();
@ -939,8 +939,8 @@ namespace CppSharp
{ {
public: public:
Function(struct ::CppSharp::CppParser::AST::Function* native); Function(class ::CppSharp::CppParser::AST::Function* native);
Function(struct ::CppSharp::CppParser::AST::Function* native, bool ownNativeInstance); Function(class ::CppSharp::CppParser::AST::Function* native, bool ownNativeInstance);
static Function^ __CreateInstance(::System::IntPtr native); static Function^ __CreateInstance(::System::IntPtr native);
static Function^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static Function^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Function(); Function();
@ -1085,8 +1085,8 @@ namespace CppSharp
{ {
public: public:
Method(struct ::CppSharp::CppParser::AST::Method* native); Method(class ::CppSharp::CppParser::AST::Method* native);
Method(struct ::CppSharp::CppParser::AST::Method* native, bool ownNativeInstance); Method(class ::CppSharp::CppParser::AST::Method* native, bool ownNativeInstance);
static Method^ __CreateInstance(::System::IntPtr native); static Method^ __CreateInstance(::System::IntPtr native);
static Method^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static Method^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Method(); Method();
@ -1189,8 +1189,8 @@ namespace CppSharp
{ {
public: public:
Item(struct ::CppSharp::CppParser::AST::Enumeration::Item* native); Item(class ::CppSharp::CppParser::AST::Enumeration::Item* native);
Item(struct ::CppSharp::CppParser::AST::Enumeration::Item* native, bool ownNativeInstance); Item(class ::CppSharp::CppParser::AST::Enumeration::Item* native, bool ownNativeInstance);
static Item^ __CreateInstance(::System::IntPtr native); static Item^ __CreateInstance(::System::IntPtr native);
static Item^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static Item^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Item(); Item();
@ -1212,8 +1212,8 @@ namespace CppSharp
} }
}; };
Enumeration(struct ::CppSharp::CppParser::AST::Enumeration* native); Enumeration(class ::CppSharp::CppParser::AST::Enumeration* native);
Enumeration(struct ::CppSharp::CppParser::AST::Enumeration* native, bool ownNativeInstance); Enumeration(class ::CppSharp::CppParser::AST::Enumeration* native, bool ownNativeInstance);
static Enumeration^ __CreateInstance(::System::IntPtr native); static Enumeration^ __CreateInstance(::System::IntPtr native);
static Enumeration^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static Enumeration^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Enumeration(); Enumeration();
@ -1264,8 +1264,8 @@ namespace CppSharp
{ {
public: public:
Variable(struct ::CppSharp::CppParser::AST::Variable* native); Variable(class ::CppSharp::CppParser::AST::Variable* native);
Variable(struct ::CppSharp::CppParser::AST::Variable* native, bool ownNativeInstance); Variable(class ::CppSharp::CppParser::AST::Variable* native, bool ownNativeInstance);
static Variable^ __CreateInstance(::System::IntPtr native); static Variable^ __CreateInstance(::System::IntPtr native);
static Variable^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static Variable^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Variable(); Variable();
@ -1353,8 +1353,8 @@ namespace CppSharp
{ {
public: public:
Field(struct ::CppSharp::CppParser::AST::Field* native); Field(class ::CppSharp::CppParser::AST::Field* native);
Field(struct ::CppSharp::CppParser::AST::Field* native, bool ownNativeInstance); Field(class ::CppSharp::CppParser::AST::Field* native, bool ownNativeInstance);
static Field^ __CreateInstance(::System::IntPtr native); static Field^ __CreateInstance(::System::IntPtr native);
static Field^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static Field^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Field(); Field();
@ -1392,8 +1392,8 @@ namespace CppSharp
{ {
public: public:
AccessSpecifierDecl(struct ::CppSharp::CppParser::AST::AccessSpecifierDecl* native); AccessSpecifierDecl(class ::CppSharp::CppParser::AST::AccessSpecifierDecl* native);
AccessSpecifierDecl(struct ::CppSharp::CppParser::AST::AccessSpecifierDecl* native, bool ownNativeInstance); AccessSpecifierDecl(class ::CppSharp::CppParser::AST::AccessSpecifierDecl* native, bool ownNativeInstance);
static AccessSpecifierDecl^ __CreateInstance(::System::IntPtr native); static AccessSpecifierDecl^ __CreateInstance(::System::IntPtr native);
static AccessSpecifierDecl^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static AccessSpecifierDecl^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
AccessSpecifierDecl(); AccessSpecifierDecl();
@ -1544,15 +1544,15 @@ namespace CppSharp
{ {
public: public:
property struct ::CppSharp::CppParser::AST::LayoutField* NativePtr; property class ::CppSharp::CppParser::AST::LayoutField* NativePtr;
property ::System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual ::System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
LayoutField(struct ::CppSharp::CppParser::AST::LayoutField* native); LayoutField(class ::CppSharp::CppParser::AST::LayoutField* native);
LayoutField(struct ::CppSharp::CppParser::AST::LayoutField* native, bool ownNativeInstance); LayoutField(class ::CppSharp::CppParser::AST::LayoutField* native, bool ownNativeInstance);
static LayoutField^ __CreateInstance(::System::IntPtr native); static LayoutField^ __CreateInstance(::System::IntPtr native);
static LayoutField^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static LayoutField^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
LayoutField(); LayoutField();
@ -1594,15 +1594,15 @@ namespace CppSharp
{ {
public: public:
property struct ::CppSharp::CppParser::AST::LayoutBase* NativePtr; property class ::CppSharp::CppParser::AST::LayoutBase* NativePtr;
property ::System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual ::System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
LayoutBase(struct ::CppSharp::CppParser::AST::LayoutBase* native); LayoutBase(class ::CppSharp::CppParser::AST::LayoutBase* native);
LayoutBase(struct ::CppSharp::CppParser::AST::LayoutBase* native, bool ownNativeInstance); LayoutBase(class ::CppSharp::CppParser::AST::LayoutBase* native, bool ownNativeInstance);
static LayoutBase^ __CreateInstance(::System::IntPtr native); static LayoutBase^ __CreateInstance(::System::IntPtr native);
static LayoutBase^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static LayoutBase^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
LayoutBase(); LayoutBase();
@ -1757,8 +1757,8 @@ namespace CppSharp
{ {
public: public:
Class(struct ::CppSharp::CppParser::AST::Class* native); Class(class ::CppSharp::CppParser::AST::Class* native);
Class(struct ::CppSharp::CppParser::AST::Class* native, bool ownNativeInstance); Class(class ::CppSharp::CppParser::AST::Class* native, bool ownNativeInstance);
static Class^ __CreateInstance(::System::IntPtr native); static Class^ __CreateInstance(::System::IntPtr native);
static Class^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static Class^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Class(); Class();
@ -1912,8 +1912,8 @@ namespace CppSharp
{ {
public: public:
Template(struct ::CppSharp::CppParser::AST::Template* native); Template(class ::CppSharp::CppParser::AST::Template* native);
Template(struct ::CppSharp::CppParser::AST::Template* native, bool ownNativeInstance); Template(class ::CppSharp::CppParser::AST::Template* native, bool ownNativeInstance);
static Template^ __CreateInstance(::System::IntPtr native); static Template^ __CreateInstance(::System::IntPtr native);
static Template^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static Template^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Template(CppSharp::Parser::AST::DeclarationKind kind); Template(CppSharp::Parser::AST::DeclarationKind kind);
@ -1954,8 +1954,8 @@ namespace CppSharp
{ {
public: public:
TypeAliasTemplate(struct ::CppSharp::CppParser::AST::TypeAliasTemplate* native); TypeAliasTemplate(class ::CppSharp::CppParser::AST::TypeAliasTemplate* native);
TypeAliasTemplate(struct ::CppSharp::CppParser::AST::TypeAliasTemplate* native, bool ownNativeInstance); TypeAliasTemplate(class ::CppSharp::CppParser::AST::TypeAliasTemplate* native, bool ownNativeInstance);
static TypeAliasTemplate^ __CreateInstance(::System::IntPtr native); static TypeAliasTemplate^ __CreateInstance(::System::IntPtr native);
static TypeAliasTemplate^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static TypeAliasTemplate^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TypeAliasTemplate(); TypeAliasTemplate();
@ -1969,8 +1969,8 @@ namespace CppSharp
{ {
public: public:
TemplateParameter(struct ::CppSharp::CppParser::AST::TemplateParameter* native); TemplateParameter(class ::CppSharp::CppParser::AST::TemplateParameter* native);
TemplateParameter(struct ::CppSharp::CppParser::AST::TemplateParameter* native, bool ownNativeInstance); TemplateParameter(class ::CppSharp::CppParser::AST::TemplateParameter* native, bool ownNativeInstance);
static TemplateParameter^ __CreateInstance(::System::IntPtr native); static TemplateParameter^ __CreateInstance(::System::IntPtr native);
static TemplateParameter^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static TemplateParameter^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TemplateParameter(CppSharp::Parser::AST::DeclarationKind kind); TemplateParameter(CppSharp::Parser::AST::DeclarationKind kind);
@ -2004,8 +2004,8 @@ namespace CppSharp
{ {
public: public:
TemplateTemplateParameter(struct ::CppSharp::CppParser::AST::TemplateTemplateParameter* native); TemplateTemplateParameter(class ::CppSharp::CppParser::AST::TemplateTemplateParameter* native);
TemplateTemplateParameter(struct ::CppSharp::CppParser::AST::TemplateTemplateParameter* native, bool ownNativeInstance); TemplateTemplateParameter(class ::CppSharp::CppParser::AST::TemplateTemplateParameter* native, bool ownNativeInstance);
static TemplateTemplateParameter^ __CreateInstance(::System::IntPtr native); static TemplateTemplateParameter^ __CreateInstance(::System::IntPtr native);
static TemplateTemplateParameter^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static TemplateTemplateParameter^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TemplateTemplateParameter(); TemplateTemplateParameter();
@ -2037,8 +2037,8 @@ namespace CppSharp
{ {
public: public:
TypeTemplateParameter(struct ::CppSharp::CppParser::AST::TypeTemplateParameter* native); TypeTemplateParameter(class ::CppSharp::CppParser::AST::TypeTemplateParameter* native);
TypeTemplateParameter(struct ::CppSharp::CppParser::AST::TypeTemplateParameter* native, bool ownNativeInstance); TypeTemplateParameter(class ::CppSharp::CppParser::AST::TypeTemplateParameter* native, bool ownNativeInstance);
static TypeTemplateParameter^ __CreateInstance(::System::IntPtr native); static TypeTemplateParameter^ __CreateInstance(::System::IntPtr native);
static TypeTemplateParameter^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static TypeTemplateParameter^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TypeTemplateParameter(); TypeTemplateParameter();
@ -2058,8 +2058,8 @@ namespace CppSharp
{ {
public: public:
NonTypeTemplateParameter(struct ::CppSharp::CppParser::AST::NonTypeTemplateParameter* native); NonTypeTemplateParameter(class ::CppSharp::CppParser::AST::NonTypeTemplateParameter* native);
NonTypeTemplateParameter(struct ::CppSharp::CppParser::AST::NonTypeTemplateParameter* native, bool ownNativeInstance); NonTypeTemplateParameter(class ::CppSharp::CppParser::AST::NonTypeTemplateParameter* native, bool ownNativeInstance);
static NonTypeTemplateParameter^ __CreateInstance(::System::IntPtr native); static NonTypeTemplateParameter^ __CreateInstance(::System::IntPtr native);
static NonTypeTemplateParameter^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static NonTypeTemplateParameter^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
NonTypeTemplateParameter(); NonTypeTemplateParameter();
@ -2103,8 +2103,8 @@ namespace CppSharp
{ {
public: public:
ClassTemplate(struct ::CppSharp::CppParser::AST::ClassTemplate* native); ClassTemplate(class ::CppSharp::CppParser::AST::ClassTemplate* native);
ClassTemplate(struct ::CppSharp::CppParser::AST::ClassTemplate* native, bool ownNativeInstance); ClassTemplate(class ::CppSharp::CppParser::AST::ClassTemplate* native, bool ownNativeInstance);
static ClassTemplate^ __CreateInstance(::System::IntPtr native); static ClassTemplate^ __CreateInstance(::System::IntPtr native);
static ClassTemplate^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static ClassTemplate^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ClassTemplate(); ClassTemplate();
@ -2139,8 +2139,8 @@ namespace CppSharp
{ {
public: public:
ClassTemplateSpecialization(struct ::CppSharp::CppParser::AST::ClassTemplateSpecialization* native); ClassTemplateSpecialization(class ::CppSharp::CppParser::AST::ClassTemplateSpecialization* native);
ClassTemplateSpecialization(struct ::CppSharp::CppParser::AST::ClassTemplateSpecialization* native, bool ownNativeInstance); ClassTemplateSpecialization(class ::CppSharp::CppParser::AST::ClassTemplateSpecialization* native, bool ownNativeInstance);
static ClassTemplateSpecialization^ __CreateInstance(::System::IntPtr native); static ClassTemplateSpecialization^ __CreateInstance(::System::IntPtr native);
static ClassTemplateSpecialization^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static ClassTemplateSpecialization^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ClassTemplateSpecialization(); ClassTemplateSpecialization();
@ -2183,8 +2183,8 @@ namespace CppSharp
{ {
public: public:
ClassTemplatePartialSpecialization(struct ::CppSharp::CppParser::AST::ClassTemplatePartialSpecialization* native); ClassTemplatePartialSpecialization(class ::CppSharp::CppParser::AST::ClassTemplatePartialSpecialization* native);
ClassTemplatePartialSpecialization(struct ::CppSharp::CppParser::AST::ClassTemplatePartialSpecialization* native, bool ownNativeInstance); ClassTemplatePartialSpecialization(class ::CppSharp::CppParser::AST::ClassTemplatePartialSpecialization* native, bool ownNativeInstance);
static ClassTemplatePartialSpecialization^ __CreateInstance(::System::IntPtr native); static ClassTemplatePartialSpecialization^ __CreateInstance(::System::IntPtr native);
static ClassTemplatePartialSpecialization^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static ClassTemplatePartialSpecialization^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ClassTemplatePartialSpecialization(); ClassTemplatePartialSpecialization();
@ -2198,8 +2198,8 @@ namespace CppSharp
{ {
public: public:
FunctionTemplate(struct ::CppSharp::CppParser::AST::FunctionTemplate* native); FunctionTemplate(class ::CppSharp::CppParser::AST::FunctionTemplate* native);
FunctionTemplate(struct ::CppSharp::CppParser::AST::FunctionTemplate* native, bool ownNativeInstance); FunctionTemplate(class ::CppSharp::CppParser::AST::FunctionTemplate* native, bool ownNativeInstance);
static FunctionTemplate^ __CreateInstance(::System::IntPtr native); static FunctionTemplate^ __CreateInstance(::System::IntPtr native);
static FunctionTemplate^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static FunctionTemplate^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
FunctionTemplate(); FunctionTemplate();
@ -2232,15 +2232,15 @@ namespace CppSharp
{ {
public: public:
property struct ::CppSharp::CppParser::AST::FunctionTemplateSpecialization* NativePtr; property class ::CppSharp::CppParser::AST::FunctionTemplateSpecialization* NativePtr;
property ::System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual ::System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
FunctionTemplateSpecialization(struct ::CppSharp::CppParser::AST::FunctionTemplateSpecialization* native); FunctionTemplateSpecialization(class ::CppSharp::CppParser::AST::FunctionTemplateSpecialization* native);
FunctionTemplateSpecialization(struct ::CppSharp::CppParser::AST::FunctionTemplateSpecialization* native, bool ownNativeInstance); FunctionTemplateSpecialization(class ::CppSharp::CppParser::AST::FunctionTemplateSpecialization* native, bool ownNativeInstance);
static FunctionTemplateSpecialization^ __CreateInstance(::System::IntPtr native); static FunctionTemplateSpecialization^ __CreateInstance(::System::IntPtr native);
static FunctionTemplateSpecialization^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static FunctionTemplateSpecialization^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
FunctionTemplateSpecialization(); FunctionTemplateSpecialization();
@ -2293,8 +2293,8 @@ namespace CppSharp
{ {
public: public:
VarTemplate(struct ::CppSharp::CppParser::AST::VarTemplate* native); VarTemplate(class ::CppSharp::CppParser::AST::VarTemplate* native);
VarTemplate(struct ::CppSharp::CppParser::AST::VarTemplate* native, bool ownNativeInstance); VarTemplate(class ::CppSharp::CppParser::AST::VarTemplate* native, bool ownNativeInstance);
static VarTemplate^ __CreateInstance(::System::IntPtr native); static VarTemplate^ __CreateInstance(::System::IntPtr native);
static VarTemplate^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static VarTemplate^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
VarTemplate(); VarTemplate();
@ -2329,8 +2329,8 @@ namespace CppSharp
{ {
public: public:
VarTemplateSpecialization(struct ::CppSharp::CppParser::AST::VarTemplateSpecialization* native); VarTemplateSpecialization(class ::CppSharp::CppParser::AST::VarTemplateSpecialization* native);
VarTemplateSpecialization(struct ::CppSharp::CppParser::AST::VarTemplateSpecialization* native, bool ownNativeInstance); VarTemplateSpecialization(class ::CppSharp::CppParser::AST::VarTemplateSpecialization* native, bool ownNativeInstance);
static VarTemplateSpecialization^ __CreateInstance(::System::IntPtr native); static VarTemplateSpecialization^ __CreateInstance(::System::IntPtr native);
static VarTemplateSpecialization^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static VarTemplateSpecialization^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
VarTemplateSpecialization(); VarTemplateSpecialization();
@ -2373,8 +2373,8 @@ namespace CppSharp
{ {
public: public:
VarTemplatePartialSpecialization(struct ::CppSharp::CppParser::AST::VarTemplatePartialSpecialization* native); VarTemplatePartialSpecialization(class ::CppSharp::CppParser::AST::VarTemplatePartialSpecialization* native);
VarTemplatePartialSpecialization(struct ::CppSharp::CppParser::AST::VarTemplatePartialSpecialization* native, bool ownNativeInstance); VarTemplatePartialSpecialization(class ::CppSharp::CppParser::AST::VarTemplatePartialSpecialization* native, bool ownNativeInstance);
static VarTemplatePartialSpecialization^ __CreateInstance(::System::IntPtr native); static VarTemplatePartialSpecialization^ __CreateInstance(::System::IntPtr native);
static VarTemplatePartialSpecialization^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static VarTemplatePartialSpecialization^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
VarTemplatePartialSpecialization(); VarTemplatePartialSpecialization();
@ -2388,8 +2388,8 @@ namespace CppSharp
{ {
public: public:
UnresolvedUsingTypename(struct ::CppSharp::CppParser::AST::UnresolvedUsingTypename* native); UnresolvedUsingTypename(class ::CppSharp::CppParser::AST::UnresolvedUsingTypename* native);
UnresolvedUsingTypename(struct ::CppSharp::CppParser::AST::UnresolvedUsingTypename* native, bool ownNativeInstance); UnresolvedUsingTypename(class ::CppSharp::CppParser::AST::UnresolvedUsingTypename* native, bool ownNativeInstance);
static UnresolvedUsingTypename^ __CreateInstance(::System::IntPtr native); static UnresolvedUsingTypename^ __CreateInstance(::System::IntPtr native);
static UnresolvedUsingTypename^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static UnresolvedUsingTypename^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
UnresolvedUsingTypename(); UnresolvedUsingTypename();
@ -2403,8 +2403,8 @@ namespace CppSharp
{ {
public: public:
Namespace(struct ::CppSharp::CppParser::AST::Namespace* native); Namespace(class ::CppSharp::CppParser::AST::Namespace* native);
Namespace(struct ::CppSharp::CppParser::AST::Namespace* native, bool ownNativeInstance); Namespace(class ::CppSharp::CppParser::AST::Namespace* native, bool ownNativeInstance);
static Namespace^ __CreateInstance(::System::IntPtr native); static Namespace^ __CreateInstance(::System::IntPtr native);
static Namespace^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static Namespace^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Namespace(); Namespace();
@ -2424,15 +2424,15 @@ namespace CppSharp
{ {
public: public:
property struct ::CppSharp::CppParser::AST::PreprocessedEntity* NativePtr; property class ::CppSharp::CppParser::AST::PreprocessedEntity* NativePtr;
property ::System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual ::System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
PreprocessedEntity(struct ::CppSharp::CppParser::AST::PreprocessedEntity* native); PreprocessedEntity(class ::CppSharp::CppParser::AST::PreprocessedEntity* native);
PreprocessedEntity(struct ::CppSharp::CppParser::AST::PreprocessedEntity* native, bool ownNativeInstance); PreprocessedEntity(class ::CppSharp::CppParser::AST::PreprocessedEntity* native, bool ownNativeInstance);
static PreprocessedEntity^ __CreateInstance(::System::IntPtr native); static PreprocessedEntity^ __CreateInstance(::System::IntPtr native);
static PreprocessedEntity^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static PreprocessedEntity^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
PreprocessedEntity(); PreprocessedEntity();
@ -2468,8 +2468,8 @@ namespace CppSharp
{ {
public: public:
MacroDefinition(struct ::CppSharp::CppParser::AST::MacroDefinition* native); MacroDefinition(class ::CppSharp::CppParser::AST::MacroDefinition* native);
MacroDefinition(struct ::CppSharp::CppParser::AST::MacroDefinition* native, bool ownNativeInstance); MacroDefinition(class ::CppSharp::CppParser::AST::MacroDefinition* native, bool ownNativeInstance);
static MacroDefinition^ __CreateInstance(::System::IntPtr native); static MacroDefinition^ __CreateInstance(::System::IntPtr native);
static MacroDefinition^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static MacroDefinition^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
MacroDefinition(); MacroDefinition();
@ -2507,8 +2507,8 @@ namespace CppSharp
{ {
public: public:
MacroExpansion(struct ::CppSharp::CppParser::AST::MacroExpansion* native); MacroExpansion(class ::CppSharp::CppParser::AST::MacroExpansion* native);
MacroExpansion(struct ::CppSharp::CppParser::AST::MacroExpansion* native, bool ownNativeInstance); MacroExpansion(class ::CppSharp::CppParser::AST::MacroExpansion* native, bool ownNativeInstance);
static MacroExpansion^ __CreateInstance(::System::IntPtr native); static MacroExpansion^ __CreateInstance(::System::IntPtr native);
static MacroExpansion^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static MacroExpansion^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
MacroExpansion(); MacroExpansion();
@ -2540,8 +2540,8 @@ namespace CppSharp
{ {
public: public:
TranslationUnit(struct ::CppSharp::CppParser::AST::TranslationUnit* native); TranslationUnit(class ::CppSharp::CppParser::AST::TranslationUnit* native);
TranslationUnit(struct ::CppSharp::CppParser::AST::TranslationUnit* native, bool ownNativeInstance); TranslationUnit(class ::CppSharp::CppParser::AST::TranslationUnit* native, bool ownNativeInstance);
static TranslationUnit^ __CreateInstance(::System::IntPtr native); static TranslationUnit^ __CreateInstance(::System::IntPtr native);
static TranslationUnit^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static TranslationUnit^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TranslationUnit(); TranslationUnit();
@ -2584,15 +2584,15 @@ namespace CppSharp
{ {
public: public:
property struct ::CppSharp::CppParser::AST::ASTContext* NativePtr; property class ::CppSharp::CppParser::AST::ASTContext* NativePtr;
property ::System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual ::System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
ASTContext(struct ::CppSharp::CppParser::AST::ASTContext* native); ASTContext(class ::CppSharp::CppParser::AST::ASTContext* native);
ASTContext(struct ::CppSharp::CppParser::AST::ASTContext* native, bool ownNativeInstance); ASTContext(class ::CppSharp::CppParser::AST::ASTContext* native, bool ownNativeInstance);
static ASTContext^ __CreateInstance(::System::IntPtr native); static ASTContext^ __CreateInstance(::System::IntPtr native);
static ASTContext^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static ASTContext^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ASTContext(); 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
{ {
public: public:
property struct ::CppSharp::CppParser::AST::Stmt* NativePtr; property class ::CppSharp::CppParser::AST::Stmt* NativePtr;
property ::System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual ::System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
Stmt(struct ::CppSharp::CppParser::AST::Stmt* native); Stmt(class ::CppSharp::CppParser::AST::Stmt* native);
Stmt(struct ::CppSharp::CppParser::AST::Stmt* native, bool ownNativeInstance); Stmt(class ::CppSharp::CppParser::AST::Stmt* native, bool ownNativeInstance);
static Stmt^ __CreateInstance(::System::IntPtr native); static Stmt^ __CreateInstance(::System::IntPtr native);
static Stmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static Stmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Stmt(); Stmt();
@ -252,8 +252,8 @@ namespace CppSharp
{ {
public: public:
DeclStmt(struct ::CppSharp::CppParser::AST::DeclStmt* native); DeclStmt(class ::CppSharp::CppParser::AST::DeclStmt* native);
DeclStmt(struct ::CppSharp::CppParser::AST::DeclStmt* native, bool ownNativeInstance); DeclStmt(class ::CppSharp::CppParser::AST::DeclStmt* native, bool ownNativeInstance);
static DeclStmt^ __CreateInstance(::System::IntPtr native); static DeclStmt^ __CreateInstance(::System::IntPtr native);
static DeclStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static DeclStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DeclStmt(); DeclStmt();
@ -296,8 +296,8 @@ namespace CppSharp
{ {
public: public:
NullStmt(struct ::CppSharp::CppParser::AST::NullStmt* native); NullStmt(class ::CppSharp::CppParser::AST::NullStmt* native);
NullStmt(struct ::CppSharp::CppParser::AST::NullStmt* native, bool ownNativeInstance); NullStmt(class ::CppSharp::CppParser::AST::NullStmt* native, bool ownNativeInstance);
static NullStmt^ __CreateInstance(::System::IntPtr native); static NullStmt^ __CreateInstance(::System::IntPtr native);
static NullStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static NullStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
NullStmt(); NullStmt();
@ -323,8 +323,8 @@ namespace CppSharp
{ {
public: public:
CompoundStmt(struct ::CppSharp::CppParser::AST::CompoundStmt* native); CompoundStmt(class ::CppSharp::CppParser::AST::CompoundStmt* native);
CompoundStmt(struct ::CppSharp::CppParser::AST::CompoundStmt* native, bool ownNativeInstance); CompoundStmt(class ::CppSharp::CppParser::AST::CompoundStmt* native, bool ownNativeInstance);
static CompoundStmt^ __CreateInstance(::System::IntPtr native); static CompoundStmt^ __CreateInstance(::System::IntPtr native);
static CompoundStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static CompoundStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CompoundStmt(); CompoundStmt();
@ -391,8 +391,8 @@ namespace CppSharp
{ {
public: public:
SwitchCase(struct ::CppSharp::CppParser::AST::SwitchCase* native); SwitchCase(class ::CppSharp::CppParser::AST::SwitchCase* native);
SwitchCase(struct ::CppSharp::CppParser::AST::SwitchCase* native, bool ownNativeInstance); SwitchCase(class ::CppSharp::CppParser::AST::SwitchCase* native, bool ownNativeInstance);
static SwitchCase^ __CreateInstance(::System::IntPtr native); static SwitchCase^ __CreateInstance(::System::IntPtr native);
static SwitchCase^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static SwitchCase^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SwitchCase(); SwitchCase();
@ -428,8 +428,8 @@ namespace CppSharp
{ {
public: public:
CaseStmt(struct ::CppSharp::CppParser::AST::CaseStmt* native); CaseStmt(class ::CppSharp::CppParser::AST::CaseStmt* native);
CaseStmt(struct ::CppSharp::CppParser::AST::CaseStmt* native, bool ownNativeInstance); CaseStmt(class ::CppSharp::CppParser::AST::CaseStmt* native, bool ownNativeInstance);
static CaseStmt^ __CreateInstance(::System::IntPtr native); static CaseStmt^ __CreateInstance(::System::IntPtr native);
static CaseStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static CaseStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CaseStmt(); CaseStmt();
@ -473,8 +473,8 @@ namespace CppSharp
{ {
public: public:
DefaultStmt(struct ::CppSharp::CppParser::AST::DefaultStmt* native); DefaultStmt(class ::CppSharp::CppParser::AST::DefaultStmt* native);
DefaultStmt(struct ::CppSharp::CppParser::AST::DefaultStmt* native, bool ownNativeInstance); DefaultStmt(class ::CppSharp::CppParser::AST::DefaultStmt* native, bool ownNativeInstance);
static DefaultStmt^ __CreateInstance(::System::IntPtr native); static DefaultStmt^ __CreateInstance(::System::IntPtr native);
static DefaultStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static DefaultStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DefaultStmt(); DefaultStmt();
@ -494,8 +494,8 @@ namespace CppSharp
{ {
public: public:
LabelStmt(struct ::CppSharp::CppParser::AST::LabelStmt* native); LabelStmt(class ::CppSharp::CppParser::AST::LabelStmt* native);
LabelStmt(struct ::CppSharp::CppParser::AST::LabelStmt* native, bool ownNativeInstance); LabelStmt(class ::CppSharp::CppParser::AST::LabelStmt* native, bool ownNativeInstance);
static LabelStmt^ __CreateInstance(::System::IntPtr native); static LabelStmt^ __CreateInstance(::System::IntPtr native);
static LabelStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static LabelStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
LabelStmt(); LabelStmt();
@ -527,8 +527,8 @@ namespace CppSharp
{ {
public: public:
AttributedStmt(struct ::CppSharp::CppParser::AST::AttributedStmt* native); AttributedStmt(class ::CppSharp::CppParser::AST::AttributedStmt* native);
AttributedStmt(struct ::CppSharp::CppParser::AST::AttributedStmt* native, bool ownNativeInstance); AttributedStmt(class ::CppSharp::CppParser::AST::AttributedStmt* native, bool ownNativeInstance);
static AttributedStmt^ __CreateInstance(::System::IntPtr native); static AttributedStmt^ __CreateInstance(::System::IntPtr native);
static AttributedStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static AttributedStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
AttributedStmt(); AttributedStmt();
@ -554,8 +554,8 @@ namespace CppSharp
{ {
public: public:
IfStmt(struct ::CppSharp::CppParser::AST::IfStmt* native); IfStmt(class ::CppSharp::CppParser::AST::IfStmt* native);
IfStmt(struct ::CppSharp::CppParser::AST::IfStmt* native, bool ownNativeInstance); IfStmt(class ::CppSharp::CppParser::AST::IfStmt* native, bool ownNativeInstance);
static IfStmt^ __CreateInstance(::System::IntPtr native); static IfStmt^ __CreateInstance(::System::IntPtr native);
static IfStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static IfStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
IfStmt(); IfStmt();
@ -641,8 +641,8 @@ namespace CppSharp
{ {
public: public:
SwitchStmt(struct ::CppSharp::CppParser::AST::SwitchStmt* native); SwitchStmt(class ::CppSharp::CppParser::AST::SwitchStmt* native);
SwitchStmt(struct ::CppSharp::CppParser::AST::SwitchStmt* native, bool ownNativeInstance); SwitchStmt(class ::CppSharp::CppParser::AST::SwitchStmt* native, bool ownNativeInstance);
static SwitchStmt^ __CreateInstance(::System::IntPtr native); static SwitchStmt^ __CreateInstance(::System::IntPtr native);
static SwitchStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static SwitchStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SwitchStmt(); SwitchStmt();
@ -704,8 +704,8 @@ namespace CppSharp
{ {
public: public:
WhileStmt(struct ::CppSharp::CppParser::AST::WhileStmt* native); WhileStmt(class ::CppSharp::CppParser::AST::WhileStmt* native);
WhileStmt(struct ::CppSharp::CppParser::AST::WhileStmt* native, bool ownNativeInstance); WhileStmt(class ::CppSharp::CppParser::AST::WhileStmt* native, bool ownNativeInstance);
static WhileStmt^ __CreateInstance(::System::IntPtr native); static WhileStmt^ __CreateInstance(::System::IntPtr native);
static WhileStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static WhileStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
WhileStmt(); WhileStmt();
@ -749,8 +749,8 @@ namespace CppSharp
{ {
public: public:
DoStmt(struct ::CppSharp::CppParser::AST::DoStmt* native); DoStmt(class ::CppSharp::CppParser::AST::DoStmt* native);
DoStmt(struct ::CppSharp::CppParser::AST::DoStmt* native, bool ownNativeInstance); DoStmt(class ::CppSharp::CppParser::AST::DoStmt* native, bool ownNativeInstance);
static DoStmt^ __CreateInstance(::System::IntPtr native); static DoStmt^ __CreateInstance(::System::IntPtr native);
static DoStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static DoStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DoStmt(); DoStmt();
@ -794,8 +794,8 @@ namespace CppSharp
{ {
public: public:
ForStmt(struct ::CppSharp::CppParser::AST::ForStmt* native); ForStmt(class ::CppSharp::CppParser::AST::ForStmt* native);
ForStmt(struct ::CppSharp::CppParser::AST::ForStmt* native, bool ownNativeInstance); ForStmt(class ::CppSharp::CppParser::AST::ForStmt* native, bool ownNativeInstance);
static ForStmt^ __CreateInstance(::System::IntPtr native); static ForStmt^ __CreateInstance(::System::IntPtr native);
static ForStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static ForStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ForStmt(); ForStmt();
@ -857,8 +857,8 @@ namespace CppSharp
{ {
public: public:
GotoStmt(struct ::CppSharp::CppParser::AST::GotoStmt* native); GotoStmt(class ::CppSharp::CppParser::AST::GotoStmt* native);
GotoStmt(struct ::CppSharp::CppParser::AST::GotoStmt* native, bool ownNativeInstance); GotoStmt(class ::CppSharp::CppParser::AST::GotoStmt* native, bool ownNativeInstance);
static GotoStmt^ __CreateInstance(::System::IntPtr native); static GotoStmt^ __CreateInstance(::System::IntPtr native);
static GotoStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static GotoStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
GotoStmt(); GotoStmt();
@ -884,8 +884,8 @@ namespace CppSharp
{ {
public: public:
IndirectGotoStmt(struct ::CppSharp::CppParser::AST::IndirectGotoStmt* native); IndirectGotoStmt(class ::CppSharp::CppParser::AST::IndirectGotoStmt* native);
IndirectGotoStmt(struct ::CppSharp::CppParser::AST::IndirectGotoStmt* native, bool ownNativeInstance); IndirectGotoStmt(class ::CppSharp::CppParser::AST::IndirectGotoStmt* native, bool ownNativeInstance);
static IndirectGotoStmt^ __CreateInstance(::System::IntPtr native); static IndirectGotoStmt^ __CreateInstance(::System::IntPtr native);
static IndirectGotoStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static IndirectGotoStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
IndirectGotoStmt(); IndirectGotoStmt();
@ -917,8 +917,8 @@ namespace CppSharp
{ {
public: public:
ContinueStmt(struct ::CppSharp::CppParser::AST::ContinueStmt* native); ContinueStmt(class ::CppSharp::CppParser::AST::ContinueStmt* native);
ContinueStmt(struct ::CppSharp::CppParser::AST::ContinueStmt* native, bool ownNativeInstance); ContinueStmt(class ::CppSharp::CppParser::AST::ContinueStmt* native, bool ownNativeInstance);
static ContinueStmt^ __CreateInstance(::System::IntPtr native); static ContinueStmt^ __CreateInstance(::System::IntPtr native);
static ContinueStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static ContinueStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ContinueStmt(); ContinueStmt();
@ -938,8 +938,8 @@ namespace CppSharp
{ {
public: public:
BreakStmt(struct ::CppSharp::CppParser::AST::BreakStmt* native); BreakStmt(class ::CppSharp::CppParser::AST::BreakStmt* native);
BreakStmt(struct ::CppSharp::CppParser::AST::BreakStmt* native, bool ownNativeInstance); BreakStmt(class ::CppSharp::CppParser::AST::BreakStmt* native, bool ownNativeInstance);
static BreakStmt^ __CreateInstance(::System::IntPtr native); static BreakStmt^ __CreateInstance(::System::IntPtr native);
static BreakStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static BreakStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
BreakStmt(); BreakStmt();
@ -959,8 +959,8 @@ namespace CppSharp
{ {
public: public:
ReturnStmt(struct ::CppSharp::CppParser::AST::ReturnStmt* native); ReturnStmt(class ::CppSharp::CppParser::AST::ReturnStmt* native);
ReturnStmt(struct ::CppSharp::CppParser::AST::ReturnStmt* native, bool ownNativeInstance); ReturnStmt(class ::CppSharp::CppParser::AST::ReturnStmt* native, bool ownNativeInstance);
static ReturnStmt^ __CreateInstance(::System::IntPtr native); static ReturnStmt^ __CreateInstance(::System::IntPtr native);
static ReturnStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static ReturnStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ReturnStmt(); ReturnStmt();
@ -986,8 +986,8 @@ namespace CppSharp
{ {
public: public:
AsmStmt(struct ::CppSharp::CppParser::AST::AsmStmt* native); AsmStmt(class ::CppSharp::CppParser::AST::AsmStmt* native);
AsmStmt(struct ::CppSharp::CppParser::AST::AsmStmt* native, bool ownNativeInstance); AsmStmt(class ::CppSharp::CppParser::AST::AsmStmt* native, bool ownNativeInstance);
static AsmStmt^ __CreateInstance(::System::IntPtr native); static AsmStmt^ __CreateInstance(::System::IntPtr native);
static AsmStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static AsmStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
AsmStmt(); AsmStmt();
@ -1091,15 +1091,15 @@ namespace CppSharp
Operand = 1 Operand = 1
}; };
property struct ::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* NativePtr; property class ::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* NativePtr;
property ::System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual ::System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
AsmStringPiece(struct ::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* native); AsmStringPiece(class ::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* native);
AsmStringPiece(struct ::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* native, bool ownNativeInstance); AsmStringPiece(class ::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* native, bool ownNativeInstance);
static AsmStringPiece^ __CreateInstance(::System::IntPtr native); static AsmStringPiece^ __CreateInstance(::System::IntPtr native);
static AsmStringPiece^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static AsmStringPiece^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
AsmStringPiece(); AsmStringPiece();
@ -1143,8 +1143,8 @@ namespace CppSharp
bool __ownsNativeInstance; bool __ownsNativeInstance;
}; };
GCCAsmStmt(struct ::CppSharp::CppParser::AST::GCCAsmStmt* native); GCCAsmStmt(class ::CppSharp::CppParser::AST::GCCAsmStmt* native);
GCCAsmStmt(struct ::CppSharp::CppParser::AST::GCCAsmStmt* native, bool ownNativeInstance); GCCAsmStmt(class ::CppSharp::CppParser::AST::GCCAsmStmt* native, bool ownNativeInstance);
static GCCAsmStmt^ __CreateInstance(::System::IntPtr native); static GCCAsmStmt^ __CreateInstance(::System::IntPtr native);
static GCCAsmStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static GCCAsmStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
GCCAsmStmt(); GCCAsmStmt();
@ -1164,8 +1164,8 @@ namespace CppSharp
{ {
public: public:
MSAsmStmt(struct ::CppSharp::CppParser::AST::MSAsmStmt* native); MSAsmStmt(class ::CppSharp::CppParser::AST::MSAsmStmt* native);
MSAsmStmt(struct ::CppSharp::CppParser::AST::MSAsmStmt* native, bool ownNativeInstance); MSAsmStmt(class ::CppSharp::CppParser::AST::MSAsmStmt* native, bool ownNativeInstance);
static MSAsmStmt^ __CreateInstance(::System::IntPtr native); static MSAsmStmt^ __CreateInstance(::System::IntPtr native);
static MSAsmStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static MSAsmStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
MSAsmStmt(); MSAsmStmt();
@ -1203,8 +1203,8 @@ namespace CppSharp
{ {
public: public:
SEHExceptStmt(struct ::CppSharp::CppParser::AST::SEHExceptStmt* native); SEHExceptStmt(class ::CppSharp::CppParser::AST::SEHExceptStmt* native);
SEHExceptStmt(struct ::CppSharp::CppParser::AST::SEHExceptStmt* native, bool ownNativeInstance); SEHExceptStmt(class ::CppSharp::CppParser::AST::SEHExceptStmt* native, bool ownNativeInstance);
static SEHExceptStmt^ __CreateInstance(::System::IntPtr native); static SEHExceptStmt^ __CreateInstance(::System::IntPtr native);
static SEHExceptStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static SEHExceptStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SEHExceptStmt(); SEHExceptStmt();
@ -1236,8 +1236,8 @@ namespace CppSharp
{ {
public: public:
SEHFinallyStmt(struct ::CppSharp::CppParser::AST::SEHFinallyStmt* native); SEHFinallyStmt(class ::CppSharp::CppParser::AST::SEHFinallyStmt* native);
SEHFinallyStmt(struct ::CppSharp::CppParser::AST::SEHFinallyStmt* native, bool ownNativeInstance); SEHFinallyStmt(class ::CppSharp::CppParser::AST::SEHFinallyStmt* native, bool ownNativeInstance);
static SEHFinallyStmt^ __CreateInstance(::System::IntPtr native); static SEHFinallyStmt^ __CreateInstance(::System::IntPtr native);
static SEHFinallyStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static SEHFinallyStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SEHFinallyStmt(); SEHFinallyStmt();
@ -1263,8 +1263,8 @@ namespace CppSharp
{ {
public: public:
SEHTryStmt(struct ::CppSharp::CppParser::AST::SEHTryStmt* native); SEHTryStmt(class ::CppSharp::CppParser::AST::SEHTryStmt* native);
SEHTryStmt(struct ::CppSharp::CppParser::AST::SEHTryStmt* native, bool ownNativeInstance); SEHTryStmt(class ::CppSharp::CppParser::AST::SEHTryStmt* native, bool ownNativeInstance);
static SEHTryStmt^ __CreateInstance(::System::IntPtr native); static SEHTryStmt^ __CreateInstance(::System::IntPtr native);
static SEHTryStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static SEHTryStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SEHTryStmt(); SEHTryStmt();
@ -1314,8 +1314,8 @@ namespace CppSharp
{ {
public: public:
SEHLeaveStmt(struct ::CppSharp::CppParser::AST::SEHLeaveStmt* native); SEHLeaveStmt(class ::CppSharp::CppParser::AST::SEHLeaveStmt* native);
SEHLeaveStmt(struct ::CppSharp::CppParser::AST::SEHLeaveStmt* native, bool ownNativeInstance); SEHLeaveStmt(class ::CppSharp::CppParser::AST::SEHLeaveStmt* native, bool ownNativeInstance);
static SEHLeaveStmt^ __CreateInstance(::System::IntPtr native); static SEHLeaveStmt^ __CreateInstance(::System::IntPtr native);
static SEHLeaveStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static SEHLeaveStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SEHLeaveStmt(); SEHLeaveStmt();
@ -1347,15 +1347,15 @@ namespace CppSharp
{ {
public: public:
property struct ::CppSharp::CppParser::AST::CapturedStmt::Capture* NativePtr; property class ::CppSharp::CppParser::AST::CapturedStmt::Capture* NativePtr;
property ::System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual ::System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
Capture(struct ::CppSharp::CppParser::AST::CapturedStmt::Capture* native); Capture(class ::CppSharp::CppParser::AST::CapturedStmt::Capture* native);
Capture(struct ::CppSharp::CppParser::AST::CapturedStmt::Capture* native, bool ownNativeInstance); Capture(class ::CppSharp::CppParser::AST::CapturedStmt::Capture* native, bool ownNativeInstance);
static Capture^ __CreateInstance(::System::IntPtr native); static Capture^ __CreateInstance(::System::IntPtr native);
static Capture^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static Capture^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Capture(); Capture();
@ -1405,8 +1405,8 @@ namespace CppSharp
bool __ownsNativeInstance; bool __ownsNativeInstance;
}; };
CapturedStmt(struct ::CppSharp::CppParser::AST::CapturedStmt* native); CapturedStmt(class ::CppSharp::CppParser::AST::CapturedStmt* native);
CapturedStmt(struct ::CppSharp::CppParser::AST::CapturedStmt* native, bool ownNativeInstance); CapturedStmt(class ::CppSharp::CppParser::AST::CapturedStmt* native, bool ownNativeInstance);
static CapturedStmt^ __CreateInstance(::System::IntPtr native); static CapturedStmt^ __CreateInstance(::System::IntPtr native);
static CapturedStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static CapturedStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CapturedStmt(); CapturedStmt();
@ -1449,8 +1449,8 @@ namespace CppSharp
{ {
public: public:
CXXCatchStmt(struct ::CppSharp::CppParser::AST::CXXCatchStmt* native); CXXCatchStmt(class ::CppSharp::CppParser::AST::CXXCatchStmt* native);
CXXCatchStmt(struct ::CppSharp::CppParser::AST::CXXCatchStmt* native, bool ownNativeInstance); CXXCatchStmt(class ::CppSharp::CppParser::AST::CXXCatchStmt* native, bool ownNativeInstance);
static CXXCatchStmt^ __CreateInstance(::System::IntPtr native); static CXXCatchStmt^ __CreateInstance(::System::IntPtr native);
static CXXCatchStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static CXXCatchStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CXXCatchStmt(); CXXCatchStmt();
@ -1482,8 +1482,8 @@ namespace CppSharp
{ {
public: public:
CXXTryStmt(struct ::CppSharp::CppParser::AST::CXXTryStmt* native); CXXTryStmt(class ::CppSharp::CppParser::AST::CXXTryStmt* native);
CXXTryStmt(struct ::CppSharp::CppParser::AST::CXXTryStmt* native, bool ownNativeInstance); CXXTryStmt(class ::CppSharp::CppParser::AST::CXXTryStmt* native, bool ownNativeInstance);
static CXXTryStmt^ __CreateInstance(::System::IntPtr native); static CXXTryStmt^ __CreateInstance(::System::IntPtr native);
static CXXTryStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static CXXTryStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CXXTryStmt(); CXXTryStmt();
@ -1515,8 +1515,8 @@ namespace CppSharp
{ {
public: public:
CXXForRangeStmt(struct ::CppSharp::CppParser::AST::CXXForRangeStmt* native); CXXForRangeStmt(class ::CppSharp::CppParser::AST::CXXForRangeStmt* native);
CXXForRangeStmt(struct ::CppSharp::CppParser::AST::CXXForRangeStmt* native, bool ownNativeInstance); CXXForRangeStmt(class ::CppSharp::CppParser::AST::CXXForRangeStmt* native, bool ownNativeInstance);
static CXXForRangeStmt^ __CreateInstance(::System::IntPtr native); static CXXForRangeStmt^ __CreateInstance(::System::IntPtr native);
static CXXForRangeStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static CXXForRangeStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CXXForRangeStmt(); CXXForRangeStmt();
@ -1608,8 +1608,8 @@ namespace CppSharp
{ {
public: public:
MSDependentExistsStmt(struct ::CppSharp::CppParser::AST::MSDependentExistsStmt* native); MSDependentExistsStmt(class ::CppSharp::CppParser::AST::MSDependentExistsStmt* native);
MSDependentExistsStmt(struct ::CppSharp::CppParser::AST::MSDependentExistsStmt* native, bool ownNativeInstance); MSDependentExistsStmt(class ::CppSharp::CppParser::AST::MSDependentExistsStmt* native, bool ownNativeInstance);
static MSDependentExistsStmt^ __CreateInstance(::System::IntPtr native); static MSDependentExistsStmt^ __CreateInstance(::System::IntPtr native);
static MSDependentExistsStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static MSDependentExistsStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
MSDependentExistsStmt(); MSDependentExistsStmt();
@ -1668,15 +1668,15 @@ namespace CppSharp
{ {
public: public:
property struct ::CppSharp::CppParser::AST::CoroutineBodyStmt::CtorArgs* NativePtr; property class ::CppSharp::CppParser::AST::CoroutineBodyStmt::CtorArgs* NativePtr;
property ::System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual ::System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
CtorArgs(struct ::CppSharp::CppParser::AST::CoroutineBodyStmt::CtorArgs* native); CtorArgs(class ::CppSharp::CppParser::AST::CoroutineBodyStmt::CtorArgs* native);
CtorArgs(struct ::CppSharp::CppParser::AST::CoroutineBodyStmt::CtorArgs* native, bool ownNativeInstance); CtorArgs(class ::CppSharp::CppParser::AST::CoroutineBodyStmt::CtorArgs* native, bool ownNativeInstance);
static CtorArgs^ __CreateInstance(::System::IntPtr native); static CtorArgs^ __CreateInstance(::System::IntPtr native);
static CtorArgs^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static CtorArgs^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CtorArgs(); CtorArgs();
@ -1690,8 +1690,8 @@ namespace CppSharp
bool __ownsNativeInstance; bool __ownsNativeInstance;
}; };
CoroutineBodyStmt(struct ::CppSharp::CppParser::AST::CoroutineBodyStmt* native); CoroutineBodyStmt(class ::CppSharp::CppParser::AST::CoroutineBodyStmt* native);
CoroutineBodyStmt(struct ::CppSharp::CppParser::AST::CoroutineBodyStmt* native, bool ownNativeInstance); CoroutineBodyStmt(class ::CppSharp::CppParser::AST::CoroutineBodyStmt* native, bool ownNativeInstance);
static CoroutineBodyStmt^ __CreateInstance(::System::IntPtr native); static CoroutineBodyStmt^ __CreateInstance(::System::IntPtr native);
static CoroutineBodyStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static CoroutineBodyStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CoroutineBodyStmt(); CoroutineBodyStmt();
@ -1790,8 +1790,8 @@ namespace CppSharp
Count = 2 Count = 2
}; };
CoreturnStmt(struct ::CppSharp::CppParser::AST::CoreturnStmt* native); CoreturnStmt(class ::CppSharp::CppParser::AST::CoreturnStmt* native);
CoreturnStmt(struct ::CppSharp::CppParser::AST::CoreturnStmt* native, bool ownNativeInstance); CoreturnStmt(class ::CppSharp::CppParser::AST::CoreturnStmt* native, bool ownNativeInstance);
static CoreturnStmt^ __CreateInstance(::System::IntPtr native); static CoreturnStmt^ __CreateInstance(::System::IntPtr native);
static CoreturnStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static CoreturnStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CoreturnStmt(); 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
{ {
public: public:
property struct ::CppSharp::CppParser::AST::Type* NativePtr; property class ::CppSharp::CppParser::AST::Type* NativePtr;
property ::System::IntPtr __Instance property ::System::IntPtr __Instance
{ {
virtual ::System::IntPtr get(); virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance); virtual void set(::System::IntPtr instance);
} }
Type(struct ::CppSharp::CppParser::AST::Type* native); Type(class ::CppSharp::CppParser::AST::Type* native);
Type(struct ::CppSharp::CppParser::AST::Type* native, bool ownNativeInstance); Type(class ::CppSharp::CppParser::AST::Type* native, bool ownNativeInstance);
static Type^ __CreateInstance(::System::IntPtr native); static Type^ __CreateInstance(::System::IntPtr native);
static Type^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static Type^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Type(CppSharp::Parser::AST::TypeKind kind); Type(CppSharp::Parser::AST::TypeKind kind);
@ -262,8 +262,8 @@ namespace CppSharp
{ {
public: public:
TagType(struct ::CppSharp::CppParser::AST::TagType* native); TagType(class ::CppSharp::CppParser::AST::TagType* native);
TagType(struct ::CppSharp::CppParser::AST::TagType* native, bool ownNativeInstance); TagType(class ::CppSharp::CppParser::AST::TagType* native, bool ownNativeInstance);
static TagType^ __CreateInstance(::System::IntPtr native); static TagType^ __CreateInstance(::System::IntPtr native);
static TagType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static TagType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TagType(); TagType();
@ -291,8 +291,8 @@ namespace CppSharp
Incomplete = 3 Incomplete = 3
}; };
ArrayType(struct ::CppSharp::CppParser::AST::ArrayType* native); ArrayType(class ::CppSharp::CppParser::AST::ArrayType* native);
ArrayType(struct ::CppSharp::CppParser::AST::ArrayType* native, bool ownNativeInstance); ArrayType(class ::CppSharp::CppParser::AST::ArrayType* native, bool ownNativeInstance);
static ArrayType^ __CreateInstance(::System::IntPtr native); static ArrayType^ __CreateInstance(::System::IntPtr native);
static ArrayType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static ArrayType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ArrayType(); ArrayType();
@ -330,8 +330,8 @@ namespace CppSharp
{ {
public: public:
FunctionType(struct ::CppSharp::CppParser::AST::FunctionType* native); FunctionType(class ::CppSharp::CppParser::AST::FunctionType* native);
FunctionType(struct ::CppSharp::CppParser::AST::FunctionType* native, bool ownNativeInstance); FunctionType(class ::CppSharp::CppParser::AST::FunctionType* native, bool ownNativeInstance);
static FunctionType^ __CreateInstance(::System::IntPtr native); static FunctionType^ __CreateInstance(::System::IntPtr native);
static FunctionType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static FunctionType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
FunctionType(); FunctionType();
@ -388,8 +388,8 @@ namespace CppSharp
RVReference = 3 RVReference = 3
}; };
PointerType(struct ::CppSharp::CppParser::AST::PointerType* native); PointerType(class ::CppSharp::CppParser::AST::PointerType* native);
PointerType(struct ::CppSharp::CppParser::AST::PointerType* native, bool ownNativeInstance); PointerType(class ::CppSharp::CppParser::AST::PointerType* native, bool ownNativeInstance);
static PointerType^ __CreateInstance(::System::IntPtr native); static PointerType^ __CreateInstance(::System::IntPtr native);
static PointerType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static PointerType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
PointerType(); PointerType();
@ -415,8 +415,8 @@ namespace CppSharp
{ {
public: public:
MemberPointerType(struct ::CppSharp::CppParser::AST::MemberPointerType* native); MemberPointerType(class ::CppSharp::CppParser::AST::MemberPointerType* native);
MemberPointerType(struct ::CppSharp::CppParser::AST::MemberPointerType* native, bool ownNativeInstance); MemberPointerType(class ::CppSharp::CppParser::AST::MemberPointerType* native, bool ownNativeInstance);
static MemberPointerType^ __CreateInstance(::System::IntPtr native); static MemberPointerType^ __CreateInstance(::System::IntPtr native);
static MemberPointerType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static MemberPointerType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
MemberPointerType(); MemberPointerType();
@ -436,8 +436,8 @@ namespace CppSharp
{ {
public: public:
TypedefType(struct ::CppSharp::CppParser::AST::TypedefType* native); TypedefType(class ::CppSharp::CppParser::AST::TypedefType* native);
TypedefType(struct ::CppSharp::CppParser::AST::TypedefType* native, bool ownNativeInstance); TypedefType(class ::CppSharp::CppParser::AST::TypedefType* native, bool ownNativeInstance);
static TypedefType^ __CreateInstance(::System::IntPtr native); static TypedefType^ __CreateInstance(::System::IntPtr native);
static TypedefType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static TypedefType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TypedefType(); TypedefType();
@ -457,8 +457,8 @@ namespace CppSharp
{ {
public: public:
AttributedType(struct ::CppSharp::CppParser::AST::AttributedType* native); AttributedType(class ::CppSharp::CppParser::AST::AttributedType* native);
AttributedType(struct ::CppSharp::CppParser::AST::AttributedType* native, bool ownNativeInstance); AttributedType(class ::CppSharp::CppParser::AST::AttributedType* native, bool ownNativeInstance);
static AttributedType^ __CreateInstance(::System::IntPtr native); static AttributedType^ __CreateInstance(::System::IntPtr native);
static AttributedType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static AttributedType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
AttributedType(); AttributedType();
@ -484,8 +484,8 @@ namespace CppSharp
{ {
public: public:
DecayedType(struct ::CppSharp::CppParser::AST::DecayedType* native); DecayedType(class ::CppSharp::CppParser::AST::DecayedType* native);
DecayedType(struct ::CppSharp::CppParser::AST::DecayedType* native, bool ownNativeInstance); DecayedType(class ::CppSharp::CppParser::AST::DecayedType* native, bool ownNativeInstance);
static DecayedType^ __CreateInstance(::System::IntPtr native); static DecayedType^ __CreateInstance(::System::IntPtr native);
static DecayedType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static DecayedType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DecayedType(); DecayedType();
@ -579,8 +579,8 @@ namespace CppSharp
{ {
public: public:
TemplateSpecializationType(struct ::CppSharp::CppParser::AST::TemplateSpecializationType* native); TemplateSpecializationType(class ::CppSharp::CppParser::AST::TemplateSpecializationType* native);
TemplateSpecializationType(struct ::CppSharp::CppParser::AST::TemplateSpecializationType* native, bool ownNativeInstance); TemplateSpecializationType(class ::CppSharp::CppParser::AST::TemplateSpecializationType* native, bool ownNativeInstance);
static TemplateSpecializationType^ __CreateInstance(::System::IntPtr native); static TemplateSpecializationType^ __CreateInstance(::System::IntPtr native);
static TemplateSpecializationType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static TemplateSpecializationType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TemplateSpecializationType(); TemplateSpecializationType();
@ -623,8 +623,8 @@ namespace CppSharp
{ {
public: public:
DependentTemplateSpecializationType(struct ::CppSharp::CppParser::AST::DependentTemplateSpecializationType* native); DependentTemplateSpecializationType(class ::CppSharp::CppParser::AST::DependentTemplateSpecializationType* native);
DependentTemplateSpecializationType(struct ::CppSharp::CppParser::AST::DependentTemplateSpecializationType* native, bool ownNativeInstance); DependentTemplateSpecializationType(class ::CppSharp::CppParser::AST::DependentTemplateSpecializationType* native, bool ownNativeInstance);
static DependentTemplateSpecializationType^ __CreateInstance(::System::IntPtr native); static DependentTemplateSpecializationType^ __CreateInstance(::System::IntPtr native);
static DependentTemplateSpecializationType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static DependentTemplateSpecializationType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DependentTemplateSpecializationType(); DependentTemplateSpecializationType();
@ -661,8 +661,8 @@ namespace CppSharp
{ {
public: public:
TemplateParameterType(struct ::CppSharp::CppParser::AST::TemplateParameterType* native); TemplateParameterType(class ::CppSharp::CppParser::AST::TemplateParameterType* native);
TemplateParameterType(struct ::CppSharp::CppParser::AST::TemplateParameterType* native, bool ownNativeInstance); TemplateParameterType(class ::CppSharp::CppParser::AST::TemplateParameterType* native, bool ownNativeInstance);
static TemplateParameterType^ __CreateInstance(::System::IntPtr native); static TemplateParameterType^ __CreateInstance(::System::IntPtr native);
static TemplateParameterType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static TemplateParameterType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TemplateParameterType(); TemplateParameterType();
@ -700,8 +700,8 @@ namespace CppSharp
{ {
public: public:
TemplateParameterSubstitutionType(struct ::CppSharp::CppParser::AST::TemplateParameterSubstitutionType* native); TemplateParameterSubstitutionType(class ::CppSharp::CppParser::AST::TemplateParameterSubstitutionType* native);
TemplateParameterSubstitutionType(struct ::CppSharp::CppParser::AST::TemplateParameterSubstitutionType* native, bool ownNativeInstance); TemplateParameterSubstitutionType(class ::CppSharp::CppParser::AST::TemplateParameterSubstitutionType* native, bool ownNativeInstance);
static TemplateParameterSubstitutionType^ __CreateInstance(::System::IntPtr native); static TemplateParameterSubstitutionType^ __CreateInstance(::System::IntPtr native);
static TemplateParameterSubstitutionType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static TemplateParameterSubstitutionType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TemplateParameterSubstitutionType(); TemplateParameterSubstitutionType();
@ -727,8 +727,8 @@ namespace CppSharp
{ {
public: public:
InjectedClassNameType(struct ::CppSharp::CppParser::AST::InjectedClassNameType* native); InjectedClassNameType(class ::CppSharp::CppParser::AST::InjectedClassNameType* native);
InjectedClassNameType(struct ::CppSharp::CppParser::AST::InjectedClassNameType* native, bool ownNativeInstance); InjectedClassNameType(class ::CppSharp::CppParser::AST::InjectedClassNameType* native, bool ownNativeInstance);
static InjectedClassNameType^ __CreateInstance(::System::IntPtr native); static InjectedClassNameType^ __CreateInstance(::System::IntPtr native);
static InjectedClassNameType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static InjectedClassNameType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
InjectedClassNameType(); InjectedClassNameType();
@ -754,8 +754,8 @@ namespace CppSharp
{ {
public: public:
DependentNameType(struct ::CppSharp::CppParser::AST::DependentNameType* native); DependentNameType(class ::CppSharp::CppParser::AST::DependentNameType* native);
DependentNameType(struct ::CppSharp::CppParser::AST::DependentNameType* native, bool ownNativeInstance); DependentNameType(class ::CppSharp::CppParser::AST::DependentNameType* native, bool ownNativeInstance);
static DependentNameType^ __CreateInstance(::System::IntPtr native); static DependentNameType^ __CreateInstance(::System::IntPtr native);
static DependentNameType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static DependentNameType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DependentNameType(); DependentNameType();
@ -781,8 +781,8 @@ namespace CppSharp
{ {
public: public:
PackExpansionType(struct ::CppSharp::CppParser::AST::PackExpansionType* native); PackExpansionType(class ::CppSharp::CppParser::AST::PackExpansionType* native);
PackExpansionType(struct ::CppSharp::CppParser::AST::PackExpansionType* native, bool ownNativeInstance); PackExpansionType(class ::CppSharp::CppParser::AST::PackExpansionType* native, bool ownNativeInstance);
static PackExpansionType^ __CreateInstance(::System::IntPtr native); static PackExpansionType^ __CreateInstance(::System::IntPtr native);
static PackExpansionType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static PackExpansionType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
PackExpansionType(); PackExpansionType();
@ -796,8 +796,8 @@ namespace CppSharp
{ {
public: public:
UnaryTransformType(struct ::CppSharp::CppParser::AST::UnaryTransformType* native); UnaryTransformType(class ::CppSharp::CppParser::AST::UnaryTransformType* native);
UnaryTransformType(struct ::CppSharp::CppParser::AST::UnaryTransformType* native, bool ownNativeInstance); UnaryTransformType(class ::CppSharp::CppParser::AST::UnaryTransformType* native, bool ownNativeInstance);
static UnaryTransformType^ __CreateInstance(::System::IntPtr native); static UnaryTransformType^ __CreateInstance(::System::IntPtr native);
static UnaryTransformType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static UnaryTransformType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
UnaryTransformType(); UnaryTransformType();
@ -823,8 +823,8 @@ namespace CppSharp
{ {
public: public:
UnresolvedUsingType(struct ::CppSharp::CppParser::AST::UnresolvedUsingType* native); UnresolvedUsingType(class ::CppSharp::CppParser::AST::UnresolvedUsingType* native);
UnresolvedUsingType(struct ::CppSharp::CppParser::AST::UnresolvedUsingType* native, bool ownNativeInstance); UnresolvedUsingType(class ::CppSharp::CppParser::AST::UnresolvedUsingType* native, bool ownNativeInstance);
static UnresolvedUsingType^ __CreateInstance(::System::IntPtr native); static UnresolvedUsingType^ __CreateInstance(::System::IntPtr native);
static UnresolvedUsingType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static UnresolvedUsingType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
UnresolvedUsingType(); UnresolvedUsingType();
@ -844,8 +844,8 @@ namespace CppSharp
{ {
public: public:
VectorType(struct ::CppSharp::CppParser::AST::VectorType* native); VectorType(class ::CppSharp::CppParser::AST::VectorType* native);
VectorType(struct ::CppSharp::CppParser::AST::VectorType* native, bool ownNativeInstance); VectorType(class ::CppSharp::CppParser::AST::VectorType* native, bool ownNativeInstance);
static VectorType^ __CreateInstance(::System::IntPtr native); static VectorType^ __CreateInstance(::System::IntPtr native);
static VectorType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static VectorType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
VectorType(); VectorType();
@ -871,8 +871,8 @@ namespace CppSharp
{ {
public: public:
BuiltinType(struct ::CppSharp::CppParser::AST::BuiltinType* native); BuiltinType(class ::CppSharp::CppParser::AST::BuiltinType* native);
BuiltinType(struct ::CppSharp::CppParser::AST::BuiltinType* native, bool ownNativeInstance); BuiltinType(class ::CppSharp::CppParser::AST::BuiltinType* native, bool ownNativeInstance);
static BuiltinType^ __CreateInstance(::System::IntPtr native); static BuiltinType^ __CreateInstance(::System::IntPtr native);
static BuiltinType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance); static BuiltinType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
BuiltinType(); BuiltinType();

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save