Browse Source

Fix regressed marshalling of lists in C++/CLI

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/1621/head
Dimitar Dobrev 5 years ago
parent
commit
36c9e5f60a
  1. 803
      src/CppParser/Bindings/CLI/AST.cpp
  2. 268
      src/CppParser/Bindings/CLI/AST.h
  3. 514
      src/CppParser/Bindings/CLI/CppParser.cpp
  4. 194
      src/CppParser/Bindings/CLI/CppParser.h
  5. 2521
      src/CppParser/Bindings/CLI/Decl.cpp
  6. 608
      src/CppParser/Bindings/CLI/Decl.h
  7. 3643
      src/CppParser/Bindings/CLI/Expr.cpp
  8. 550
      src/CppParser/Bindings/CLI/Expr.h
  9. 42
      src/CppParser/Bindings/CLI/Sources.cpp
  10. 16
      src/CppParser/Bindings/CLI/Sources.h
  11. 1333
      src/CppParser/Bindings/CLI/Stmt.cpp
  12. 224
      src/CppParser/Bindings/CLI/Stmt.h
  13. 190
      src/CppParser/Bindings/CLI/Target.cpp
  14. 18
      src/CppParser/Bindings/CLI/Target.h
  15. 653
      src/CppParser/Bindings/CLI/Types.cpp
  16. 148
      src/CppParser/Bindings/CLI/Types.h
  17. 7
      src/Generator/Types/Std/Stdlib.CLI.cs

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

File diff suppressed because it is too large Load Diff

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

@ -88,15 +88,15 @@ namespace CppSharp @@ -88,15 +88,15 @@ namespace CppSharp
{
public:
property ::CppSharp::CppParser::AST::NativeLibrary* NativePtr;
property System::IntPtr __Instance
property struct ::CppSharp::CppParser::AST::NativeLibrary* NativePtr;
property ::System::IntPtr __Instance
{
virtual System::IntPtr get();
virtual void set(System::IntPtr instance);
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
NativeLibrary(::CppSharp::CppParser::AST::NativeLibrary* native);
NativeLibrary(::CppSharp::CppParser::AST::NativeLibrary* native, bool ownNativeInstance);
NativeLibrary(struct ::CppSharp::CppParser::AST::NativeLibrary* native);
NativeLibrary(struct ::CppSharp::CppParser::AST::NativeLibrary* native, bool ownNativeInstance);
static NativeLibrary^ __CreateInstance(::System::IntPtr native);
static NativeLibrary^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
NativeLibrary();
@ -105,10 +105,10 @@ namespace CppSharp @@ -105,10 +105,10 @@ namespace CppSharp
~NativeLibrary();
property System::String^ FileName
property ::System::String^ FileName
{
System::String^ get();
void set(System::String^);
::System::String^ get();
void set(::System::String^);
}
property CppSharp::Parser::AST::ArchType ArchType
@ -117,16 +117,16 @@ namespace CppSharp @@ -117,16 +117,16 @@ namespace CppSharp
void set(CppSharp::Parser::AST::ArchType);
}
property System::Collections::Generic::List<System::String^>^ Symbols
property ::System::Collections::Generic::List<::System::String^>^ Symbols
{
System::Collections::Generic::List<System::String^>^ get();
void set(System::Collections::Generic::List<System::String^>^);
::System::Collections::Generic::List<::System::String^>^ get();
void set(::System::Collections::Generic::List<::System::String^>^);
}
property System::Collections::Generic::List<System::String^>^ Dependencies
property ::System::Collections::Generic::List<::System::String^>^ Dependencies
{
System::Collections::Generic::List<System::String^>^ get();
void set(System::Collections::Generic::List<System::String^>^);
::System::Collections::Generic::List<::System::String^>^ get();
void set(::System::Collections::Generic::List<::System::String^>^);
}
property unsigned int SymbolsCount
@ -139,15 +139,15 @@ namespace CppSharp @@ -139,15 +139,15 @@ namespace CppSharp
unsigned int get();
}
System::String^ GetSymbols(unsigned int i);
::System::String^ GetSymbols(unsigned int i);
void AddSymbols(System::String^ s);
void AddSymbols(::System::String^ s);
void ClearSymbols();
System::String^ GetDependencies(unsigned int i);
::System::String^ GetDependencies(unsigned int i);
void AddDependencies(System::String^ s);
void AddDependencies(::System::String^ s);
void ClearDependencies();
@ -160,15 +160,15 @@ namespace CppSharp @@ -160,15 +160,15 @@ namespace CppSharp
{
public:
property ::CppSharp::CppParser::AST::Comment* NativePtr;
property System::IntPtr __Instance
property struct ::CppSharp::CppParser::AST::Comment* NativePtr;
property ::System::IntPtr __Instance
{
virtual System::IntPtr get();
virtual void set(System::IntPtr instance);
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
Comment(::CppSharp::CppParser::AST::Comment* native);
Comment(::CppSharp::CppParser::AST::Comment* native, bool ownNativeInstance);
Comment(struct ::CppSharp::CppParser::AST::Comment* native);
Comment(struct ::CppSharp::CppParser::AST::Comment* native, bool ownNativeInstance);
static Comment^ __CreateInstance(::System::IntPtr native);
static Comment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Comment(CppSharp::Parser::AST::CommentKind kind);
@ -194,8 +194,8 @@ namespace CppSharp @@ -194,8 +194,8 @@ namespace CppSharp
{
public:
BlockContentComment(::CppSharp::CppParser::AST::BlockContentComment* native);
BlockContentComment(::CppSharp::CppParser::AST::BlockContentComment* native, bool ownNativeInstance);
BlockContentComment(struct ::CppSharp::CppParser::AST::BlockContentComment* native);
BlockContentComment(struct ::CppSharp::CppParser::AST::BlockContentComment* native, bool ownNativeInstance);
static BlockContentComment^ __CreateInstance(::System::IntPtr native);
static BlockContentComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
BlockContentComment();
@ -213,8 +213,8 @@ namespace CppSharp @@ -213,8 +213,8 @@ namespace CppSharp
{
public:
FullComment(::CppSharp::CppParser::AST::FullComment* native);
FullComment(::CppSharp::CppParser::AST::FullComment* native, bool ownNativeInstance);
FullComment(struct ::CppSharp::CppParser::AST::FullComment* native);
FullComment(struct ::CppSharp::CppParser::AST::FullComment* native, bool ownNativeInstance);
static FullComment^ __CreateInstance(::System::IntPtr native);
static FullComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
FullComment();
@ -223,10 +223,10 @@ namespace CppSharp @@ -223,10 +223,10 @@ namespace CppSharp
~FullComment();
property System::Collections::Generic::List<CppSharp::Parser::AST::BlockContentComment^>^ Blocks
property ::System::Collections::Generic::List<CppSharp::Parser::AST::BlockContentComment^>^ Blocks
{
System::Collections::Generic::List<CppSharp::Parser::AST::BlockContentComment^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::BlockContentComment^>^);
::System::Collections::Generic::List<CppSharp::Parser::AST::BlockContentComment^>^ get();
void set(::System::Collections::Generic::List<CppSharp::Parser::AST::BlockContentComment^>^);
}
property unsigned int BlocksCount
@ -245,8 +245,8 @@ namespace CppSharp @@ -245,8 +245,8 @@ namespace CppSharp
{
public:
InlineContentComment(::CppSharp::CppParser::AST::InlineContentComment* native);
InlineContentComment(::CppSharp::CppParser::AST::InlineContentComment* native, bool ownNativeInstance);
InlineContentComment(struct ::CppSharp::CppParser::AST::InlineContentComment* native);
InlineContentComment(struct ::CppSharp::CppParser::AST::InlineContentComment* native, bool ownNativeInstance);
static InlineContentComment^ __CreateInstance(::System::IntPtr native);
static InlineContentComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
InlineContentComment();
@ -270,8 +270,8 @@ namespace CppSharp @@ -270,8 +270,8 @@ namespace CppSharp
{
public:
ParagraphComment(::CppSharp::CppParser::AST::ParagraphComment* native);
ParagraphComment(::CppSharp::CppParser::AST::ParagraphComment* native, bool ownNativeInstance);
ParagraphComment(struct ::CppSharp::CppParser::AST::ParagraphComment* native);
ParagraphComment(struct ::CppSharp::CppParser::AST::ParagraphComment* native, bool ownNativeInstance);
static ParagraphComment^ __CreateInstance(::System::IntPtr native);
static ParagraphComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ParagraphComment();
@ -286,10 +286,10 @@ namespace CppSharp @@ -286,10 +286,10 @@ namespace CppSharp
void set(bool);
}
property System::Collections::Generic::List<CppSharp::Parser::AST::InlineContentComment^>^ Content
property ::System::Collections::Generic::List<CppSharp::Parser::AST::InlineContentComment^>^ Content
{
System::Collections::Generic::List<CppSharp::Parser::AST::InlineContentComment^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::InlineContentComment^>^);
::System::Collections::Generic::List<CppSharp::Parser::AST::InlineContentComment^>^ get();
void set(::System::Collections::Generic::List<CppSharp::Parser::AST::InlineContentComment^>^);
}
property unsigned int ContentCount
@ -312,15 +312,15 @@ namespace CppSharp @@ -312,15 +312,15 @@ namespace CppSharp
{
public:
property ::CppSharp::CppParser::AST::BlockCommandComment::Argument* NativePtr;
property System::IntPtr __Instance
property struct ::CppSharp::CppParser::AST::BlockCommandComment::Argument* NativePtr;
property ::System::IntPtr __Instance
{
virtual System::IntPtr get();
virtual void set(System::IntPtr instance);
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
Argument(::CppSharp::CppParser::AST::BlockCommandComment::Argument* native);
Argument(::CppSharp::CppParser::AST::BlockCommandComment::Argument* native, bool ownNativeInstance);
Argument(struct ::CppSharp::CppParser::AST::BlockCommandComment::Argument* native);
Argument(struct ::CppSharp::CppParser::AST::BlockCommandComment::Argument* native, bool ownNativeInstance);
static Argument^ __CreateInstance(::System::IntPtr native);
static Argument^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Argument();
@ -329,10 +329,10 @@ namespace CppSharp @@ -329,10 +329,10 @@ namespace CppSharp
~Argument();
property System::String^ Text
property ::System::String^ Text
{
System::String^ get();
void set(System::String^);
::System::String^ get();
void set(::System::String^);
}
protected:
@ -340,8 +340,8 @@ namespace CppSharp @@ -340,8 +340,8 @@ namespace CppSharp
bool __ownsNativeInstance;
};
BlockCommandComment(::CppSharp::CppParser::AST::BlockCommandComment* native);
BlockCommandComment(::CppSharp::CppParser::AST::BlockCommandComment* native, bool ownNativeInstance);
BlockCommandComment(struct ::CppSharp::CppParser::AST::BlockCommandComment* native);
BlockCommandComment(struct ::CppSharp::CppParser::AST::BlockCommandComment* native, bool ownNativeInstance);
static BlockCommandComment^ __CreateInstance(::System::IntPtr native);
static BlockCommandComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
BlockCommandComment();
@ -364,10 +364,10 @@ namespace CppSharp @@ -364,10 +364,10 @@ namespace CppSharp
void set(CppSharp::Parser::AST::ParagraphComment^);
}
property System::Collections::Generic::List<CppSharp::Parser::AST::BlockCommandComment::Argument^>^ Arguments
property ::System::Collections::Generic::List<CppSharp::Parser::AST::BlockCommandComment::Argument^>^ Arguments
{
System::Collections::Generic::List<CppSharp::Parser::AST::BlockCommandComment::Argument^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::BlockCommandComment::Argument^>^);
::System::Collections::Generic::List<CppSharp::Parser::AST::BlockCommandComment::Argument^>^ get();
void set(::System::Collections::Generic::List<CppSharp::Parser::AST::BlockCommandComment::Argument^>^);
}
property unsigned int ArgumentsCount
@ -395,8 +395,8 @@ namespace CppSharp @@ -395,8 +395,8 @@ namespace CppSharp
InOut = 2
};
ParamCommandComment(::CppSharp::CppParser::AST::ParamCommandComment* native);
ParamCommandComment(::CppSharp::CppParser::AST::ParamCommandComment* native, bool ownNativeInstance);
ParamCommandComment(struct ::CppSharp::CppParser::AST::ParamCommandComment* native);
ParamCommandComment(struct ::CppSharp::CppParser::AST::ParamCommandComment* native, bool ownNativeInstance);
static ParamCommandComment^ __CreateInstance(::System::IntPtr native);
static ParamCommandComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ParamCommandComment();
@ -422,8 +422,8 @@ namespace CppSharp @@ -422,8 +422,8 @@ namespace CppSharp
{
public:
TParamCommandComment(::CppSharp::CppParser::AST::TParamCommandComment* native);
TParamCommandComment(::CppSharp::CppParser::AST::TParamCommandComment* native, bool ownNativeInstance);
TParamCommandComment(struct ::CppSharp::CppParser::AST::TParamCommandComment* native);
TParamCommandComment(struct ::CppSharp::CppParser::AST::TParamCommandComment* native, bool ownNativeInstance);
static TParamCommandComment^ __CreateInstance(::System::IntPtr native);
static TParamCommandComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TParamCommandComment();
@ -432,10 +432,10 @@ namespace CppSharp @@ -432,10 +432,10 @@ namespace CppSharp
~TParamCommandComment();
property System::Collections::Generic::List<unsigned int>^ Position
property ::System::Collections::Generic::List<unsigned int>^ Position
{
System::Collections::Generic::List<unsigned int>^ get();
void set(System::Collections::Generic::List<unsigned int>^);
::System::Collections::Generic::List<unsigned int>^ get();
void set(::System::Collections::Generic::List<unsigned int>^);
}
property unsigned int PositionCount
@ -445,7 +445,7 @@ namespace CppSharp @@ -445,7 +445,7 @@ namespace CppSharp
unsigned int GetPosition(unsigned int i);
void AddPosition([System::Runtime::InteropServices::In, System::Runtime::InteropServices::Out] unsigned int% s);
void AddPosition([::System::Runtime::InteropServices::In, ::System::Runtime::InteropServices::Out] unsigned int% s);
void ClearPosition();
};
@ -454,8 +454,8 @@ namespace CppSharp @@ -454,8 +454,8 @@ namespace CppSharp
{
public:
VerbatimBlockLineComment(::CppSharp::CppParser::AST::VerbatimBlockLineComment* native);
VerbatimBlockLineComment(::CppSharp::CppParser::AST::VerbatimBlockLineComment* native, bool ownNativeInstance);
VerbatimBlockLineComment(struct ::CppSharp::CppParser::AST::VerbatimBlockLineComment* native);
VerbatimBlockLineComment(struct ::CppSharp::CppParser::AST::VerbatimBlockLineComment* native, bool ownNativeInstance);
static VerbatimBlockLineComment^ __CreateInstance(::System::IntPtr native);
static VerbatimBlockLineComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
VerbatimBlockLineComment();
@ -464,10 +464,10 @@ namespace CppSharp @@ -464,10 +464,10 @@ namespace CppSharp
~VerbatimBlockLineComment();
property System::String^ Text
property ::System::String^ Text
{
System::String^ get();
void set(System::String^);
::System::String^ get();
void set(::System::String^);
}
};
@ -475,8 +475,8 @@ namespace CppSharp @@ -475,8 +475,8 @@ namespace CppSharp
{
public:
VerbatimBlockComment(::CppSharp::CppParser::AST::VerbatimBlockComment* native);
VerbatimBlockComment(::CppSharp::CppParser::AST::VerbatimBlockComment* native, bool ownNativeInstance);
VerbatimBlockComment(struct ::CppSharp::CppParser::AST::VerbatimBlockComment* native);
VerbatimBlockComment(struct ::CppSharp::CppParser::AST::VerbatimBlockComment* native, bool ownNativeInstance);
static VerbatimBlockComment^ __CreateInstance(::System::IntPtr native);
static VerbatimBlockComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
VerbatimBlockComment();
@ -485,10 +485,10 @@ namespace CppSharp @@ -485,10 +485,10 @@ namespace CppSharp
~VerbatimBlockComment();
property System::Collections::Generic::List<CppSharp::Parser::AST::VerbatimBlockLineComment^>^ Lines
property ::System::Collections::Generic::List<CppSharp::Parser::AST::VerbatimBlockLineComment^>^ Lines
{
System::Collections::Generic::List<CppSharp::Parser::AST::VerbatimBlockLineComment^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::VerbatimBlockLineComment^>^);
::System::Collections::Generic::List<CppSharp::Parser::AST::VerbatimBlockLineComment^>^ get();
void set(::System::Collections::Generic::List<CppSharp::Parser::AST::VerbatimBlockLineComment^>^);
}
property unsigned int LinesCount
@ -507,8 +507,8 @@ namespace CppSharp @@ -507,8 +507,8 @@ namespace CppSharp
{
public:
VerbatimLineComment(::CppSharp::CppParser::AST::VerbatimLineComment* native);
VerbatimLineComment(::CppSharp::CppParser::AST::VerbatimLineComment* native, bool ownNativeInstance);
VerbatimLineComment(struct ::CppSharp::CppParser::AST::VerbatimLineComment* native);
VerbatimLineComment(struct ::CppSharp::CppParser::AST::VerbatimLineComment* native, bool ownNativeInstance);
static VerbatimLineComment^ __CreateInstance(::System::IntPtr native);
static VerbatimLineComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
VerbatimLineComment();
@ -517,10 +517,10 @@ namespace CppSharp @@ -517,10 +517,10 @@ namespace CppSharp
~VerbatimLineComment();
property System::String^ Text
property ::System::String^ Text
{
System::String^ get();
void set(System::String^);
::System::String^ get();
void set(::System::String^);
}
};
@ -541,15 +541,15 @@ namespace CppSharp @@ -541,15 +541,15 @@ namespace CppSharp
{
public:
property ::CppSharp::CppParser::AST::InlineCommandComment::Argument* NativePtr;
property System::IntPtr __Instance
property struct ::CppSharp::CppParser::AST::InlineCommandComment::Argument* NativePtr;
property ::System::IntPtr __Instance
{
virtual System::IntPtr get();
virtual void set(System::IntPtr instance);
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
Argument(::CppSharp::CppParser::AST::InlineCommandComment::Argument* native);
Argument(::CppSharp::CppParser::AST::InlineCommandComment::Argument* native, bool ownNativeInstance);
Argument(struct ::CppSharp::CppParser::AST::InlineCommandComment::Argument* native);
Argument(struct ::CppSharp::CppParser::AST::InlineCommandComment::Argument* native, bool ownNativeInstance);
static Argument^ __CreateInstance(::System::IntPtr native);
static Argument^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Argument();
@ -558,10 +558,10 @@ namespace CppSharp @@ -558,10 +558,10 @@ namespace CppSharp
~Argument();
property System::String^ Text
property ::System::String^ Text
{
System::String^ get();
void set(System::String^);
::System::String^ get();
void set(::System::String^);
}
protected:
@ -569,8 +569,8 @@ namespace CppSharp @@ -569,8 +569,8 @@ namespace CppSharp
bool __ownsNativeInstance;
};
InlineCommandComment(::CppSharp::CppParser::AST::InlineCommandComment* native);
InlineCommandComment(::CppSharp::CppParser::AST::InlineCommandComment* native, bool ownNativeInstance);
InlineCommandComment(struct ::CppSharp::CppParser::AST::InlineCommandComment* native);
InlineCommandComment(struct ::CppSharp::CppParser::AST::InlineCommandComment* native, bool ownNativeInstance);
static InlineCommandComment^ __CreateInstance(::System::IntPtr native);
static InlineCommandComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
InlineCommandComment();
@ -591,10 +591,10 @@ namespace CppSharp @@ -591,10 +591,10 @@ namespace CppSharp
void set(CppSharp::Parser::AST::InlineCommandComment::RenderKind);
}
property System::Collections::Generic::List<CppSharp::Parser::AST::InlineCommandComment::Argument^>^ Arguments
property ::System::Collections::Generic::List<CppSharp::Parser::AST::InlineCommandComment::Argument^>^ Arguments
{
System::Collections::Generic::List<CppSharp::Parser::AST::InlineCommandComment::Argument^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::InlineCommandComment::Argument^>^);
::System::Collections::Generic::List<CppSharp::Parser::AST::InlineCommandComment::Argument^>^ get();
void set(::System::Collections::Generic::List<CppSharp::Parser::AST::InlineCommandComment::Argument^>^);
}
property unsigned int ArgumentsCount
@ -613,8 +613,8 @@ namespace CppSharp @@ -613,8 +613,8 @@ namespace CppSharp
{
public:
HTMLTagComment(::CppSharp::CppParser::AST::HTMLTagComment* native);
HTMLTagComment(::CppSharp::CppParser::AST::HTMLTagComment* native, bool ownNativeInstance);
HTMLTagComment(struct ::CppSharp::CppParser::AST::HTMLTagComment* native);
HTMLTagComment(struct ::CppSharp::CppParser::AST::HTMLTagComment* native, bool ownNativeInstance);
static HTMLTagComment^ __CreateInstance(::System::IntPtr native);
static HTMLTagComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
HTMLTagComment();
@ -636,15 +636,15 @@ namespace CppSharp @@ -636,15 +636,15 @@ namespace CppSharp
{
public:
property ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute* NativePtr;
property System::IntPtr __Instance
property struct ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute* NativePtr;
property ::System::IntPtr __Instance
{
virtual System::IntPtr get();
virtual void set(System::IntPtr instance);
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
Attribute(::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute* native);
Attribute(::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute* native, bool ownNativeInstance);
Attribute(struct ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute* native);
Attribute(struct ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute* native, bool ownNativeInstance);
static Attribute^ __CreateInstance(::System::IntPtr native);
static Attribute^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Attribute();
@ -653,16 +653,16 @@ namespace CppSharp @@ -653,16 +653,16 @@ namespace CppSharp
~Attribute();
property System::String^ Name
property ::System::String^ Name
{
System::String^ get();
void set(System::String^);
::System::String^ get();
void set(::System::String^);
}
property System::String^ Value
property ::System::String^ Value
{
System::String^ get();
void set(System::String^);
::System::String^ get();
void set(::System::String^);
}
protected:
@ -670,8 +670,8 @@ namespace CppSharp @@ -670,8 +670,8 @@ namespace CppSharp
bool __ownsNativeInstance;
};
HTMLStartTagComment(::CppSharp::CppParser::AST::HTMLStartTagComment* native);
HTMLStartTagComment(::CppSharp::CppParser::AST::HTMLStartTagComment* native, bool ownNativeInstance);
HTMLStartTagComment(struct ::CppSharp::CppParser::AST::HTMLStartTagComment* native);
HTMLStartTagComment(struct ::CppSharp::CppParser::AST::HTMLStartTagComment* native, bool ownNativeInstance);
static HTMLStartTagComment^ __CreateInstance(::System::IntPtr native);
static HTMLStartTagComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
HTMLStartTagComment();
@ -680,16 +680,16 @@ namespace CppSharp @@ -680,16 +680,16 @@ namespace CppSharp
~HTMLStartTagComment();
property System::String^ TagName
property ::System::String^ TagName
{
System::String^ get();
void set(System::String^);
::System::String^ get();
void set(::System::String^);
}
property System::Collections::Generic::List<CppSharp::Parser::AST::HTMLStartTagComment::Attribute^>^ Attributes
property ::System::Collections::Generic::List<CppSharp::Parser::AST::HTMLStartTagComment::Attribute^>^ Attributes
{
System::Collections::Generic::List<CppSharp::Parser::AST::HTMLStartTagComment::Attribute^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::HTMLStartTagComment::Attribute^>^);
::System::Collections::Generic::List<CppSharp::Parser::AST::HTMLStartTagComment::Attribute^>^ get();
void set(::System::Collections::Generic::List<CppSharp::Parser::AST::HTMLStartTagComment::Attribute^>^);
}
property unsigned int AttributesCount
@ -708,8 +708,8 @@ namespace CppSharp @@ -708,8 +708,8 @@ namespace CppSharp
{
public:
HTMLEndTagComment(::CppSharp::CppParser::AST::HTMLEndTagComment* native);
HTMLEndTagComment(::CppSharp::CppParser::AST::HTMLEndTagComment* native, bool ownNativeInstance);
HTMLEndTagComment(struct ::CppSharp::CppParser::AST::HTMLEndTagComment* native);
HTMLEndTagComment(struct ::CppSharp::CppParser::AST::HTMLEndTagComment* native, bool ownNativeInstance);
static HTMLEndTagComment^ __CreateInstance(::System::IntPtr native);
static HTMLEndTagComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
HTMLEndTagComment();
@ -718,10 +718,10 @@ namespace CppSharp @@ -718,10 +718,10 @@ namespace CppSharp
~HTMLEndTagComment();
property System::String^ TagName
property ::System::String^ TagName
{
System::String^ get();
void set(System::String^);
::System::String^ get();
void set(::System::String^);
}
};
@ -729,8 +729,8 @@ namespace CppSharp @@ -729,8 +729,8 @@ namespace CppSharp
{
public:
TextComment(::CppSharp::CppParser::AST::TextComment* native);
TextComment(::CppSharp::CppParser::AST::TextComment* native, bool ownNativeInstance);
TextComment(struct ::CppSharp::CppParser::AST::TextComment* native);
TextComment(struct ::CppSharp::CppParser::AST::TextComment* native, bool ownNativeInstance);
static TextComment^ __CreateInstance(::System::IntPtr native);
static TextComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TextComment();
@ -739,10 +739,10 @@ namespace CppSharp @@ -739,10 +739,10 @@ namespace CppSharp
~TextComment();
property System::String^ Text
property ::System::String^ Text
{
System::String^ get();
void set(System::String^);
::System::String^ get();
void set(::System::String^);
}
};
@ -750,15 +750,15 @@ namespace CppSharp @@ -750,15 +750,15 @@ namespace CppSharp
{
public:
property ::CppSharp::CppParser::AST::RawComment* NativePtr;
property System::IntPtr __Instance
property struct ::CppSharp::CppParser::AST::RawComment* NativePtr;
property ::System::IntPtr __Instance
{
virtual System::IntPtr get();
virtual void set(System::IntPtr instance);
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
RawComment(::CppSharp::CppParser::AST::RawComment* native);
RawComment(::CppSharp::CppParser::AST::RawComment* native, bool ownNativeInstance);
RawComment(struct ::CppSharp::CppParser::AST::RawComment* native);
RawComment(struct ::CppSharp::CppParser::AST::RawComment* native, bool ownNativeInstance);
static RawComment^ __CreateInstance(::System::IntPtr native);
static RawComment^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
RawComment();
@ -773,16 +773,16 @@ namespace CppSharp @@ -773,16 +773,16 @@ namespace CppSharp
void set(CppSharp::Parser::AST::RawCommentKind);
}
property System::String^ Text
property ::System::String^ Text
{
System::String^ get();
void set(System::String^);
::System::String^ get();
void set(::System::String^);
}
property System::String^ BriefText
property ::System::String^ BriefText
{
System::String^ get();
void set(System::String^);
::System::String^ get();
void set(::System::String^);
}
property CppSharp::Parser::AST::FullComment^ FullCommentBlock

514
src/CppParser/Bindings/CLI/CppParser.cpp

File diff suppressed because it is too large Load Diff

194
src/CppParser/Bindings/CLI/CppParser.h

@ -64,15 +64,15 @@ namespace CppSharp @@ -64,15 +64,15 @@ namespace CppSharp
{
public:
property ::CppSharp::CppParser::CppParserOptions* NativePtr;
property System::IntPtr __Instance
property struct ::CppSharp::CppParser::CppParserOptions* NativePtr;
property ::System::IntPtr __Instance
{
virtual System::IntPtr get();
virtual void set(System::IntPtr instance);
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
CppParserOptions(::CppSharp::CppParser::CppParserOptions* native);
CppParserOptions(::CppSharp::CppParser::CppParserOptions* native, bool ownNativeInstance);
CppParserOptions(struct ::CppSharp::CppParser::CppParserOptions* native);
CppParserOptions(struct ::CppSharp::CppParser::CppParserOptions* native, bool ownNativeInstance);
static CppParserOptions^ __CreateInstance(::System::IntPtr native);
static CppParserOptions^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CppParserOptions();
@ -81,46 +81,46 @@ namespace CppSharp @@ -81,46 +81,46 @@ namespace CppSharp
~CppParserOptions();
property System::Collections::Generic::List<System::String^>^ Arguments
property ::System::Collections::Generic::List<::System::String^>^ Arguments
{
System::Collections::Generic::List<System::String^>^ get();
void set(System::Collections::Generic::List<System::String^>^);
::System::Collections::Generic::List<::System::String^>^ get();
void set(::System::Collections::Generic::List<::System::String^>^);
}
property System::Collections::Generic::List<System::String^>^ SourceFiles
property ::System::Collections::Generic::List<::System::String^>^ SourceFiles
{
System::Collections::Generic::List<System::String^>^ get();
void set(System::Collections::Generic::List<System::String^>^);
::System::Collections::Generic::List<::System::String^>^ get();
void set(::System::Collections::Generic::List<::System::String^>^);
}
property System::Collections::Generic::List<System::String^>^ IncludeDirs
property ::System::Collections::Generic::List<::System::String^>^ IncludeDirs
{
System::Collections::Generic::List<System::String^>^ get();
void set(System::Collections::Generic::List<System::String^>^);
::System::Collections::Generic::List<::System::String^>^ get();
void set(::System::Collections::Generic::List<::System::String^>^);
}
property System::Collections::Generic::List<System::String^>^ SystemIncludeDirs
property ::System::Collections::Generic::List<::System::String^>^ SystemIncludeDirs
{
System::Collections::Generic::List<System::String^>^ get();
void set(System::Collections::Generic::List<System::String^>^);
::System::Collections::Generic::List<::System::String^>^ get();
void set(::System::Collections::Generic::List<::System::String^>^);
}
property System::Collections::Generic::List<System::String^>^ Defines
property ::System::Collections::Generic::List<::System::String^>^ Defines
{
System::Collections::Generic::List<System::String^>^ get();
void set(System::Collections::Generic::List<System::String^>^);
::System::Collections::Generic::List<::System::String^>^ get();
void set(::System::Collections::Generic::List<::System::String^>^);
}
property System::Collections::Generic::List<System::String^>^ Undefines
property ::System::Collections::Generic::List<::System::String^>^ Undefines
{
System::Collections::Generic::List<System::String^>^ get();
void set(System::Collections::Generic::List<System::String^>^);
::System::Collections::Generic::List<::System::String^>^ get();
void set(::System::Collections::Generic::List<::System::String^>^);
}
property System::Collections::Generic::List<System::String^>^ SupportedStdTypes
property ::System::Collections::Generic::List<::System::String^>^ SupportedStdTypes
{
System::Collections::Generic::List<System::String^>^ get();
void set(System::Collections::Generic::List<System::String^>^);
::System::Collections::Generic::List<::System::String^>^ get();
void set(::System::Collections::Generic::List<::System::String^>^);
}
property CppSharp::Parser::AST::ASTContext^ ASTContext
@ -135,10 +135,10 @@ namespace CppSharp @@ -135,10 +135,10 @@ namespace CppSharp
void set(int);
}
property System::String^ TargetTriple
property ::System::String^ TargetTriple
{
System::String^ get();
void set(System::String^);
::System::String^ get();
void set(::System::String^);
}
property bool NoStandardIncludes
@ -189,9 +189,9 @@ namespace CppSharp @@ -189,9 +189,9 @@ namespace CppSharp
void set(bool);
}
property System::String^ ClangVersion
property ::System::String^ ClangVersion
{
System::String^ get();
::System::String^ get();
}
property unsigned int ArgumentsCount
@ -229,45 +229,45 @@ namespace CppSharp @@ -229,45 +229,45 @@ namespace CppSharp
unsigned int get();
}
System::String^ GetArguments(unsigned int i);
::System::String^ GetArguments(unsigned int i);
void AddArguments(System::String^ s);
void AddArguments(::System::String^ s);
void ClearArguments();
System::String^ GetSourceFiles(unsigned int i);
::System::String^ GetSourceFiles(unsigned int i);
void AddSourceFiles(System::String^ s);
void AddSourceFiles(::System::String^ s);
void ClearSourceFiles();
System::String^ GetIncludeDirs(unsigned int i);
::System::String^ GetIncludeDirs(unsigned int i);
void AddIncludeDirs(System::String^ s);
void AddIncludeDirs(::System::String^ s);
void ClearIncludeDirs();
System::String^ GetSystemIncludeDirs(unsigned int i);
::System::String^ GetSystemIncludeDirs(unsigned int i);
void AddSystemIncludeDirs(System::String^ s);
void AddSystemIncludeDirs(::System::String^ s);
void ClearSystemIncludeDirs();
System::String^ GetDefines(unsigned int i);
::System::String^ GetDefines(unsigned int i);
void AddDefines(System::String^ s);
void AddDefines(::System::String^ s);
void ClearDefines();
System::String^ GetUndefines(unsigned int i);
::System::String^ GetUndefines(unsigned int i);
void AddUndefines(System::String^ s);
void AddUndefines(::System::String^ s);
void ClearUndefines();
System::String^ GetSupportedStdTypes(unsigned int i);
::System::String^ GetSupportedStdTypes(unsigned int i);
void AddSupportedStdTypes(System::String^ s);
void AddSupportedStdTypes(::System::String^ s);
void ClearSupportedStdTypes();
@ -280,15 +280,15 @@ namespace CppSharp @@ -280,15 +280,15 @@ namespace CppSharp
{
public:
property ::CppSharp::CppParser::LinkerOptions* NativePtr;
property System::IntPtr __Instance
property struct ::CppSharp::CppParser::LinkerOptions* NativePtr;
property ::System::IntPtr __Instance
{
virtual System::IntPtr get();
virtual void set(System::IntPtr instance);
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
LinkerOptions(::CppSharp::CppParser::LinkerOptions* native);
LinkerOptions(::CppSharp::CppParser::LinkerOptions* native, bool ownNativeInstance);
LinkerOptions(struct ::CppSharp::CppParser::LinkerOptions* native);
LinkerOptions(struct ::CppSharp::CppParser::LinkerOptions* native, bool ownNativeInstance);
static LinkerOptions^ __CreateInstance(::System::IntPtr native);
static LinkerOptions^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
LinkerOptions();
@ -297,22 +297,22 @@ namespace CppSharp @@ -297,22 +297,22 @@ namespace CppSharp
~LinkerOptions();
property System::Collections::Generic::List<System::String^>^ Arguments
property ::System::Collections::Generic::List<::System::String^>^ Arguments
{
System::Collections::Generic::List<System::String^>^ get();
void set(System::Collections::Generic::List<System::String^>^);
::System::Collections::Generic::List<::System::String^>^ get();
void set(::System::Collections::Generic::List<::System::String^>^);
}
property System::Collections::Generic::List<System::String^>^ LibraryDirs
property ::System::Collections::Generic::List<::System::String^>^ LibraryDirs
{
System::Collections::Generic::List<System::String^>^ get();
void set(System::Collections::Generic::List<System::String^>^);
::System::Collections::Generic::List<::System::String^>^ get();
void set(::System::Collections::Generic::List<::System::String^>^);
}
property System::Collections::Generic::List<System::String^>^ Libraries
property ::System::Collections::Generic::List<::System::String^>^ Libraries
{
System::Collections::Generic::List<System::String^>^ get();
void set(System::Collections::Generic::List<System::String^>^);
::System::Collections::Generic::List<::System::String^>^ get();
void set(::System::Collections::Generic::List<::System::String^>^);
}
property unsigned int ArgumentsCount
@ -330,21 +330,21 @@ namespace CppSharp @@ -330,21 +330,21 @@ namespace CppSharp
unsigned int get();
}
System::String^ GetArguments(unsigned int i);
::System::String^ GetArguments(unsigned int i);
void AddArguments(System::String^ s);
void AddArguments(::System::String^ s);
void ClearArguments();
System::String^ GetLibraryDirs(unsigned int i);
::System::String^ GetLibraryDirs(unsigned int i);
void AddLibraryDirs(System::String^ s);
void AddLibraryDirs(::System::String^ s);
void ClearLibraryDirs();
System::String^ GetLibraries(unsigned int i);
::System::String^ GetLibraries(unsigned int i);
void AddLibraries(System::String^ s);
void AddLibraries(::System::String^ s);
void ClearLibraries();
@ -357,15 +357,15 @@ namespace CppSharp @@ -357,15 +357,15 @@ namespace CppSharp
{
public:
property ::CppSharp::CppParser::ParserDiagnostic* NativePtr;
property System::IntPtr __Instance
property struct ::CppSharp::CppParser::ParserDiagnostic* NativePtr;
property ::System::IntPtr __Instance
{
virtual System::IntPtr get();
virtual void set(System::IntPtr instance);
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
ParserDiagnostic(::CppSharp::CppParser::ParserDiagnostic* native);
ParserDiagnostic(::CppSharp::CppParser::ParserDiagnostic* native, bool ownNativeInstance);
ParserDiagnostic(struct ::CppSharp::CppParser::ParserDiagnostic* native);
ParserDiagnostic(struct ::CppSharp::CppParser::ParserDiagnostic* native, bool ownNativeInstance);
static ParserDiagnostic^ __CreateInstance(::System::IntPtr native);
static ParserDiagnostic^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ParserDiagnostic();
@ -374,16 +374,16 @@ namespace CppSharp @@ -374,16 +374,16 @@ namespace CppSharp
~ParserDiagnostic();
property System::String^ FileName
property ::System::String^ FileName
{
System::String^ get();
void set(System::String^);
::System::String^ get();
void set(::System::String^);
}
property System::String^ Message
property ::System::String^ Message
{
System::String^ get();
void set(System::String^);
::System::String^ get();
void set(::System::String^);
}
property CppSharp::Parser::ParserDiagnosticLevel Level
@ -413,15 +413,15 @@ namespace CppSharp @@ -413,15 +413,15 @@ namespace CppSharp
{
public:
property ::CppSharp::CppParser::ParserResult* NativePtr;
property System::IntPtr __Instance
property struct ::CppSharp::CppParser::ParserResult* NativePtr;
property ::System::IntPtr __Instance
{
virtual System::IntPtr get();
virtual void set(System::IntPtr instance);
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
ParserResult(::CppSharp::CppParser::ParserResult* native);
ParserResult(::CppSharp::CppParser::ParserResult* native, bool ownNativeInstance);
ParserResult(struct ::CppSharp::CppParser::ParserResult* native);
ParserResult(struct ::CppSharp::CppParser::ParserResult* native, bool ownNativeInstance);
static ParserResult^ __CreateInstance(::System::IntPtr native);
static ParserResult^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ParserResult();
@ -436,16 +436,16 @@ namespace CppSharp @@ -436,16 +436,16 @@ namespace CppSharp
void set(CppSharp::Parser::ParserResultKind);
}
property System::Collections::Generic::List<CppSharp::Parser::ParserDiagnostic^>^ Diagnostics
property ::System::Collections::Generic::List<CppSharp::Parser::ParserDiagnostic^>^ Diagnostics
{
System::Collections::Generic::List<CppSharp::Parser::ParserDiagnostic^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::ParserDiagnostic^>^);
::System::Collections::Generic::List<CppSharp::Parser::ParserDiagnostic^>^ get();
void set(::System::Collections::Generic::List<CppSharp::Parser::ParserDiagnostic^>^);
}
property System::Collections::Generic::List<CppSharp::Parser::AST::NativeLibrary^>^ Libraries
property ::System::Collections::Generic::List<CppSharp::Parser::AST::NativeLibrary^>^ Libraries
{
System::Collections::Generic::List<CppSharp::Parser::AST::NativeLibrary^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::NativeLibrary^>^);
::System::Collections::Generic::List<CppSharp::Parser::AST::NativeLibrary^>^ get();
void set(::System::Collections::Generic::List<CppSharp::Parser::AST::NativeLibrary^>^);
}
property CppSharp::Parser::ParserTargetInfo^ TargetInfo
@ -485,15 +485,15 @@ namespace CppSharp @@ -485,15 +485,15 @@ namespace CppSharp
{
public:
property ::CppSharp::CppParser::ClangParser* NativePtr;
property System::IntPtr __Instance
property struct ::CppSharp::CppParser::ClangParser* NativePtr;
property ::System::IntPtr __Instance
{
virtual System::IntPtr get();
virtual void set(System::IntPtr instance);
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
ClangParser(::CppSharp::CppParser::ClangParser* native);
ClangParser(::CppSharp::CppParser::ClangParser* native, bool ownNativeInstance);
ClangParser(struct ::CppSharp::CppParser::ClangParser* native);
ClangParser(struct ::CppSharp::CppParser::ClangParser* native, bool ownNativeInstance);
static ClangParser^ __CreateInstance(::System::IntPtr native);
static ClangParser^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ClangParser();

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

File diff suppressed because it is too large Load Diff

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

File diff suppressed because it is too large Load Diff

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

File diff suppressed because it is too large Load Diff

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

File diff suppressed because it is too large Load Diff

42
src/CppParser/Bindings/CLI/Sources.cpp

@ -9,36 +9,36 @@ @@ -9,36 +9,36 @@
using namespace System;
using namespace System::Runtime::InteropServices;
CppSharp::Parser::SourceLocation::SourceLocation(::CppSharp::CppParser::SourceLocation* native)
CppSharp::Parser::SourceLocation::SourceLocation(struct ::CppSharp::CppParser::SourceLocation* native)
{
__ID = native->ID;
}
CppSharp::Parser::SourceLocation^ CppSharp::Parser::SourceLocation::__CreateInstance(::System::IntPtr native)
{
return gcnew ::CppSharp::Parser::SourceLocation((::CppSharp::CppParser::SourceLocation*) native.ToPointer());
return gcnew ::CppSharp::Parser::SourceLocation((struct ::CppSharp::CppParser::SourceLocation*) native.ToPointer());
}
CppSharp::Parser::SourceLocation::SourceLocation(::CppSharp::CppParser::SourceLocation* native, bool ownNativeInstance)
CppSharp::Parser::SourceLocation::SourceLocation(struct ::CppSharp::CppParser::SourceLocation* native, bool ownNativeInstance)
{
__ID = native->ID;
}
CppSharp::Parser::SourceLocation^ CppSharp::Parser::SourceLocation::__CreateInstance(::System::IntPtr native, bool __ownsNativeInstance)
{
return gcnew ::CppSharp::Parser::SourceLocation((::CppSharp::CppParser::SourceLocation*) native.ToPointer(), __ownsNativeInstance);
return gcnew ::CppSharp::Parser::SourceLocation((struct ::CppSharp::CppParser::SourceLocation*) native.ToPointer(), __ownsNativeInstance);
}
CppSharp::Parser::SourceLocation::SourceLocation(unsigned int ID)
{
::CppSharp::CppParser::SourceLocation _native(ID);
struct ::CppSharp::CppParser::SourceLocation _native(ID);
this->ID = _native.ID;
}
CppSharp::Parser::SourceLocation::operator CppSharp::Parser::SourceLocation(unsigned int ID)
{
auto __ret = (::CppSharp::CppParser::SourceLocation) ID;
return ::CppSharp::Parser::SourceLocation((::CppSharp::CppParser::SourceLocation*)&__ret);
return ::CppSharp::Parser::SourceLocation((struct ::CppSharp::CppParser::SourceLocation*)&__ret);
}
unsigned int CppSharp::Parser::SourceLocation::ID::get()
@ -51,7 +51,7 @@ void CppSharp::Parser::SourceLocation::ID::set(unsigned int value) @@ -51,7 +51,7 @@ void CppSharp::Parser::SourceLocation::ID::set(unsigned int value)
__ID = value;
}
CppSharp::Parser::SourceRange::SourceRange(::CppSharp::CppParser::SourceRange* native)
CppSharp::Parser::SourceRange::SourceRange(struct ::CppSharp::CppParser::SourceRange* native)
: __ownsNativeInstance(false)
{
NativePtr = native;
@ -59,10 +59,10 @@ CppSharp::Parser::SourceRange::SourceRange(::CppSharp::CppParser::SourceRange* n @@ -59,10 +59,10 @@ CppSharp::Parser::SourceRange::SourceRange(::CppSharp::CppParser::SourceRange* n
CppSharp::Parser::SourceRange^ CppSharp::Parser::SourceRange::__CreateInstance(::System::IntPtr native)
{
return gcnew ::CppSharp::Parser::SourceRange((::CppSharp::CppParser::SourceRange*) native.ToPointer());
return gcnew ::CppSharp::Parser::SourceRange((struct ::CppSharp::CppParser::SourceRange*) native.ToPointer());
}
CppSharp::Parser::SourceRange::SourceRange(::CppSharp::CppParser::SourceRange* native, bool ownNativeInstance)
CppSharp::Parser::SourceRange::SourceRange(struct ::CppSharp::CppParser::SourceRange* native, bool ownNativeInstance)
: __ownsNativeInstance(ownNativeInstance)
{
NativePtr = native;
@ -70,7 +70,7 @@ CppSharp::Parser::SourceRange::SourceRange(::CppSharp::CppParser::SourceRange* n @@ -70,7 +70,7 @@ CppSharp::Parser::SourceRange::SourceRange(::CppSharp::CppParser::SourceRange* n
CppSharp::Parser::SourceRange^ CppSharp::Parser::SourceRange::__CreateInstance(::System::IntPtr native, bool __ownsNativeInstance)
{
return gcnew ::CppSharp::Parser::SourceRange((::CppSharp::CppParser::SourceRange*) native.ToPointer(), __ownsNativeInstance);
return gcnew ::CppSharp::Parser::SourceRange((struct ::CppSharp::CppParser::SourceRange*) native.ToPointer(), __ownsNativeInstance);
}
CppSharp::Parser::SourceRange::~SourceRange()
@ -83,47 +83,47 @@ CppSharp::Parser::SourceRange::SourceRange(CppSharp::Parser::SourceRange^ _0) @@ -83,47 +83,47 @@ CppSharp::Parser::SourceRange::SourceRange(CppSharp::Parser::SourceRange^ _0)
__ownsNativeInstance = true;
if (ReferenceEquals(_0, nullptr))
throw gcnew ::System::ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&).");
auto &__arg0 = *(::CppSharp::CppParser::SourceRange*)_0->NativePtr;
NativePtr = new ::CppSharp::CppParser::SourceRange(__arg0);
auto &__arg0 = *(struct ::CppSharp::CppParser::SourceRange*)_0->NativePtr;
NativePtr = new struct ::CppSharp::CppParser::SourceRange(__arg0);
}
CppSharp::Parser::SourceRange::SourceRange()
{
__ownsNativeInstance = true;
NativePtr = new ::CppSharp::CppParser::SourceRange();
NativePtr = new struct ::CppSharp::CppParser::SourceRange();
}
System::IntPtr CppSharp::Parser::SourceRange::__Instance::get()
::System::IntPtr CppSharp::Parser::SourceRange::__Instance::get()
{
return System::IntPtr(NativePtr);
return ::System::IntPtr(NativePtr);
}
void CppSharp::Parser::SourceRange::__Instance::set(System::IntPtr object)
void CppSharp::Parser::SourceRange::__Instance::set(::System::IntPtr object)
{
NativePtr = (::CppSharp::CppParser::SourceRange*)object.ToPointer();
NativePtr = (struct ::CppSharp::CppParser::SourceRange*)object.ToPointer();
}
CppSharp::Parser::SourceLocation CppSharp::Parser::SourceRange::BeginLoc::get()
{
return ::CppSharp::Parser::SourceLocation((::CppSharp::CppParser::SourceLocation*)&((::CppSharp::CppParser::SourceRange*)NativePtr)->beginLoc);
return ::CppSharp::Parser::SourceLocation((struct ::CppSharp::CppParser::SourceLocation*)&NativePtr->beginLoc);
}
void CppSharp::Parser::SourceRange::BeginLoc::set(CppSharp::Parser::SourceLocation value)
{
auto _marshal0 = ::CppSharp::CppParser::SourceLocation();
_marshal0.ID = value.ID;
((::CppSharp::CppParser::SourceRange*)NativePtr)->beginLoc = _marshal0;
((struct ::CppSharp::CppParser::SourceRange*)NativePtr)->beginLoc = _marshal0;
}
CppSharp::Parser::SourceLocation CppSharp::Parser::SourceRange::EndLoc::get()
{
return ::CppSharp::Parser::SourceLocation((::CppSharp::CppParser::SourceLocation*)&((::CppSharp::CppParser::SourceRange*)NativePtr)->endLoc);
return ::CppSharp::Parser::SourceLocation((struct ::CppSharp::CppParser::SourceLocation*)&NativePtr->endLoc);
}
void CppSharp::Parser::SourceRange::EndLoc::set(CppSharp::Parser::SourceLocation value)
{
auto _marshal0 = ::CppSharp::CppParser::SourceLocation();
_marshal0.ID = value.ID;
((::CppSharp::CppParser::SourceRange*)NativePtr)->endLoc = _marshal0;
((struct ::CppSharp::CppParser::SourceRange*)NativePtr)->endLoc = _marshal0;
}

16
src/CppParser/Bindings/CLI/Sources.h

@ -26,8 +26,8 @@ namespace CppSharp @@ -26,8 +26,8 @@ namespace CppSharp
{
public:
SourceLocation(::CppSharp::CppParser::SourceLocation* native);
SourceLocation(::CppSharp::CppParser::SourceLocation* native, bool ownNativeInstance);
SourceLocation(struct ::CppSharp::CppParser::SourceLocation* native);
SourceLocation(struct ::CppSharp::CppParser::SourceLocation* native, bool ownNativeInstance);
static SourceLocation^ __CreateInstance(::System::IntPtr native);
static SourceLocation^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SourceLocation(unsigned int ID);
@ -49,15 +49,15 @@ namespace CppSharp @@ -49,15 +49,15 @@ namespace CppSharp
{
public:
property ::CppSharp::CppParser::SourceRange* NativePtr;
property System::IntPtr __Instance
property struct ::CppSharp::CppParser::SourceRange* NativePtr;
property ::System::IntPtr __Instance
{
virtual System::IntPtr get();
virtual void set(System::IntPtr instance);
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
SourceRange(::CppSharp::CppParser::SourceRange* native);
SourceRange(::CppSharp::CppParser::SourceRange* native, bool ownNativeInstance);
SourceRange(struct ::CppSharp::CppParser::SourceRange* native);
SourceRange(struct ::CppSharp::CppParser::SourceRange* native, bool ownNativeInstance);
static SourceRange^ __CreateInstance(::System::IntPtr native);
static SourceRange^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SourceRange(CppSharp::Parser::SourceRange^ _0);

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

File diff suppressed because it is too large Load Diff

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

@ -198,15 +198,15 @@ namespace CppSharp @@ -198,15 +198,15 @@ namespace CppSharp
{
public:
property ::CppSharp::CppParser::AST::Stmt* NativePtr;
property System::IntPtr __Instance
property struct ::CppSharp::CppParser::AST::Stmt* NativePtr;
property ::System::IntPtr __Instance
{
virtual System::IntPtr get();
virtual void set(System::IntPtr instance);
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
Stmt(::CppSharp::CppParser::AST::Stmt* native);
Stmt(::CppSharp::CppParser::AST::Stmt* native, bool ownNativeInstance);
Stmt(struct ::CppSharp::CppParser::AST::Stmt* native);
Stmt(struct ::CppSharp::CppParser::AST::Stmt* native, bool ownNativeInstance);
static Stmt^ __CreateInstance(::System::IntPtr native);
static Stmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Stmt();
@ -252,8 +252,8 @@ namespace CppSharp @@ -252,8 +252,8 @@ namespace CppSharp
{
public:
DeclStmt(::CppSharp::CppParser::AST::DeclStmt* native);
DeclStmt(::CppSharp::CppParser::AST::DeclStmt* native, bool ownNativeInstance);
DeclStmt(struct ::CppSharp::CppParser::AST::DeclStmt* native);
DeclStmt(struct ::CppSharp::CppParser::AST::DeclStmt* native, bool ownNativeInstance);
static DeclStmt^ __CreateInstance(::System::IntPtr native);
static DeclStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DeclStmt();
@ -262,10 +262,10 @@ namespace CppSharp @@ -262,10 +262,10 @@ namespace CppSharp
~DeclStmt();
property System::Collections::Generic::List<CppSharp::Parser::AST::Declaration^>^ Decls
property ::System::Collections::Generic::List<CppSharp::Parser::AST::Declaration^>^ Decls
{
System::Collections::Generic::List<CppSharp::Parser::AST::Declaration^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::Declaration^>^);
::System::Collections::Generic::List<CppSharp::Parser::AST::Declaration^>^ get();
void set(::System::Collections::Generic::List<CppSharp::Parser::AST::Declaration^>^);
}
property bool IsSingleDecl
@ -296,8 +296,8 @@ namespace CppSharp @@ -296,8 +296,8 @@ namespace CppSharp
{
public:
NullStmt(::CppSharp::CppParser::AST::NullStmt* native);
NullStmt(::CppSharp::CppParser::AST::NullStmt* native, bool ownNativeInstance);
NullStmt(struct ::CppSharp::CppParser::AST::NullStmt* native);
NullStmt(struct ::CppSharp::CppParser::AST::NullStmt* native, bool ownNativeInstance);
static NullStmt^ __CreateInstance(::System::IntPtr native);
static NullStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
NullStmt();
@ -323,8 +323,8 @@ namespace CppSharp @@ -323,8 +323,8 @@ namespace CppSharp
{
public:
CompoundStmt(::CppSharp::CppParser::AST::CompoundStmt* native);
CompoundStmt(::CppSharp::CppParser::AST::CompoundStmt* native, bool ownNativeInstance);
CompoundStmt(struct ::CppSharp::CppParser::AST::CompoundStmt* native);
CompoundStmt(struct ::CppSharp::CppParser::AST::CompoundStmt* native, bool ownNativeInstance);
static CompoundStmt^ __CreateInstance(::System::IntPtr native);
static CompoundStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CompoundStmt();
@ -333,10 +333,10 @@ namespace CppSharp @@ -333,10 +333,10 @@ namespace CppSharp
~CompoundStmt();
property System::Collections::Generic::List<CppSharp::Parser::AST::Stmt^>^ Body
property ::System::Collections::Generic::List<CppSharp::Parser::AST::Stmt^>^ Body
{
System::Collections::Generic::List<CppSharp::Parser::AST::Stmt^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::Stmt^>^);
::System::Collections::Generic::List<CppSharp::Parser::AST::Stmt^>^ get();
void set(::System::Collections::Generic::List<CppSharp::Parser::AST::Stmt^>^);
}
property bool BodyEmpty
@ -391,8 +391,8 @@ namespace CppSharp @@ -391,8 +391,8 @@ namespace CppSharp
{
public:
SwitchCase(::CppSharp::CppParser::AST::SwitchCase* native);
SwitchCase(::CppSharp::CppParser::AST::SwitchCase* native, bool ownNativeInstance);
SwitchCase(struct ::CppSharp::CppParser::AST::SwitchCase* native);
SwitchCase(struct ::CppSharp::CppParser::AST::SwitchCase* native, bool ownNativeInstance);
static SwitchCase^ __CreateInstance(::System::IntPtr native);
static SwitchCase^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SwitchCase();
@ -428,8 +428,8 @@ namespace CppSharp @@ -428,8 +428,8 @@ namespace CppSharp
{
public:
CaseStmt(::CppSharp::CppParser::AST::CaseStmt* native);
CaseStmt(::CppSharp::CppParser::AST::CaseStmt* native, bool ownNativeInstance);
CaseStmt(struct ::CppSharp::CppParser::AST::CaseStmt* native);
CaseStmt(struct ::CppSharp::CppParser::AST::CaseStmt* native, bool ownNativeInstance);
static CaseStmt^ __CreateInstance(::System::IntPtr native);
static CaseStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CaseStmt();
@ -473,8 +473,8 @@ namespace CppSharp @@ -473,8 +473,8 @@ namespace CppSharp
{
public:
DefaultStmt(::CppSharp::CppParser::AST::DefaultStmt* native);
DefaultStmt(::CppSharp::CppParser::AST::DefaultStmt* native, bool ownNativeInstance);
DefaultStmt(struct ::CppSharp::CppParser::AST::DefaultStmt* native);
DefaultStmt(struct ::CppSharp::CppParser::AST::DefaultStmt* native, bool ownNativeInstance);
static DefaultStmt^ __CreateInstance(::System::IntPtr native);
static DefaultStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DefaultStmt();
@ -494,8 +494,8 @@ namespace CppSharp @@ -494,8 +494,8 @@ namespace CppSharp
{
public:
LabelStmt(::CppSharp::CppParser::AST::LabelStmt* native);
LabelStmt(::CppSharp::CppParser::AST::LabelStmt* native, bool ownNativeInstance);
LabelStmt(struct ::CppSharp::CppParser::AST::LabelStmt* native);
LabelStmt(struct ::CppSharp::CppParser::AST::LabelStmt* native, bool ownNativeInstance);
static LabelStmt^ __CreateInstance(::System::IntPtr native);
static LabelStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
LabelStmt();
@ -516,10 +516,10 @@ namespace CppSharp @@ -516,10 +516,10 @@ namespace CppSharp
void set(CppSharp::Parser::AST::Stmt^);
}
property System::String^ Name
property ::System::String^ Name
{
System::String^ get();
void set(System::String^);
::System::String^ get();
void set(::System::String^);
}
};
@ -527,8 +527,8 @@ namespace CppSharp @@ -527,8 +527,8 @@ namespace CppSharp
{
public:
AttributedStmt(::CppSharp::CppParser::AST::AttributedStmt* native);
AttributedStmt(::CppSharp::CppParser::AST::AttributedStmt* native, bool ownNativeInstance);
AttributedStmt(struct ::CppSharp::CppParser::AST::AttributedStmt* native);
AttributedStmt(struct ::CppSharp::CppParser::AST::AttributedStmt* native, bool ownNativeInstance);
static AttributedStmt^ __CreateInstance(::System::IntPtr native);
static AttributedStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
AttributedStmt();
@ -554,8 +554,8 @@ namespace CppSharp @@ -554,8 +554,8 @@ namespace CppSharp
{
public:
IfStmt(::CppSharp::CppParser::AST::IfStmt* native);
IfStmt(::CppSharp::CppParser::AST::IfStmt* native, bool ownNativeInstance);
IfStmt(struct ::CppSharp::CppParser::AST::IfStmt* native);
IfStmt(struct ::CppSharp::CppParser::AST::IfStmt* native, bool ownNativeInstance);
static IfStmt^ __CreateInstance(::System::IntPtr native);
static IfStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
IfStmt();
@ -641,8 +641,8 @@ namespace CppSharp @@ -641,8 +641,8 @@ namespace CppSharp
{
public:
SwitchStmt(::CppSharp::CppParser::AST::SwitchStmt* native);
SwitchStmt(::CppSharp::CppParser::AST::SwitchStmt* native, bool ownNativeInstance);
SwitchStmt(struct ::CppSharp::CppParser::AST::SwitchStmt* native);
SwitchStmt(struct ::CppSharp::CppParser::AST::SwitchStmt* native, bool ownNativeInstance);
static SwitchStmt^ __CreateInstance(::System::IntPtr native);
static SwitchStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SwitchStmt();
@ -704,8 +704,8 @@ namespace CppSharp @@ -704,8 +704,8 @@ namespace CppSharp
{
public:
WhileStmt(::CppSharp::CppParser::AST::WhileStmt* native);
WhileStmt(::CppSharp::CppParser::AST::WhileStmt* native, bool ownNativeInstance);
WhileStmt(struct ::CppSharp::CppParser::AST::WhileStmt* native);
WhileStmt(struct ::CppSharp::CppParser::AST::WhileStmt* native, bool ownNativeInstance);
static WhileStmt^ __CreateInstance(::System::IntPtr native);
static WhileStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
WhileStmt();
@ -749,8 +749,8 @@ namespace CppSharp @@ -749,8 +749,8 @@ namespace CppSharp
{
public:
DoStmt(::CppSharp::CppParser::AST::DoStmt* native);
DoStmt(::CppSharp::CppParser::AST::DoStmt* native, bool ownNativeInstance);
DoStmt(struct ::CppSharp::CppParser::AST::DoStmt* native);
DoStmt(struct ::CppSharp::CppParser::AST::DoStmt* native, bool ownNativeInstance);
static DoStmt^ __CreateInstance(::System::IntPtr native);
static DoStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DoStmt();
@ -794,8 +794,8 @@ namespace CppSharp @@ -794,8 +794,8 @@ namespace CppSharp
{
public:
ForStmt(::CppSharp::CppParser::AST::ForStmt* native);
ForStmt(::CppSharp::CppParser::AST::ForStmt* native, bool ownNativeInstance);
ForStmt(struct ::CppSharp::CppParser::AST::ForStmt* native);
ForStmt(struct ::CppSharp::CppParser::AST::ForStmt* native, bool ownNativeInstance);
static ForStmt^ __CreateInstance(::System::IntPtr native);
static ForStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ForStmt();
@ -857,8 +857,8 @@ namespace CppSharp @@ -857,8 +857,8 @@ namespace CppSharp
{
public:
GotoStmt(::CppSharp::CppParser::AST::GotoStmt* native);
GotoStmt(::CppSharp::CppParser::AST::GotoStmt* native, bool ownNativeInstance);
GotoStmt(struct ::CppSharp::CppParser::AST::GotoStmt* native);
GotoStmt(struct ::CppSharp::CppParser::AST::GotoStmt* native, bool ownNativeInstance);
static GotoStmt^ __CreateInstance(::System::IntPtr native);
static GotoStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
GotoStmt();
@ -884,8 +884,8 @@ namespace CppSharp @@ -884,8 +884,8 @@ namespace CppSharp
{
public:
IndirectGotoStmt(::CppSharp::CppParser::AST::IndirectGotoStmt* native);
IndirectGotoStmt(::CppSharp::CppParser::AST::IndirectGotoStmt* native, bool ownNativeInstance);
IndirectGotoStmt(struct ::CppSharp::CppParser::AST::IndirectGotoStmt* native);
IndirectGotoStmt(struct ::CppSharp::CppParser::AST::IndirectGotoStmt* native, bool ownNativeInstance);
static IndirectGotoStmt^ __CreateInstance(::System::IntPtr native);
static IndirectGotoStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
IndirectGotoStmt();
@ -917,8 +917,8 @@ namespace CppSharp @@ -917,8 +917,8 @@ namespace CppSharp
{
public:
ContinueStmt(::CppSharp::CppParser::AST::ContinueStmt* native);
ContinueStmt(::CppSharp::CppParser::AST::ContinueStmt* native, bool ownNativeInstance);
ContinueStmt(struct ::CppSharp::CppParser::AST::ContinueStmt* native);
ContinueStmt(struct ::CppSharp::CppParser::AST::ContinueStmt* native, bool ownNativeInstance);
static ContinueStmt^ __CreateInstance(::System::IntPtr native);
static ContinueStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ContinueStmt();
@ -938,8 +938,8 @@ namespace CppSharp @@ -938,8 +938,8 @@ namespace CppSharp
{
public:
BreakStmt(::CppSharp::CppParser::AST::BreakStmt* native);
BreakStmt(::CppSharp::CppParser::AST::BreakStmt* native, bool ownNativeInstance);
BreakStmt(struct ::CppSharp::CppParser::AST::BreakStmt* native);
BreakStmt(struct ::CppSharp::CppParser::AST::BreakStmt* native, bool ownNativeInstance);
static BreakStmt^ __CreateInstance(::System::IntPtr native);
static BreakStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
BreakStmt();
@ -959,8 +959,8 @@ namespace CppSharp @@ -959,8 +959,8 @@ namespace CppSharp
{
public:
ReturnStmt(::CppSharp::CppParser::AST::ReturnStmt* native);
ReturnStmt(::CppSharp::CppParser::AST::ReturnStmt* native, bool ownNativeInstance);
ReturnStmt(struct ::CppSharp::CppParser::AST::ReturnStmt* native);
ReturnStmt(struct ::CppSharp::CppParser::AST::ReturnStmt* native, bool ownNativeInstance);
static ReturnStmt^ __CreateInstance(::System::IntPtr native);
static ReturnStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ReturnStmt();
@ -986,8 +986,8 @@ namespace CppSharp @@ -986,8 +986,8 @@ namespace CppSharp
{
public:
AsmStmt(::CppSharp::CppParser::AST::AsmStmt* native);
AsmStmt(::CppSharp::CppParser::AST::AsmStmt* native, bool ownNativeInstance);
AsmStmt(struct ::CppSharp::CppParser::AST::AsmStmt* native);
AsmStmt(struct ::CppSharp::CppParser::AST::AsmStmt* native, bool ownNativeInstance);
static AsmStmt^ __CreateInstance(::System::IntPtr native);
static AsmStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
AsmStmt();
@ -998,16 +998,16 @@ namespace CppSharp @@ -998,16 +998,16 @@ namespace CppSharp
~AsmStmt();
property System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ Inputs
property ::System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ Inputs
{
System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^);
::System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ get();
void set(::System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^);
}
property System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ Outputs
property ::System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ Outputs
{
System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^);
::System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ get();
void set(::System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^);
}
property CppSharp::Parser::SourceLocation AsmLoc
@ -1091,15 +1091,15 @@ namespace CppSharp @@ -1091,15 +1091,15 @@ namespace CppSharp
Operand = 1
};
property ::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* NativePtr;
property System::IntPtr __Instance
property struct ::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* NativePtr;
property ::System::IntPtr __Instance
{
virtual System::IntPtr get();
virtual void set(System::IntPtr instance);
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
AsmStringPiece(::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* native);
AsmStringPiece(::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* native, bool ownNativeInstance);
AsmStringPiece(struct ::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* native);
AsmStringPiece(struct ::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* native, bool ownNativeInstance);
static AsmStringPiece^ __CreateInstance(::System::IntPtr native);
static AsmStringPiece^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
AsmStringPiece();
@ -1120,10 +1120,10 @@ namespace CppSharp @@ -1120,10 +1120,10 @@ namespace CppSharp
void set(bool);
}
property System::String^ String
property ::System::String^ String
{
System::String^ get();
void set(System::String^);
::System::String^ get();
void set(::System::String^);
}
property unsigned int OperandNo
@ -1143,8 +1143,8 @@ namespace CppSharp @@ -1143,8 +1143,8 @@ namespace CppSharp
bool __ownsNativeInstance;
};
GCCAsmStmt(::CppSharp::CppParser::AST::GCCAsmStmt* native);
GCCAsmStmt(::CppSharp::CppParser::AST::GCCAsmStmt* native, bool ownNativeInstance);
GCCAsmStmt(struct ::CppSharp::CppParser::AST::GCCAsmStmt* native);
GCCAsmStmt(struct ::CppSharp::CppParser::AST::GCCAsmStmt* native, bool ownNativeInstance);
static GCCAsmStmt^ __CreateInstance(::System::IntPtr native);
static GCCAsmStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
GCCAsmStmt();
@ -1164,8 +1164,8 @@ namespace CppSharp @@ -1164,8 +1164,8 @@ namespace CppSharp
{
public:
MSAsmStmt(::CppSharp::CppParser::AST::MSAsmStmt* native);
MSAsmStmt(::CppSharp::CppParser::AST::MSAsmStmt* native, bool ownNativeInstance);
MSAsmStmt(struct ::CppSharp::CppParser::AST::MSAsmStmt* native);
MSAsmStmt(struct ::CppSharp::CppParser::AST::MSAsmStmt* native, bool ownNativeInstance);
static MSAsmStmt^ __CreateInstance(::System::IntPtr native);
static MSAsmStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
MSAsmStmt();
@ -1192,10 +1192,10 @@ namespace CppSharp @@ -1192,10 +1192,10 @@ namespace CppSharp
void set(unsigned int);
}
property System::String^ AsmString
property ::System::String^ AsmString
{
System::String^ get();
void set(System::String^);
::System::String^ get();
void set(::System::String^);
}
};
@ -1203,8 +1203,8 @@ namespace CppSharp @@ -1203,8 +1203,8 @@ namespace CppSharp
{
public:
SEHExceptStmt(::CppSharp::CppParser::AST::SEHExceptStmt* native);
SEHExceptStmt(::CppSharp::CppParser::AST::SEHExceptStmt* native, bool ownNativeInstance);
SEHExceptStmt(struct ::CppSharp::CppParser::AST::SEHExceptStmt* native);
SEHExceptStmt(struct ::CppSharp::CppParser::AST::SEHExceptStmt* native, bool ownNativeInstance);
static SEHExceptStmt^ __CreateInstance(::System::IntPtr native);
static SEHExceptStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SEHExceptStmt();
@ -1236,8 +1236,8 @@ namespace CppSharp @@ -1236,8 +1236,8 @@ namespace CppSharp
{
public:
SEHFinallyStmt(::CppSharp::CppParser::AST::SEHFinallyStmt* native);
SEHFinallyStmt(::CppSharp::CppParser::AST::SEHFinallyStmt* native, bool ownNativeInstance);
SEHFinallyStmt(struct ::CppSharp::CppParser::AST::SEHFinallyStmt* native);
SEHFinallyStmt(struct ::CppSharp::CppParser::AST::SEHFinallyStmt* native, bool ownNativeInstance);
static SEHFinallyStmt^ __CreateInstance(::System::IntPtr native);
static SEHFinallyStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SEHFinallyStmt();
@ -1263,8 +1263,8 @@ namespace CppSharp @@ -1263,8 +1263,8 @@ namespace CppSharp
{
public:
SEHTryStmt(::CppSharp::CppParser::AST::SEHTryStmt* native);
SEHTryStmt(::CppSharp::CppParser::AST::SEHTryStmt* native, bool ownNativeInstance);
SEHTryStmt(struct ::CppSharp::CppParser::AST::SEHTryStmt* native);
SEHTryStmt(struct ::CppSharp::CppParser::AST::SEHTryStmt* native, bool ownNativeInstance);
static SEHTryStmt^ __CreateInstance(::System::IntPtr native);
static SEHTryStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SEHTryStmt();
@ -1314,8 +1314,8 @@ namespace CppSharp @@ -1314,8 +1314,8 @@ namespace CppSharp
{
public:
SEHLeaveStmt(::CppSharp::CppParser::AST::SEHLeaveStmt* native);
SEHLeaveStmt(::CppSharp::CppParser::AST::SEHLeaveStmt* native, bool ownNativeInstance);
SEHLeaveStmt(struct ::CppSharp::CppParser::AST::SEHLeaveStmt* native);
SEHLeaveStmt(struct ::CppSharp::CppParser::AST::SEHLeaveStmt* native, bool ownNativeInstance);
static SEHLeaveStmt^ __CreateInstance(::System::IntPtr native);
static SEHLeaveStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
SEHLeaveStmt();
@ -1347,15 +1347,15 @@ namespace CppSharp @@ -1347,15 +1347,15 @@ namespace CppSharp
{
public:
property ::CppSharp::CppParser::AST::CapturedStmt::Capture* NativePtr;
property System::IntPtr __Instance
property struct ::CppSharp::CppParser::AST::CapturedStmt::Capture* NativePtr;
property ::System::IntPtr __Instance
{
virtual System::IntPtr get();
virtual void set(System::IntPtr instance);
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
Capture(::CppSharp::CppParser::AST::CapturedStmt::Capture* native);
Capture(::CppSharp::CppParser::AST::CapturedStmt::Capture* native, bool ownNativeInstance);
Capture(struct ::CppSharp::CppParser::AST::CapturedStmt::Capture* native);
Capture(struct ::CppSharp::CppParser::AST::CapturedStmt::Capture* native, bool ownNativeInstance);
static Capture^ __CreateInstance(::System::IntPtr native);
static Capture^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Capture();
@ -1405,8 +1405,8 @@ namespace CppSharp @@ -1405,8 +1405,8 @@ namespace CppSharp
bool __ownsNativeInstance;
};
CapturedStmt(::CppSharp::CppParser::AST::CapturedStmt* native);
CapturedStmt(::CppSharp::CppParser::AST::CapturedStmt* native, bool ownNativeInstance);
CapturedStmt(struct ::CppSharp::CppParser::AST::CapturedStmt* native);
CapturedStmt(struct ::CppSharp::CppParser::AST::CapturedStmt* native, bool ownNativeInstance);
static CapturedStmt^ __CreateInstance(::System::IntPtr native);
static CapturedStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CapturedStmt();
@ -1415,10 +1415,10 @@ namespace CppSharp @@ -1415,10 +1415,10 @@ namespace CppSharp
~CapturedStmt();
property System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ CaptureInits
property ::System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ CaptureInits
{
System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^);
::System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^ get();
void set(::System::Collections::Generic::List<CppSharp::Parser::AST::Expr^>^);
}
property CppSharp::Parser::AST::Stmt^ capturedStmt
@ -1449,8 +1449,8 @@ namespace CppSharp @@ -1449,8 +1449,8 @@ namespace CppSharp
{
public:
CXXCatchStmt(::CppSharp::CppParser::AST::CXXCatchStmt* native);
CXXCatchStmt(::CppSharp::CppParser::AST::CXXCatchStmt* native, bool ownNativeInstance);
CXXCatchStmt(struct ::CppSharp::CppParser::AST::CXXCatchStmt* native);
CXXCatchStmt(struct ::CppSharp::CppParser::AST::CXXCatchStmt* native, bool ownNativeInstance);
static CXXCatchStmt^ __CreateInstance(::System::IntPtr native);
static CXXCatchStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CXXCatchStmt();
@ -1482,8 +1482,8 @@ namespace CppSharp @@ -1482,8 +1482,8 @@ namespace CppSharp
{
public:
CXXTryStmt(::CppSharp::CppParser::AST::CXXTryStmt* native);
CXXTryStmt(::CppSharp::CppParser::AST::CXXTryStmt* native, bool ownNativeInstance);
CXXTryStmt(struct ::CppSharp::CppParser::AST::CXXTryStmt* native);
CXXTryStmt(struct ::CppSharp::CppParser::AST::CXXTryStmt* native, bool ownNativeInstance);
static CXXTryStmt^ __CreateInstance(::System::IntPtr native);
static CXXTryStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CXXTryStmt();
@ -1515,8 +1515,8 @@ namespace CppSharp @@ -1515,8 +1515,8 @@ namespace CppSharp
{
public:
CXXForRangeStmt(::CppSharp::CppParser::AST::CXXForRangeStmt* native);
CXXForRangeStmt(::CppSharp::CppParser::AST::CXXForRangeStmt* native, bool ownNativeInstance);
CXXForRangeStmt(struct ::CppSharp::CppParser::AST::CXXForRangeStmt* native);
CXXForRangeStmt(struct ::CppSharp::CppParser::AST::CXXForRangeStmt* native, bool ownNativeInstance);
static CXXForRangeStmt^ __CreateInstance(::System::IntPtr native);
static CXXForRangeStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CXXForRangeStmt();
@ -1608,8 +1608,8 @@ namespace CppSharp @@ -1608,8 +1608,8 @@ namespace CppSharp
{
public:
MSDependentExistsStmt(::CppSharp::CppParser::AST::MSDependentExistsStmt* native);
MSDependentExistsStmt(::CppSharp::CppParser::AST::MSDependentExistsStmt* native, bool ownNativeInstance);
MSDependentExistsStmt(struct ::CppSharp::CppParser::AST::MSDependentExistsStmt* native);
MSDependentExistsStmt(struct ::CppSharp::CppParser::AST::MSDependentExistsStmt* native, bool ownNativeInstance);
static MSDependentExistsStmt^ __CreateInstance(::System::IntPtr native);
static MSDependentExistsStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
MSDependentExistsStmt();
@ -1668,15 +1668,15 @@ namespace CppSharp @@ -1668,15 +1668,15 @@ namespace CppSharp
{
public:
property ::CppSharp::CppParser::AST::CoroutineBodyStmt::CtorArgs* NativePtr;
property System::IntPtr __Instance
property struct ::CppSharp::CppParser::AST::CoroutineBodyStmt::CtorArgs* NativePtr;
property ::System::IntPtr __Instance
{
virtual System::IntPtr get();
virtual void set(System::IntPtr instance);
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
CtorArgs(::CppSharp::CppParser::AST::CoroutineBodyStmt::CtorArgs* native);
CtorArgs(::CppSharp::CppParser::AST::CoroutineBodyStmt::CtorArgs* native, bool ownNativeInstance);
CtorArgs(struct ::CppSharp::CppParser::AST::CoroutineBodyStmt::CtorArgs* native);
CtorArgs(struct ::CppSharp::CppParser::AST::CoroutineBodyStmt::CtorArgs* native, bool ownNativeInstance);
static CtorArgs^ __CreateInstance(::System::IntPtr native);
static CtorArgs^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CtorArgs();
@ -1690,8 +1690,8 @@ namespace CppSharp @@ -1690,8 +1690,8 @@ namespace CppSharp
bool __ownsNativeInstance;
};
CoroutineBodyStmt(::CppSharp::CppParser::AST::CoroutineBodyStmt* native);
CoroutineBodyStmt(::CppSharp::CppParser::AST::CoroutineBodyStmt* native, bool ownNativeInstance);
CoroutineBodyStmt(struct ::CppSharp::CppParser::AST::CoroutineBodyStmt* native);
CoroutineBodyStmt(struct ::CppSharp::CppParser::AST::CoroutineBodyStmt* native, bool ownNativeInstance);
static CoroutineBodyStmt^ __CreateInstance(::System::IntPtr native);
static CoroutineBodyStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CoroutineBodyStmt();
@ -1790,8 +1790,8 @@ namespace CppSharp @@ -1790,8 +1790,8 @@ namespace CppSharp
Count = 2
};
CoreturnStmt(::CppSharp::CppParser::AST::CoreturnStmt* native);
CoreturnStmt(::CppSharp::CppParser::AST::CoreturnStmt* native, bool ownNativeInstance);
CoreturnStmt(struct ::CppSharp::CppParser::AST::CoreturnStmt* native);
CoreturnStmt(struct ::CppSharp::CppParser::AST::CoreturnStmt* native, bool ownNativeInstance);
static CoreturnStmt^ __CreateInstance(::System::IntPtr native);
static CoreturnStmt^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
CoreturnStmt();

190
src/CppParser/Bindings/CLI/Target.cpp

@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
using namespace System;
using namespace System::Runtime::InteropServices;
CppSharp::Parser::ParserTargetInfo::ParserTargetInfo(::CppSharp::CppParser::ParserTargetInfo* native)
CppSharp::Parser::ParserTargetInfo::ParserTargetInfo(struct ::CppSharp::CppParser::ParserTargetInfo* native)
: __ownsNativeInstance(false)
{
NativePtr = native;
@ -17,10 +17,10 @@ CppSharp::Parser::ParserTargetInfo::ParserTargetInfo(::CppSharp::CppParser::Pars @@ -17,10 +17,10 @@ CppSharp::Parser::ParserTargetInfo::ParserTargetInfo(::CppSharp::CppParser::Pars
CppSharp::Parser::ParserTargetInfo^ CppSharp::Parser::ParserTargetInfo::__CreateInstance(::System::IntPtr native)
{
return gcnew ::CppSharp::Parser::ParserTargetInfo((::CppSharp::CppParser::ParserTargetInfo*) native.ToPointer());
return gcnew ::CppSharp::Parser::ParserTargetInfo((struct ::CppSharp::CppParser::ParserTargetInfo*) native.ToPointer());
}
CppSharp::Parser::ParserTargetInfo::ParserTargetInfo(::CppSharp::CppParser::ParserTargetInfo* native, bool ownNativeInstance)
CppSharp::Parser::ParserTargetInfo::ParserTargetInfo(struct ::CppSharp::CppParser::ParserTargetInfo* native, bool ownNativeInstance)
: __ownsNativeInstance(ownNativeInstance)
{
NativePtr = native;
@ -28,7 +28,7 @@ CppSharp::Parser::ParserTargetInfo::ParserTargetInfo(::CppSharp::CppParser::Pars @@ -28,7 +28,7 @@ CppSharp::Parser::ParserTargetInfo::ParserTargetInfo(::CppSharp::CppParser::Pars
CppSharp::Parser::ParserTargetInfo^ CppSharp::Parser::ParserTargetInfo::__CreateInstance(::System::IntPtr native, bool __ownsNativeInstance)
{
return gcnew ::CppSharp::Parser::ParserTargetInfo((::CppSharp::CppParser::ParserTargetInfo*) native.ToPointer(), __ownsNativeInstance);
return gcnew ::CppSharp::Parser::ParserTargetInfo((struct ::CppSharp::CppParser::ParserTargetInfo*) native.ToPointer(), __ownsNativeInstance);
}
CppSharp::Parser::ParserTargetInfo::~ParserTargetInfo()
@ -39,7 +39,7 @@ CppSharp::Parser::ParserTargetInfo::~ParserTargetInfo() @@ -39,7 +39,7 @@ CppSharp::Parser::ParserTargetInfo::~ParserTargetInfo()
CppSharp::Parser::ParserTargetInfo::ParserTargetInfo()
{
__ownsNativeInstance = true;
NativePtr = new ::CppSharp::CppParser::ParserTargetInfo();
NativePtr = new struct ::CppSharp::CppParser::ParserTargetInfo();
}
CppSharp::Parser::ParserTargetInfo::ParserTargetInfo(CppSharp::Parser::ParserTargetInfo^ _0)
@ -47,427 +47,427 @@ CppSharp::Parser::ParserTargetInfo::ParserTargetInfo(CppSharp::Parser::ParserTar @@ -47,427 +47,427 @@ CppSharp::Parser::ParserTargetInfo::ParserTargetInfo(CppSharp::Parser::ParserTar
__ownsNativeInstance = true;
if (ReferenceEquals(_0, nullptr))
throw gcnew ::System::ArgumentNullException("_0", "Cannot be null because it is a C++ reference (&).");
auto &__arg0 = *(::CppSharp::CppParser::ParserTargetInfo*)_0->NativePtr;
NativePtr = new ::CppSharp::CppParser::ParserTargetInfo(__arg0);
auto &__arg0 = *(struct ::CppSharp::CppParser::ParserTargetInfo*)_0->NativePtr;
NativePtr = new struct ::CppSharp::CppParser::ParserTargetInfo(__arg0);
}
System::IntPtr CppSharp::Parser::ParserTargetInfo::__Instance::get()
::System::IntPtr CppSharp::Parser::ParserTargetInfo::__Instance::get()
{
return System::IntPtr(NativePtr);
return ::System::IntPtr(NativePtr);
}
void CppSharp::Parser::ParserTargetInfo::__Instance::set(System::IntPtr object)
void CppSharp::Parser::ParserTargetInfo::__Instance::set(::System::IntPtr object)
{
NativePtr = (::CppSharp::CppParser::ParserTargetInfo*)object.ToPointer();
NativePtr = (struct ::CppSharp::CppParser::ParserTargetInfo*)object.ToPointer();
}
System::String^ CppSharp::Parser::ParserTargetInfo::ABI::get()
::System::String^ CppSharp::Parser::ParserTargetInfo::ABI::get()
{
return clix::marshalString<clix::E_UTF8>(((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->ABI);
return clix::marshalString<clix::E_UTF8>(NativePtr->ABI);
}
void CppSharp::Parser::ParserTargetInfo::ABI::set(System::String^ value)
void CppSharp::Parser::ParserTargetInfo::ABI::set(::System::String^ value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->ABI = clix::marshalString<clix::E_UTF8>(value);
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->ABI = clix::marshalString<clix::E_UTF8>(value);
}
CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::Char16Type::get()
{
return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char16Type;
return (CppSharp::Parser::ParserIntType)NativePtr->char16Type;
}
void CppSharp::Parser::ParserTargetInfo::Char16Type::set(CppSharp::Parser::ParserIntType value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char16Type = (::CppSharp::CppParser::ParserIntType)value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char16Type = (enum ::CppSharp::CppParser::ParserIntType)value;
}
CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::Char32Type::get()
{
return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char32Type;
return (CppSharp::Parser::ParserIntType)NativePtr->char32Type;
}
void CppSharp::Parser::ParserTargetInfo::Char32Type::set(CppSharp::Parser::ParserIntType value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char32Type = (::CppSharp::CppParser::ParserIntType)value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char32Type = (enum ::CppSharp::CppParser::ParserIntType)value;
}
CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::Int64Type::get()
{
return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->int64Type;
return (CppSharp::Parser::ParserIntType)NativePtr->int64Type;
}
void CppSharp::Parser::ParserTargetInfo::Int64Type::set(CppSharp::Parser::ParserIntType value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->int64Type = (::CppSharp::CppParser::ParserIntType)value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->int64Type = (enum ::CppSharp::CppParser::ParserIntType)value;
}
CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::IntMaxType::get()
{
return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intMaxType;
return (CppSharp::Parser::ParserIntType)NativePtr->intMaxType;
}
void CppSharp::Parser::ParserTargetInfo::IntMaxType::set(CppSharp::Parser::ParserIntType value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intMaxType = (::CppSharp::CppParser::ParserIntType)value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intMaxType = (enum ::CppSharp::CppParser::ParserIntType)value;
}
CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::IntPtrType::get()
{
return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intPtrType;
return (CppSharp::Parser::ParserIntType)NativePtr->intPtrType;
}
void CppSharp::Parser::ParserTargetInfo::IntPtrType::set(CppSharp::Parser::ParserIntType value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intPtrType = (::CppSharp::CppParser::ParserIntType)value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intPtrType = (enum ::CppSharp::CppParser::ParserIntType)value;
}
CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::SizeType::get()
{
return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->sizeType;
return (CppSharp::Parser::ParserIntType)NativePtr->sizeType;
}
void CppSharp::Parser::ParserTargetInfo::SizeType::set(CppSharp::Parser::ParserIntType value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->sizeType = (::CppSharp::CppParser::ParserIntType)value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->sizeType = (enum ::CppSharp::CppParser::ParserIntType)value;
}
CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::UIntMaxType::get()
{
return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->uIntMaxType;
return (CppSharp::Parser::ParserIntType)NativePtr->uIntMaxType;
}
void CppSharp::Parser::ParserTargetInfo::UIntMaxType::set(CppSharp::Parser::ParserIntType value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->uIntMaxType = (::CppSharp::CppParser::ParserIntType)value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->uIntMaxType = (enum ::CppSharp::CppParser::ParserIntType)value;
}
CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::WCharType::get()
{
return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wCharType;
return (CppSharp::Parser::ParserIntType)NativePtr->wCharType;
}
void CppSharp::Parser::ParserTargetInfo::WCharType::set(CppSharp::Parser::ParserIntType value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wCharType = (::CppSharp::CppParser::ParserIntType)value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wCharType = (enum ::CppSharp::CppParser::ParserIntType)value;
}
CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::WIntType::get()
{
return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wIntType;
return (CppSharp::Parser::ParserIntType)NativePtr->wIntType;
}
void CppSharp::Parser::ParserTargetInfo::WIntType::set(CppSharp::Parser::ParserIntType value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wIntType = (::CppSharp::CppParser::ParserIntType)value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wIntType = (enum ::CppSharp::CppParser::ParserIntType)value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::BoolAlign::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->boolAlign;
return NativePtr->boolAlign;
}
void CppSharp::Parser::ParserTargetInfo::BoolAlign::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->boolAlign = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->boolAlign = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::BoolWidth::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->boolWidth;
return NativePtr->boolWidth;
}
void CppSharp::Parser::ParserTargetInfo::BoolWidth::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->boolWidth = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->boolWidth = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::CharAlign::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->charAlign;
return NativePtr->charAlign;
}
void CppSharp::Parser::ParserTargetInfo::CharAlign::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->charAlign = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->charAlign = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::CharWidth::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->charWidth;
return NativePtr->charWidth;
}
void CppSharp::Parser::ParserTargetInfo::CharWidth::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->charWidth = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->charWidth = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::Char16Align::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char16Align;
return NativePtr->char16Align;
}
void CppSharp::Parser::ParserTargetInfo::Char16Align::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char16Align = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char16Align = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::Char16Width::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char16Width;
return NativePtr->char16Width;
}
void CppSharp::Parser::ParserTargetInfo::Char16Width::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char16Width = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char16Width = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::Char32Align::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char32Align;
return NativePtr->char32Align;
}
void CppSharp::Parser::ParserTargetInfo::Char32Align::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char32Align = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char32Align = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::Char32Width::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char32Width;
return NativePtr->char32Width;
}
void CppSharp::Parser::ParserTargetInfo::Char32Width::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char32Width = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char32Width = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::HalfAlign::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->halfAlign;
return NativePtr->halfAlign;
}
void CppSharp::Parser::ParserTargetInfo::HalfAlign::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->halfAlign = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->halfAlign = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::HalfWidth::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->halfWidth;
return NativePtr->halfWidth;
}
void CppSharp::Parser::ParserTargetInfo::HalfWidth::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->halfWidth = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->halfWidth = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::FloatAlign::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->floatAlign;
return NativePtr->floatAlign;
}
void CppSharp::Parser::ParserTargetInfo::FloatAlign::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->floatAlign = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->floatAlign = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::FloatWidth::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->floatWidth;
return NativePtr->floatWidth;
}
void CppSharp::Parser::ParserTargetInfo::FloatWidth::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->floatWidth = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->floatWidth = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::DoubleAlign::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->doubleAlign;
return NativePtr->doubleAlign;
}
void CppSharp::Parser::ParserTargetInfo::DoubleAlign::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->doubleAlign = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->doubleAlign = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::DoubleWidth::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->doubleWidth;
return NativePtr->doubleWidth;
}
void CppSharp::Parser::ParserTargetInfo::DoubleWidth::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->doubleWidth = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->doubleWidth = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::ShortAlign::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->shortAlign;
return NativePtr->shortAlign;
}
void CppSharp::Parser::ParserTargetInfo::ShortAlign::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->shortAlign = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->shortAlign = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::ShortWidth::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->shortWidth;
return NativePtr->shortWidth;
}
void CppSharp::Parser::ParserTargetInfo::ShortWidth::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->shortWidth = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->shortWidth = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::IntAlign::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intAlign;
return NativePtr->intAlign;
}
void CppSharp::Parser::ParserTargetInfo::IntAlign::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intAlign = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intAlign = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::IntWidth::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intWidth;
return NativePtr->intWidth;
}
void CppSharp::Parser::ParserTargetInfo::IntWidth::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intWidth = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intWidth = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::IntMaxTWidth::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intMaxTWidth;
return NativePtr->intMaxTWidth;
}
void CppSharp::Parser::ParserTargetInfo::IntMaxTWidth::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intMaxTWidth = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intMaxTWidth = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::LongAlign::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longAlign;
return NativePtr->longAlign;
}
void CppSharp::Parser::ParserTargetInfo::LongAlign::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longAlign = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longAlign = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::LongWidth::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longWidth;
return NativePtr->longWidth;
}
void CppSharp::Parser::ParserTargetInfo::LongWidth::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longWidth = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longWidth = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::LongDoubleAlign::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longDoubleAlign;
return NativePtr->longDoubleAlign;
}
void CppSharp::Parser::ParserTargetInfo::LongDoubleAlign::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longDoubleAlign = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longDoubleAlign = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::LongDoubleWidth::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longDoubleWidth;
return NativePtr->longDoubleWidth;
}
void CppSharp::Parser::ParserTargetInfo::LongDoubleWidth::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longDoubleWidth = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longDoubleWidth = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::LongLongAlign::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longLongAlign;
return NativePtr->longLongAlign;
}
void CppSharp::Parser::ParserTargetInfo::LongLongAlign::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longLongAlign = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longLongAlign = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::LongLongWidth::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longLongWidth;
return NativePtr->longLongWidth;
}
void CppSharp::Parser::ParserTargetInfo::LongLongWidth::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longLongWidth = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longLongWidth = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::PointerAlign::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->pointerAlign;
return NativePtr->pointerAlign;
}
void CppSharp::Parser::ParserTargetInfo::PointerAlign::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->pointerAlign = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->pointerAlign = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::PointerWidth::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->pointerWidth;
return NativePtr->pointerWidth;
}
void CppSharp::Parser::ParserTargetInfo::PointerWidth::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->pointerWidth = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->pointerWidth = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::WCharAlign::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wCharAlign;
return NativePtr->wCharAlign;
}
void CppSharp::Parser::ParserTargetInfo::WCharAlign::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wCharAlign = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wCharAlign = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::WCharWidth::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wCharWidth;
return NativePtr->wCharWidth;
}
void CppSharp::Parser::ParserTargetInfo::WCharWidth::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wCharWidth = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wCharWidth = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::Float128Align::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->float128Align;
return NativePtr->float128Align;
}
void CppSharp::Parser::ParserTargetInfo::Float128Align::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->float128Align = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->float128Align = value;
}
unsigned int CppSharp::Parser::ParserTargetInfo::Float128Width::get()
{
return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->float128Width;
return NativePtr->float128Width;
}
void CppSharp::Parser::ParserTargetInfo::Float128Width::set(unsigned int value)
{
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->float128Width = value;
((struct ::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->float128Width = value;
}

18
src/CppParser/Bindings/CLI/Target.h

@ -41,15 +41,15 @@ namespace CppSharp @@ -41,15 +41,15 @@ namespace CppSharp
{
public:
property ::CppSharp::CppParser::ParserTargetInfo* NativePtr;
property System::IntPtr __Instance
property struct ::CppSharp::CppParser::ParserTargetInfo* NativePtr;
property ::System::IntPtr __Instance
{
virtual System::IntPtr get();
virtual void set(System::IntPtr instance);
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
ParserTargetInfo(::CppSharp::CppParser::ParserTargetInfo* native);
ParserTargetInfo(::CppSharp::CppParser::ParserTargetInfo* native, bool ownNativeInstance);
ParserTargetInfo(struct ::CppSharp::CppParser::ParserTargetInfo* native);
ParserTargetInfo(struct ::CppSharp::CppParser::ParserTargetInfo* native, bool ownNativeInstance);
static ParserTargetInfo^ __CreateInstance(::System::IntPtr native);
static ParserTargetInfo^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ParserTargetInfo();
@ -58,10 +58,10 @@ namespace CppSharp @@ -58,10 +58,10 @@ namespace CppSharp
~ParserTargetInfo();
property System::String^ ABI
property ::System::String^ ABI
{
System::String^ get();
void set(System::String^);
::System::String^ get();
void set(::System::String^);
}
property CppSharp::Parser::ParserIntType Char16Type

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

File diff suppressed because it is too large Load Diff

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

@ -140,15 +140,15 @@ namespace CppSharp @@ -140,15 +140,15 @@ namespace CppSharp
{
public:
property ::CppSharp::CppParser::AST::Type* NativePtr;
property System::IntPtr __Instance
property struct ::CppSharp::CppParser::AST::Type* NativePtr;
property ::System::IntPtr __Instance
{
virtual System::IntPtr get();
virtual void set(System::IntPtr instance);
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
Type(::CppSharp::CppParser::AST::Type* native);
Type(::CppSharp::CppParser::AST::Type* native, bool ownNativeInstance);
Type(struct ::CppSharp::CppParser::AST::Type* native);
Type(struct ::CppSharp::CppParser::AST::Type* native, bool ownNativeInstance);
static Type^ __CreateInstance(::System::IntPtr native);
static Type^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
Type(CppSharp::Parser::AST::TypeKind kind);
@ -180,15 +180,15 @@ namespace CppSharp @@ -180,15 +180,15 @@ namespace CppSharp
{
public:
property ::CppSharp::CppParser::AST::TypeQualifiers* NativePtr;
property System::IntPtr __Instance
property struct ::CppSharp::CppParser::AST::TypeQualifiers* NativePtr;
property ::System::IntPtr __Instance
{
virtual System::IntPtr get();
virtual void set(System::IntPtr instance);
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
TypeQualifiers(::CppSharp::CppParser::AST::TypeQualifiers* native);
TypeQualifiers(::CppSharp::CppParser::AST::TypeQualifiers* native, bool ownNativeInstance);
TypeQualifiers(struct ::CppSharp::CppParser::AST::TypeQualifiers* native);
TypeQualifiers(struct ::CppSharp::CppParser::AST::TypeQualifiers* native, bool ownNativeInstance);
static TypeQualifiers^ __CreateInstance(::System::IntPtr native);
static TypeQualifiers^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TypeQualifiers(CppSharp::Parser::AST::TypeQualifiers^ _0);
@ -224,15 +224,15 @@ namespace CppSharp @@ -224,15 +224,15 @@ namespace CppSharp
{
public:
property ::CppSharp::CppParser::AST::QualifiedType* NativePtr;
property System::IntPtr __Instance
property struct ::CppSharp::CppParser::AST::QualifiedType* NativePtr;
property ::System::IntPtr __Instance
{
virtual System::IntPtr get();
virtual void set(System::IntPtr instance);
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
QualifiedType(::CppSharp::CppParser::AST::QualifiedType* native);
QualifiedType(::CppSharp::CppParser::AST::QualifiedType* native, bool ownNativeInstance);
QualifiedType(struct ::CppSharp::CppParser::AST::QualifiedType* native);
QualifiedType(struct ::CppSharp::CppParser::AST::QualifiedType* native, bool ownNativeInstance);
static QualifiedType^ __CreateInstance(::System::IntPtr native);
static QualifiedType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
QualifiedType();
@ -262,8 +262,8 @@ namespace CppSharp @@ -262,8 +262,8 @@ namespace CppSharp
{
public:
TagType(::CppSharp::CppParser::AST::TagType* native);
TagType(::CppSharp::CppParser::AST::TagType* native, bool ownNativeInstance);
TagType(struct ::CppSharp::CppParser::AST::TagType* native);
TagType(struct ::CppSharp::CppParser::AST::TagType* native, bool ownNativeInstance);
static TagType^ __CreateInstance(::System::IntPtr native);
static TagType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TagType();
@ -291,8 +291,8 @@ namespace CppSharp @@ -291,8 +291,8 @@ namespace CppSharp
Incomplete = 3
};
ArrayType(::CppSharp::CppParser::AST::ArrayType* native);
ArrayType(::CppSharp::CppParser::AST::ArrayType* native, bool ownNativeInstance);
ArrayType(struct ::CppSharp::CppParser::AST::ArrayType* native);
ArrayType(struct ::CppSharp::CppParser::AST::ArrayType* native, bool ownNativeInstance);
static ArrayType^ __CreateInstance(::System::IntPtr native);
static ArrayType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
ArrayType();
@ -330,8 +330,8 @@ namespace CppSharp @@ -330,8 +330,8 @@ namespace CppSharp
{
public:
FunctionType(::CppSharp::CppParser::AST::FunctionType* native);
FunctionType(::CppSharp::CppParser::AST::FunctionType* native, bool ownNativeInstance);
FunctionType(struct ::CppSharp::CppParser::AST::FunctionType* native);
FunctionType(struct ::CppSharp::CppParser::AST::FunctionType* native, bool ownNativeInstance);
static FunctionType^ __CreateInstance(::System::IntPtr native);
static FunctionType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
FunctionType();
@ -358,10 +358,10 @@ namespace CppSharp @@ -358,10 +358,10 @@ namespace CppSharp
void set(CppSharp::Parser::AST::ExceptionSpecType);
}
property System::Collections::Generic::List<CppSharp::Parser::AST::Parameter^>^ Parameters
property ::System::Collections::Generic::List<CppSharp::Parser::AST::Parameter^>^ Parameters
{
System::Collections::Generic::List<CppSharp::Parser::AST::Parameter^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::Parameter^>^);
::System::Collections::Generic::List<CppSharp::Parser::AST::Parameter^>^ get();
void set(::System::Collections::Generic::List<CppSharp::Parser::AST::Parameter^>^);
}
property unsigned int ParametersCount
@ -388,8 +388,8 @@ namespace CppSharp @@ -388,8 +388,8 @@ namespace CppSharp
RVReference = 3
};
PointerType(::CppSharp::CppParser::AST::PointerType* native);
PointerType(::CppSharp::CppParser::AST::PointerType* native, bool ownNativeInstance);
PointerType(struct ::CppSharp::CppParser::AST::PointerType* native);
PointerType(struct ::CppSharp::CppParser::AST::PointerType* native, bool ownNativeInstance);
static PointerType^ __CreateInstance(::System::IntPtr native);
static PointerType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
PointerType();
@ -415,8 +415,8 @@ namespace CppSharp @@ -415,8 +415,8 @@ namespace CppSharp
{
public:
MemberPointerType(::CppSharp::CppParser::AST::MemberPointerType* native);
MemberPointerType(::CppSharp::CppParser::AST::MemberPointerType* native, bool ownNativeInstance);
MemberPointerType(struct ::CppSharp::CppParser::AST::MemberPointerType* native);
MemberPointerType(struct ::CppSharp::CppParser::AST::MemberPointerType* native, bool ownNativeInstance);
static MemberPointerType^ __CreateInstance(::System::IntPtr native);
static MemberPointerType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
MemberPointerType();
@ -436,8 +436,8 @@ namespace CppSharp @@ -436,8 +436,8 @@ namespace CppSharp
{
public:
TypedefType(::CppSharp::CppParser::AST::TypedefType* native);
TypedefType(::CppSharp::CppParser::AST::TypedefType* native, bool ownNativeInstance);
TypedefType(struct ::CppSharp::CppParser::AST::TypedefType* native);
TypedefType(struct ::CppSharp::CppParser::AST::TypedefType* native, bool ownNativeInstance);
static TypedefType^ __CreateInstance(::System::IntPtr native);
static TypedefType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TypedefType();
@ -457,8 +457,8 @@ namespace CppSharp @@ -457,8 +457,8 @@ namespace CppSharp
{
public:
AttributedType(::CppSharp::CppParser::AST::AttributedType* native);
AttributedType(::CppSharp::CppParser::AST::AttributedType* native, bool ownNativeInstance);
AttributedType(struct ::CppSharp::CppParser::AST::AttributedType* native);
AttributedType(struct ::CppSharp::CppParser::AST::AttributedType* native, bool ownNativeInstance);
static AttributedType^ __CreateInstance(::System::IntPtr native);
static AttributedType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
AttributedType();
@ -484,8 +484,8 @@ namespace CppSharp @@ -484,8 +484,8 @@ namespace CppSharp
{
public:
DecayedType(::CppSharp::CppParser::AST::DecayedType* native);
DecayedType(::CppSharp::CppParser::AST::DecayedType* native, bool ownNativeInstance);
DecayedType(struct ::CppSharp::CppParser::AST::DecayedType* native);
DecayedType(struct ::CppSharp::CppParser::AST::DecayedType* native, bool ownNativeInstance);
static DecayedType^ __CreateInstance(::System::IntPtr native);
static DecayedType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DecayedType();
@ -529,15 +529,15 @@ namespace CppSharp @@ -529,15 +529,15 @@ namespace CppSharp
Pack = 7
};
property ::CppSharp::CppParser::AST::TemplateArgument* NativePtr;
property System::IntPtr __Instance
property struct ::CppSharp::CppParser::AST::TemplateArgument* NativePtr;
property ::System::IntPtr __Instance
{
virtual System::IntPtr get();
virtual void set(System::IntPtr instance);
virtual ::System::IntPtr get();
virtual void set(::System::IntPtr instance);
}
TemplateArgument(::CppSharp::CppParser::AST::TemplateArgument* native);
TemplateArgument(::CppSharp::CppParser::AST::TemplateArgument* native, bool ownNativeInstance);
TemplateArgument(struct ::CppSharp::CppParser::AST::TemplateArgument* native);
TemplateArgument(struct ::CppSharp::CppParser::AST::TemplateArgument* native, bool ownNativeInstance);
static TemplateArgument^ __CreateInstance(::System::IntPtr native);
static TemplateArgument^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TemplateArgument();
@ -579,8 +579,8 @@ namespace CppSharp @@ -579,8 +579,8 @@ namespace CppSharp
{
public:
TemplateSpecializationType(::CppSharp::CppParser::AST::TemplateSpecializationType* native);
TemplateSpecializationType(::CppSharp::CppParser::AST::TemplateSpecializationType* native, bool ownNativeInstance);
TemplateSpecializationType(struct ::CppSharp::CppParser::AST::TemplateSpecializationType* native);
TemplateSpecializationType(struct ::CppSharp::CppParser::AST::TemplateSpecializationType* native, bool ownNativeInstance);
static TemplateSpecializationType^ __CreateInstance(::System::IntPtr native);
static TemplateSpecializationType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TemplateSpecializationType();
@ -589,10 +589,10 @@ namespace CppSharp @@ -589,10 +589,10 @@ namespace CppSharp
~TemplateSpecializationType();
property System::Collections::Generic::List<CppSharp::Parser::AST::TemplateArgument^>^ Arguments
property ::System::Collections::Generic::List<CppSharp::Parser::AST::TemplateArgument^>^ Arguments
{
System::Collections::Generic::List<CppSharp::Parser::AST::TemplateArgument^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::TemplateArgument^>^);
::System::Collections::Generic::List<CppSharp::Parser::AST::TemplateArgument^>^ get();
void set(::System::Collections::Generic::List<CppSharp::Parser::AST::TemplateArgument^>^);
}
property CppSharp::Parser::AST::Template^ Template
@ -623,8 +623,8 @@ namespace CppSharp @@ -623,8 +623,8 @@ namespace CppSharp
{
public:
DependentTemplateSpecializationType(::CppSharp::CppParser::AST::DependentTemplateSpecializationType* native);
DependentTemplateSpecializationType(::CppSharp::CppParser::AST::DependentTemplateSpecializationType* native, bool ownNativeInstance);
DependentTemplateSpecializationType(struct ::CppSharp::CppParser::AST::DependentTemplateSpecializationType* native);
DependentTemplateSpecializationType(struct ::CppSharp::CppParser::AST::DependentTemplateSpecializationType* native, bool ownNativeInstance);
static DependentTemplateSpecializationType^ __CreateInstance(::System::IntPtr native);
static DependentTemplateSpecializationType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DependentTemplateSpecializationType();
@ -633,10 +633,10 @@ namespace CppSharp @@ -633,10 +633,10 @@ namespace CppSharp
~DependentTemplateSpecializationType();
property System::Collections::Generic::List<CppSharp::Parser::AST::TemplateArgument^>^ Arguments
property ::System::Collections::Generic::List<CppSharp::Parser::AST::TemplateArgument^>^ Arguments
{
System::Collections::Generic::List<CppSharp::Parser::AST::TemplateArgument^>^ get();
void set(System::Collections::Generic::List<CppSharp::Parser::AST::TemplateArgument^>^);
::System::Collections::Generic::List<CppSharp::Parser::AST::TemplateArgument^>^ get();
void set(::System::Collections::Generic::List<CppSharp::Parser::AST::TemplateArgument^>^);
}
property CppSharp::Parser::AST::QualifiedType^ Desugared
@ -661,8 +661,8 @@ namespace CppSharp @@ -661,8 +661,8 @@ namespace CppSharp
{
public:
TemplateParameterType(::CppSharp::CppParser::AST::TemplateParameterType* native);
TemplateParameterType(::CppSharp::CppParser::AST::TemplateParameterType* native, bool ownNativeInstance);
TemplateParameterType(struct ::CppSharp::CppParser::AST::TemplateParameterType* native);
TemplateParameterType(struct ::CppSharp::CppParser::AST::TemplateParameterType* native, bool ownNativeInstance);
static TemplateParameterType^ __CreateInstance(::System::IntPtr native);
static TemplateParameterType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TemplateParameterType();
@ -700,8 +700,8 @@ namespace CppSharp @@ -700,8 +700,8 @@ namespace CppSharp
{
public:
TemplateParameterSubstitutionType(::CppSharp::CppParser::AST::TemplateParameterSubstitutionType* native);
TemplateParameterSubstitutionType(::CppSharp::CppParser::AST::TemplateParameterSubstitutionType* native, bool ownNativeInstance);
TemplateParameterSubstitutionType(struct ::CppSharp::CppParser::AST::TemplateParameterSubstitutionType* native);
TemplateParameterSubstitutionType(struct ::CppSharp::CppParser::AST::TemplateParameterSubstitutionType* native, bool ownNativeInstance);
static TemplateParameterSubstitutionType^ __CreateInstance(::System::IntPtr native);
static TemplateParameterSubstitutionType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
TemplateParameterSubstitutionType();
@ -727,8 +727,8 @@ namespace CppSharp @@ -727,8 +727,8 @@ namespace CppSharp
{
public:
InjectedClassNameType(::CppSharp::CppParser::AST::InjectedClassNameType* native);
InjectedClassNameType(::CppSharp::CppParser::AST::InjectedClassNameType* native, bool ownNativeInstance);
InjectedClassNameType(struct ::CppSharp::CppParser::AST::InjectedClassNameType* native);
InjectedClassNameType(struct ::CppSharp::CppParser::AST::InjectedClassNameType* native, bool ownNativeInstance);
static InjectedClassNameType^ __CreateInstance(::System::IntPtr native);
static InjectedClassNameType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
InjectedClassNameType();
@ -754,8 +754,8 @@ namespace CppSharp @@ -754,8 +754,8 @@ namespace CppSharp
{
public:
DependentNameType(::CppSharp::CppParser::AST::DependentNameType* native);
DependentNameType(::CppSharp::CppParser::AST::DependentNameType* native, bool ownNativeInstance);
DependentNameType(struct ::CppSharp::CppParser::AST::DependentNameType* native);
DependentNameType(struct ::CppSharp::CppParser::AST::DependentNameType* native, bool ownNativeInstance);
static DependentNameType^ __CreateInstance(::System::IntPtr native);
static DependentNameType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
DependentNameType();
@ -770,10 +770,10 @@ namespace CppSharp @@ -770,10 +770,10 @@ namespace CppSharp
void set(CppSharp::Parser::AST::QualifiedType^);
}
property System::String^ Identifier
property ::System::String^ Identifier
{
System::String^ get();
void set(System::String^);
::System::String^ get();
void set(::System::String^);
}
};
@ -781,8 +781,8 @@ namespace CppSharp @@ -781,8 +781,8 @@ namespace CppSharp
{
public:
PackExpansionType(::CppSharp::CppParser::AST::PackExpansionType* native);
PackExpansionType(::CppSharp::CppParser::AST::PackExpansionType* native, bool ownNativeInstance);
PackExpansionType(struct ::CppSharp::CppParser::AST::PackExpansionType* native);
PackExpansionType(struct ::CppSharp::CppParser::AST::PackExpansionType* native, bool ownNativeInstance);
static PackExpansionType^ __CreateInstance(::System::IntPtr native);
static PackExpansionType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
PackExpansionType();
@ -796,8 +796,8 @@ namespace CppSharp @@ -796,8 +796,8 @@ namespace CppSharp
{
public:
UnaryTransformType(::CppSharp::CppParser::AST::UnaryTransformType* native);
UnaryTransformType(::CppSharp::CppParser::AST::UnaryTransformType* native, bool ownNativeInstance);
UnaryTransformType(struct ::CppSharp::CppParser::AST::UnaryTransformType* native);
UnaryTransformType(struct ::CppSharp::CppParser::AST::UnaryTransformType* native, bool ownNativeInstance);
static UnaryTransformType^ __CreateInstance(::System::IntPtr native);
static UnaryTransformType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
UnaryTransformType();
@ -823,8 +823,8 @@ namespace CppSharp @@ -823,8 +823,8 @@ namespace CppSharp
{
public:
UnresolvedUsingType(::CppSharp::CppParser::AST::UnresolvedUsingType* native);
UnresolvedUsingType(::CppSharp::CppParser::AST::UnresolvedUsingType* native, bool ownNativeInstance);
UnresolvedUsingType(struct ::CppSharp::CppParser::AST::UnresolvedUsingType* native);
UnresolvedUsingType(struct ::CppSharp::CppParser::AST::UnresolvedUsingType* native, bool ownNativeInstance);
static UnresolvedUsingType^ __CreateInstance(::System::IntPtr native);
static UnresolvedUsingType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
UnresolvedUsingType();
@ -844,8 +844,8 @@ namespace CppSharp @@ -844,8 +844,8 @@ namespace CppSharp
{
public:
VectorType(::CppSharp::CppParser::AST::VectorType* native);
VectorType(::CppSharp::CppParser::AST::VectorType* native, bool ownNativeInstance);
VectorType(struct ::CppSharp::CppParser::AST::VectorType* native);
VectorType(struct ::CppSharp::CppParser::AST::VectorType* native, bool ownNativeInstance);
static VectorType^ __CreateInstance(::System::IntPtr native);
static VectorType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
VectorType();
@ -871,8 +871,8 @@ namespace CppSharp @@ -871,8 +871,8 @@ namespace CppSharp
{
public:
BuiltinType(::CppSharp::CppParser::AST::BuiltinType* native);
BuiltinType(::CppSharp::CppParser::AST::BuiltinType* native, bool ownNativeInstance);
BuiltinType(struct ::CppSharp::CppParser::AST::BuiltinType* native);
BuiltinType(struct ::CppSharp::CppParser::AST::BuiltinType* native, bool ownNativeInstance);
static BuiltinType^ __CreateInstance(::System::IntPtr native);
static BuiltinType^ __CreateInstance(::System::IntPtr native, bool __ownsNativeInstance);
BuiltinType();

7
src/Generator/Types/Std/Stdlib.CLI.cs

@ -224,9 +224,10 @@ namespace CppSharp.Types.Std @@ -224,9 +224,10 @@ namespace CppSharp.Types.Std
"auto {0} = gcnew ::System::Collections::Generic::List<{1}>();",
tmpVarName, managedType);
string retVarName = ctx.ReturnType.Type.Desugar().IsPointer() ? $"*{ctx.ReturnVarName}" : ctx.ReturnVarName;
ctx.Before.WriteLine("for(auto _element : {0})",
retVarName);
string retVarName = "__list" + ctx.ParameterIndex;
ctx.Before.WriteLine($@"auto {retVarName} = {(
ctx.ReturnType.Type.Desugar().IsPointer() ? $"*{ctx.ReturnVarName}" : ctx.ReturnVarName)};");
ctx.Before.WriteLine($"for(auto _element : {retVarName})");
ctx.Before.WriteOpenBraceAndIndent();
{
var elementCtx = new MarshalContext(ctx.Context, ctx.Indentation)

Loading…
Cancel
Save