From 990d04d2cd3475acd076c1cb1a394504042b1c4e Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Tue, 9 Jul 2019 13:46:02 +0300 Subject: [PATCH] Regenerate the parser bindings Signed-off-by: Dimitar Dobrev --- src/CppParser/Bindings/CLI/AST.cpp | 6 + src/CppParser/Bindings/CLI/CppParser.cpp | 2 + src/CppParser/Bindings/CLI/Decl.cpp | 36 ++ src/CppParser/Bindings/CLI/Expr.cpp | 44 ++ src/CppParser/Bindings/CLI/Stmt.cpp | 4 + src/CppParser/Bindings/CLI/Types.cpp | 42 ++ .../CppSharp.CppParser.cs | 388 ++++++++++++------ .../CSharp/i686-apple-darwin12.4.0/Std.cs | 157 ++++--- .../i686-pc-win32-msvc/CppSharp.CppParser.cs | 382 +++++++++++------ .../Bindings/CSharp/i686-pc-win32-msvc/Std.cs | 69 +++- .../CppSharp.CppParser.cs | 388 ++++++++++++------ .../CSharp/x86_64-apple-darwin12.4.0/Std.cs | 157 ++++--- .../CppSharp.CppParser.cs | 388 ++++++++++++------ .../CSharp/x86_64-linux-gnu-cxx11abi/Std.cs | 94 ++++- .../x86_64-linux-gnu/CppSharp.CppParser.cs | 388 ++++++++++++------ .../Bindings/CSharp/x86_64-linux-gnu/Std.cs | 87 +++- .../CppSharp.CppParser.cs | 386 +++++++++++------ .../CSharp/x86_64-pc-win32-msvc/Std.cs | 69 +++- 18 files changed, 2185 insertions(+), 902 deletions(-) diff --git a/src/CppParser/Bindings/CLI/AST.cpp b/src/CppParser/Bindings/CLI/AST.cpp index fd069598..3efae205 100644 --- a/src/CppParser/Bindings/CLI/AST.cpp +++ b/src/CppParser/Bindings/CLI/AST.cpp @@ -669,6 +669,8 @@ void CppSharp::Parser::AST::BlockCommandComment::Arguments::set(System::Collecti auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::BlockCommandComment::Argument>(); for each(CppSharp::Parser::AST::BlockCommandComment::Argument^ _element in value) { + if (ReferenceEquals(_element, nullptr)) + throw gcnew ::System::ArgumentNullException("_element", "Cannot be null because it is passed by value."); auto _marshalElement = *(::CppSharp::CppParser::AST::BlockCommandComment::Argument*)_element->NativePtr; _tmpvalue.push_back(_marshalElement); } @@ -1145,6 +1147,8 @@ void CppSharp::Parser::AST::InlineCommandComment::Arguments::set(System::Collect auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::InlineCommandComment::Argument>(); for each(CppSharp::Parser::AST::InlineCommandComment::Argument^ _element in value) { + if (ReferenceEquals(_element, nullptr)) + throw gcnew ::System::ArgumentNullException("_element", "Cannot be null because it is passed by value."); auto _marshalElement = *(::CppSharp::CppParser::AST::InlineCommandComment::Argument*)_element->NativePtr; _tmpvalue.push_back(_marshalElement); } @@ -1349,6 +1353,8 @@ void CppSharp::Parser::AST::HTMLStartTagComment::Attributes::set(System::Collect auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute>(); for each(CppSharp::Parser::AST::HTMLStartTagComment::Attribute^ _element in value) { + if (ReferenceEquals(_element, nullptr)) + throw gcnew ::System::ArgumentNullException("_element", "Cannot be null because it is passed by value."); auto _marshalElement = *(::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*)_element->NativePtr; _tmpvalue.push_back(_marshalElement); } diff --git a/src/CppParser/Bindings/CLI/CppParser.cpp b/src/CppParser/Bindings/CLI/CppParser.cpp index 2a03ea9e..f2e45305 100644 --- a/src/CppParser/Bindings/CLI/CppParser.cpp +++ b/src/CppParser/Bindings/CLI/CppParser.cpp @@ -738,6 +738,8 @@ void CppSharp::Parser::ParserResult::Diagnostics::set(System::Collections::Gener auto _tmpvalue = std::vector<::CppSharp::CppParser::ParserDiagnostic>(); for each(CppSharp::Parser::ParserDiagnostic^ _element in value) { + if (ReferenceEquals(_element, nullptr)) + throw gcnew ::System::ArgumentNullException("_element", "Cannot be null because it is passed by value."); auto _marshalElement = *(::CppSharp::CppParser::ParserDiagnostic*)_element->NativePtr; _tmpvalue.push_back(_marshalElement); } diff --git a/src/CppParser/Bindings/CLI/Decl.cpp b/src/CppParser/Bindings/CLI/Decl.cpp index 4469f293..a6655a42 100644 --- a/src/CppParser/Bindings/CLI/Decl.cpp +++ b/src/CppParser/Bindings/CLI/Decl.cpp @@ -882,6 +882,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::TypedefNameDecl::Qu void CppSharp::Parser::AST::TypedefNameDecl::QualifiedType::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::TypedefNameDecl*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -1419,6 +1421,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Parameter::Qualifie void CppSharp::Parser::AST::Parameter::QualifiedType::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::Parameter*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -1536,6 +1540,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Function::ReturnTyp void CppSharp::Parser::AST::Function::ReturnType::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::Function*)NativePtr)->returnType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -1738,6 +1744,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Function::Qualified void CppSharp::Parser::AST::Function::QualifiedType::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::Function*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -1891,6 +1899,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Method::ConversionT void CppSharp::Parser::AST::Method::ConversionType::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::Method*)NativePtr)->conversionType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -2166,6 +2176,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Variable::Qualified void CppSharp::Parser::AST::Variable::QualifiedType::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::Variable*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -2294,6 +2306,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Field::QualifiedTyp void CppSharp::Parser::AST::Field::QualifiedType::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::Field*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -2513,6 +2527,8 @@ void CppSharp::Parser::AST::VTableLayout::Components::set(System::Collections::G auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::VTableComponent>(); for each(CppSharp::Parser::AST::VTableComponent^ _element in value) { + if (ReferenceEquals(_element, nullptr)) + throw gcnew ::System::ArgumentNullException("_element", "Cannot be null because it is passed by value."); auto _marshalElement = *(::CppSharp::CppParser::AST::VTableComponent*)_element->NativePtr; _tmpvalue.push_back(_marshalElement); } @@ -2603,6 +2619,8 @@ CppSharp::Parser::AST::VTableLayout^ CppSharp::Parser::AST::VFTableInfo::Layout: void CppSharp::Parser::AST::VFTableInfo::Layout::set(CppSharp::Parser::AST::VTableLayout^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::VFTableInfo*)NativePtr)->layout = *(::CppSharp::CppParser::AST::VTableLayout*)value->NativePtr; } @@ -2674,6 +2692,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::LayoutField::Qualif void CppSharp::Parser::AST::LayoutField::QualifiedType::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::LayoutField*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -2886,6 +2906,8 @@ void CppSharp::Parser::AST::ClassLayout::VFTables::set(System::Collections::Gene auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::VFTableInfo>(); for each(CppSharp::Parser::AST::VFTableInfo^ _element in value) { + if (ReferenceEquals(_element, nullptr)) + throw gcnew ::System::ArgumentNullException("_element", "Cannot be null because it is passed by value."); auto _marshalElement = *(::CppSharp::CppParser::AST::VFTableInfo*)_element->NativePtr; _tmpvalue.push_back(_marshalElement); } @@ -2899,6 +2921,8 @@ CppSharp::Parser::AST::VTableLayout^ CppSharp::Parser::AST::ClassLayout::Layout: void CppSharp::Parser::AST::ClassLayout::Layout::set(CppSharp::Parser::AST::VTableLayout^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->layout = *(::CppSharp::CppParser::AST::VTableLayout*)value->NativePtr; } @@ -2969,6 +2993,8 @@ void CppSharp::Parser::AST::ClassLayout::Fields::set(System::Collections::Generi auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::LayoutField>(); for each(CppSharp::Parser::AST::LayoutField^ _element in value) { + if (ReferenceEquals(_element, nullptr)) + throw gcnew ::System::ArgumentNullException("_element", "Cannot be null because it is passed by value."); auto _marshalElement = *(::CppSharp::CppParser::AST::LayoutField*)_element->NativePtr; _tmpvalue.push_back(_marshalElement); } @@ -2992,6 +3018,8 @@ void CppSharp::Parser::AST::ClassLayout::Bases::set(System::Collections::Generic auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::LayoutBase>(); for each(CppSharp::Parser::AST::LayoutBase^ _element in value) { + if (ReferenceEquals(_element, nullptr)) + throw gcnew ::System::ArgumentNullException("_element", "Cannot be null because it is passed by value."); auto _marshalElement = *(::CppSharp::CppParser::AST::LayoutBase*)_element->NativePtr; _tmpvalue.push_back(_marshalElement); } @@ -3690,6 +3718,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::TypeTemplateParamet void CppSharp::Parser::AST::TypeTemplateParameter::DefaultArgument::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::TypeTemplateParameter*)NativePtr)->defaultArgument = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -3965,6 +3995,8 @@ void CppSharp::Parser::AST::ClassTemplateSpecialization::Arguments::set(System:: auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::TemplateArgument>(); for each(CppSharp::Parser::AST::TemplateArgument^ _element in value) { + if (ReferenceEquals(_element, nullptr)) + throw gcnew ::System::ArgumentNullException("_element", "Cannot be null because it is passed by value."); auto _marshalElement = *(::CppSharp::CppParser::AST::TemplateArgument*)_element->NativePtr; _tmpvalue.push_back(_marshalElement); } @@ -4205,6 +4237,8 @@ void CppSharp::Parser::AST::FunctionTemplateSpecialization::Arguments::set(Syste auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::TemplateArgument>(); for each(CppSharp::Parser::AST::TemplateArgument^ _element in value) { + if (ReferenceEquals(_element, nullptr)) + throw gcnew ::System::ArgumentNullException("_element", "Cannot be null because it is passed by value."); auto _marshalElement = *(::CppSharp::CppParser::AST::TemplateArgument*)_element->NativePtr; _tmpvalue.push_back(_marshalElement); } @@ -4422,6 +4456,8 @@ void CppSharp::Parser::AST::VarTemplateSpecialization::Arguments::set(System::Co auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::TemplateArgument>(); for each(CppSharp::Parser::AST::TemplateArgument^ _element in value) { + if (ReferenceEquals(_element, nullptr)) + throw gcnew ::System::ArgumentNullException("_element", "Cannot be null because it is passed by value."); auto _marshalElement = *(::CppSharp::CppParser::AST::TemplateArgument*)_element->NativePtr; _tmpvalue.push_back(_marshalElement); } diff --git a/src/CppParser/Bindings/CLI/Expr.cpp b/src/CppParser/Bindings/CLI/Expr.cpp index 34d56de5..88745416 100644 --- a/src/CppParser/Bindings/CLI/Expr.cpp +++ b/src/CppParser/Bindings/CLI/Expr.cpp @@ -188,6 +188,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Expr::Type::get() void CppSharp::Parser::AST::Expr::Type::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::Expr*)NativePtr)->type = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -1501,6 +1503,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::UnaryExprOrTypeTrai void CppSharp::Parser::AST::UnaryExprOrTypeTraitExpr::ArgumentType::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::UnaryExprOrTypeTraitExpr*)NativePtr)->argumentType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -1521,6 +1525,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::UnaryExprOrTypeTrai void CppSharp::Parser::AST::UnaryExprOrTypeTraitExpr::TypeOfArgument::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::UnaryExprOrTypeTraitExpr*)NativePtr)->typeOfArgument = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -2237,6 +2243,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::ExplicitCastExpr::T void CppSharp::Parser::AST::ExplicitCastExpr::TypeAsWritten::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::ExplicitCastExpr*)NativePtr)->typeAsWritten = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -2584,6 +2592,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::CompoundAssignOpera void CppSharp::Parser::AST::CompoundAssignOperator::ComputationLHSType::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::CompoundAssignOperator*)NativePtr)->computationLHSType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -2594,6 +2604,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::CompoundAssignOpera void CppSharp::Parser::AST::CompoundAssignOperator::ComputationResultType::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::CompoundAssignOperator*)NativePtr)->computationResultType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -3596,6 +3608,8 @@ CppSharp::Parser::SourceRange^ CppSharp::Parser::AST::DesignatedInitExpr::Design void CppSharp::Parser::AST::DesignatedInitExpr::Designator::SourceRange::set(CppSharp::Parser::SourceRange^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::DesignatedInitExpr::Designator*)NativePtr)->sourceRange = *(::CppSharp::CppParser::SourceRange*)value->NativePtr; } @@ -3769,6 +3783,8 @@ CppSharp::Parser::SourceRange^ CppSharp::Parser::AST::DesignatedInitExpr::Design void CppSharp::Parser::AST::DesignatedInitExpr::DesignatorsSourceRange::set(CppSharp::Parser::SourceRange^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::DesignatedInitExpr*)NativePtr)->designatorsSourceRange = *(::CppSharp::CppParser::SourceRange*)value->NativePtr; } @@ -4529,6 +4545,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::AtomicExpr::ValueTy void CppSharp::Parser::AST::AtomicExpr::ValueType::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::AtomicExpr*)NativePtr)->valueType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -4919,6 +4937,8 @@ CppSharp::Parser::SourceRange^ CppSharp::Parser::AST::CXXNamedCastExpr::AngleBra void CppSharp::Parser::AST::CXXNamedCastExpr::AngleBrackets::set(CppSharp::Parser::SourceRange^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::CXXNamedCastExpr*)NativePtr)->angleBrackets = *(::CppSharp::CppParser::SourceRange*)value->NativePtr; } @@ -5951,6 +5971,8 @@ CppSharp::Parser::SourceRange^ CppSharp::Parser::AST::CXXConstructExpr::ParenOrB void CppSharp::Parser::AST::CXXConstructExpr::ParenOrBraceRange::set(CppSharp::Parser::SourceRange^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::CXXConstructExpr*)NativePtr)->parenOrBraceRange = *(::CppSharp::CppParser::SourceRange*)value->NativePtr; } @@ -6243,6 +6265,8 @@ CppSharp::Parser::SourceRange^ CppSharp::Parser::AST::LambdaExpr::IntroducerRang void CppSharp::Parser::AST::LambdaExpr::IntroducerRange::set(CppSharp::Parser::SourceRange^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::LambdaExpr*)NativePtr)->introducerRange = *(::CppSharp::CppParser::SourceRange*)value->NativePtr; } @@ -6461,6 +6485,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::CXXNewExpr::Allocat void CppSharp::Parser::AST::CXXNewExpr::AllocatedType::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::CXXNewExpr*)NativePtr)->allocatedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -6511,6 +6537,8 @@ CppSharp::Parser::SourceRange^ CppSharp::Parser::AST::CXXNewExpr::TypeIdParens:: void CppSharp::Parser::AST::CXXNewExpr::TypeIdParens::set(CppSharp::Parser::SourceRange^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::CXXNewExpr*)NativePtr)->typeIdParens = *(::CppSharp::CppParser::SourceRange*)value->NativePtr; } @@ -6571,6 +6599,8 @@ CppSharp::Parser::SourceRange^ CppSharp::Parser::AST::CXXNewExpr::DirectInitRang void CppSharp::Parser::AST::CXXNewExpr::DirectInitRange::set(CppSharp::Parser::SourceRange^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::CXXNewExpr*)NativePtr)->directInitRange = *(::CppSharp::CppParser::SourceRange*)value->NativePtr; } @@ -6668,6 +6698,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::CXXDeleteExpr::Dest void CppSharp::Parser::AST::CXXDeleteExpr::DestroyedType::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::CXXDeleteExpr*)NativePtr)->destroyedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -6775,6 +6807,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::CXXPseudoDestructor void CppSharp::Parser::AST::CXXPseudoDestructorExpr::DestroyedType::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::CXXPseudoDestructorExpr*)NativePtr)->destroyedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -6879,6 +6913,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::ArrayTypeTraitExpr: void CppSharp::Parser::AST::ArrayTypeTraitExpr::QueriedType::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::ArrayTypeTraitExpr*)NativePtr)->queriedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -7449,6 +7485,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::CXXUnresolvedConstr void CppSharp::Parser::AST::CXXUnresolvedConstructExpr::TypeAsWritten::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::CXXUnresolvedConstructExpr*)NativePtr)->typeAsWritten = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -7536,6 +7574,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::CXXDependentScopeMe void CppSharp::Parser::AST::CXXDependentScopeMemberExpr::BaseType::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::CXXDependentScopeMemberExpr*)NativePtr)->baseType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -7707,6 +7747,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::UnresolvedMemberExp void CppSharp::Parser::AST::UnresolvedMemberExpr::BaseType::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::UnresolvedMemberExpr*)NativePtr)->baseType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -8058,6 +8100,8 @@ CppSharp::Parser::AST::TemplateArgument^ CppSharp::Parser::AST::SubstNonTypeTemp void CppSharp::Parser::AST::SubstNonTypeTemplateParmPackExpr::ArgumentPack::set(CppSharp::Parser::AST::TemplateArgument^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::SubstNonTypeTemplateParmPackExpr*)NativePtr)->argumentPack = *(::CppSharp::CppParser::AST::TemplateArgument*)value->NativePtr; } diff --git a/src/CppParser/Bindings/CLI/Stmt.cpp b/src/CppParser/Bindings/CLI/Stmt.cpp index 4a49c8a0..0c14db26 100644 --- a/src/CppParser/Bindings/CLI/Stmt.cpp +++ b/src/CppParser/Bindings/CLI/Stmt.cpp @@ -86,6 +86,8 @@ CppSharp::Parser::SourceRange^ CppSharp::Parser::AST::Stmt::SourceRange::get() void CppSharp::Parser::AST::Stmt::SourceRange::set(CppSharp::Parser::SourceRange^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::Stmt*)NativePtr)->sourceRange = *(::CppSharp::CppParser::SourceRange*)value->NativePtr; } @@ -2510,6 +2512,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::CXXCatchStmt::Caugh void CppSharp::Parser::AST::CXXCatchStmt::CaughtType::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::CXXCatchStmt*)NativePtr)->caughtType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } diff --git a/src/CppParser/Bindings/CLI/Types.cpp b/src/CppParser/Bindings/CLI/Types.cpp index a68e8835..0fa05923 100644 --- a/src/CppParser/Bindings/CLI/Types.cpp +++ b/src/CppParser/Bindings/CLI/Types.cpp @@ -209,6 +209,8 @@ CppSharp::Parser::AST::TypeQualifiers^ CppSharp::Parser::AST::QualifiedType::Qua void CppSharp::Parser::AST::QualifiedType::Qualifiers::set(CppSharp::Parser::AST::TypeQualifiers^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::QualifiedType*)NativePtr)->qualifiers = *(::CppSharp::CppParser::AST::TypeQualifiers*)value->NativePtr; } @@ -291,6 +293,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::ArrayType::Qualifie void CppSharp::Parser::AST::ArrayType::QualifiedType::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::ArrayType*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -388,6 +392,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::FunctionType::Retur void CppSharp::Parser::AST::FunctionType::ReturnType::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::FunctionType*)NativePtr)->returnType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -477,6 +483,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::PointerType::Qualif void CppSharp::Parser::AST::PointerType::QualifiedPointee::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::PointerType*)NativePtr)->qualifiedPointee = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -528,6 +536,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::MemberPointerType:: void CppSharp::Parser::AST::MemberPointerType::Pointee::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::MemberPointerType*)NativePtr)->pointee = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -610,6 +620,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::AttributedType::Mod void CppSharp::Parser::AST::AttributedType::Modified::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::AttributedType*)NativePtr)->modified = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -620,6 +632,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::AttributedType::Equ void CppSharp::Parser::AST::AttributedType::Equivalent::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::AttributedType*)NativePtr)->equivalent = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -661,6 +675,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::DecayedType::Decaye void CppSharp::Parser::AST::DecayedType::Decayed::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::DecayedType*)NativePtr)->decayed = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -671,6 +687,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::DecayedType::Origin void CppSharp::Parser::AST::DecayedType::Original::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::DecayedType*)NativePtr)->original = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -681,6 +699,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::DecayedType::Pointe void CppSharp::Parser::AST::DecayedType::Pointee::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::DecayedType*)NativePtr)->pointee = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -742,6 +762,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::TemplateArgument::T void CppSharp::Parser::AST::TemplateArgument::Type::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::TemplateArgument*)NativePtr)->type = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -839,6 +861,8 @@ void CppSharp::Parser::AST::TemplateSpecializationType::Arguments::set(System::C auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::TemplateArgument>(); for each(CppSharp::Parser::AST::TemplateArgument^ _element in value) { + if (ReferenceEquals(_element, nullptr)) + throw gcnew ::System::ArgumentNullException("_element", "Cannot be null because it is passed by value."); auto _marshalElement = *(::CppSharp::CppParser::AST::TemplateArgument*)_element->NativePtr; _tmpvalue.push_back(_marshalElement); } @@ -862,6 +886,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::TemplateSpecializat void CppSharp::Parser::AST::TemplateSpecializationType::Desugared::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::TemplateSpecializationType*)NativePtr)->desugared = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -945,6 +971,8 @@ void CppSharp::Parser::AST::DependentTemplateSpecializationType::Arguments::set( auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::TemplateArgument>(); for each(CppSharp::Parser::AST::TemplateArgument^ _element in value) { + if (ReferenceEquals(_element, nullptr)) + throw gcnew ::System::ArgumentNullException("_element", "Cannot be null because it is passed by value."); auto _marshalElement = *(::CppSharp::CppParser::AST::TemplateArgument*)_element->NativePtr; _tmpvalue.push_back(_marshalElement); } @@ -958,6 +986,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::DependentTemplateSp void CppSharp::Parser::AST::DependentTemplateSpecializationType::Desugared::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::DependentTemplateSpecializationType*)NativePtr)->desugared = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -1082,6 +1112,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::TemplateParameterSu void CppSharp::Parser::AST::TemplateParameterSubstitutionType::Replacement::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::TemplateParameterSubstitutionType*)NativePtr)->replacement = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -1133,6 +1165,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::InjectedClassNameTy void CppSharp::Parser::AST::InjectedClassNameType::InjectedSpecializationType::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::InjectedClassNameType*)NativePtr)->injectedSpecializationType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -1190,6 +1224,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::DependentNameType:: void CppSharp::Parser::AST::DependentNameType::Qualifier::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::DependentNameType*)NativePtr)->qualifier = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -1272,6 +1308,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::UnaryTransformType: void CppSharp::Parser::AST::UnaryTransformType::Desugared::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::UnaryTransformType*)NativePtr)->desugared = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -1282,6 +1320,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::UnaryTransformType: void CppSharp::Parser::AST::UnaryTransformType::BaseType::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::UnaryTransformType*)NativePtr)->baseType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } @@ -1323,6 +1363,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::VectorType::Element void CppSharp::Parser::AST::VectorType::ElementType::set(CppSharp::Parser::AST::QualifiedType^ value) { + if (ReferenceEquals(value, nullptr)) + throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value."); ((::CppSharp::CppParser::AST::VectorType*)NativePtr)->elementType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } diff --git a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser.cs b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser.cs index 0f7e1e20..1133567a 100644 --- a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser.cs +++ b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser.cs @@ -95,7 +95,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser3AST13NativeLibrary10addSymbolsEPKc")] - internal static extern void AddSymbols(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddSymbols(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -110,7 +110,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser3AST13NativeLibrary15addDependenciesEPKc")] - internal static extern void AddDependencies(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddDependencies(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -612,7 +612,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddBlocks((__Instance + __PointerAdjustment), __arg0); } @@ -869,7 +870,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddContent((__Instance + __PointerAdjustment), __arg0); } @@ -1760,7 +1762,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddLines((__Instance + __PointerAdjustment), __arg0); } @@ -3675,7 +3678,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.QualifiedType.__Internal*)__Instance)->qualifiers = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.TypeQualifiers.__Internal() : *(global::CppSharp.Parser.AST.TypeQualifiers.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.QualifiedType.__Internal*)__Instance)->qualifiers = *(global::CppSharp.Parser.AST.TypeQualifiers.__Internal*) value.__Instance; } } } @@ -3883,7 +3888,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.ArrayType.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.ArrayType.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4068,7 +4075,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddParameters((__Instance + __PointerAdjustment), __arg0); } @@ -4086,7 +4094,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.FunctionType.__Internal*)__Instance)->returnType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.FunctionType.__Internal*)__Instance)->returnType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4225,7 +4235,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.PointerType.__Internal*)__Instance)->qualifiedPointee = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.PointerType.__Internal*)__Instance)->qualifiedPointee = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4331,7 +4343,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.MemberPointerType.__Internal*)__Instance)->pointee = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.MemberPointerType.__Internal*)__Instance)->pointee = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -4525,7 +4539,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.AttributedType.__Internal*)__Instance)->modified = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.AttributedType.__Internal*)__Instance)->modified = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4538,7 +4554,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.AttributedType.__Internal*)__Instance)->equivalent = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.AttributedType.__Internal*)__Instance)->equivalent = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -4637,7 +4655,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->decayed = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->decayed = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4650,7 +4670,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->original = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->original = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4663,7 +4685,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->pointee = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->pointee = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -4801,7 +4825,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TemplateArgument.__Internal*)__Instance)->type = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TemplateArgument.__Internal*)__Instance)->type = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5007,7 +5033,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal*)__Instance)->desugared = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal*)__Instance)->desugared = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5170,7 +5198,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal*)__Instance)->desugared = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal*)__Instance)->desugared = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5439,7 +5469,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TemplateParameterSubstitutionType.__Internal*)__Instance)->replacement = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TemplateParameterSubstitutionType.__Internal*)__Instance)->replacement = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5553,7 +5585,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.InjectedClassNameType.__Internal*)__Instance)->injectedSpecializationType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.InjectedClassNameType.__Internal*)__Instance)->injectedSpecializationType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5685,7 +5719,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DependentNameType.__Internal*)__Instance)->qualifier = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DependentNameType.__Internal*)__Instance)->qualifier = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5874,7 +5910,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnaryTransformType.__Internal*)__Instance)->desugared = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnaryTransformType.__Internal*)__Instance)->desugared = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5887,7 +5925,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnaryTransformType.__Internal*)__Instance)->baseType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnaryTransformType.__Internal*)__Instance)->baseType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -5983,7 +6023,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.VectorType.__Internal*)__Instance)->elementType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.VectorType.__Internal*)__Instance)->elementType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -6501,7 +6543,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddPreprocessedEntities((__Instance + __PointerAdjustment), __arg0); } @@ -6525,7 +6568,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddRedeclarations((__Instance + __PointerAdjustment), __arg0); } @@ -7192,7 +7236,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddNamespaces((__Instance + __PointerAdjustment), __arg0); } @@ -7216,7 +7261,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddEnums((__Instance + __PointerAdjustment), __arg0); } @@ -7240,7 +7286,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddFunctions((__Instance + __PointerAdjustment), __arg0); } @@ -7264,7 +7311,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddClasses((__Instance + __PointerAdjustment), __arg0); } @@ -7288,7 +7336,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddTemplates((__Instance + __PointerAdjustment), __arg0); } @@ -7312,7 +7361,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddTypedefs((__Instance + __PointerAdjustment), __arg0); } @@ -7336,7 +7386,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddTypeAliases((__Instance + __PointerAdjustment), __arg0); } @@ -7360,7 +7411,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddVariables((__Instance + __PointerAdjustment), __arg0); } @@ -7384,7 +7436,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddFriends((__Instance + __PointerAdjustment), __arg0); } @@ -7658,7 +7711,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TypedefNameDecl.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TypedefNameDecl.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -8237,7 +8292,7 @@ namespace CppSharp var __arg0 = __basicString0.__Instance; var __arg2 = ReferenceEquals(decl, null) ? global::System.IntPtr.Zero : decl.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, Class, __arg2); - __basicString0.Dispose(false); + __basicString0.Dispose(); } public StatementObsolete(global::CppSharp.Parser.AST.StatementObsolete _0) @@ -8391,7 +8446,7 @@ namespace CppSharp var __arg0 = __basicString0.__Instance; var __arg2 = ReferenceEquals(decl, null) ? global::System.IntPtr.Zero : decl.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, Class, __arg2); - __basicString0.Dispose(false); + __basicString0.Dispose(); } public ExpressionObsolete(global::CppSharp.Parser.AST.ExpressionObsolete _0) @@ -8507,8 +8562,8 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString3, opcodeStr); var __arg3 = __basicString3.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, __arg1, __arg2, __arg3); - __basicString0.Dispose(false); - __basicString3.Dispose(false); + __basicString0.Dispose(); + __basicString3.Dispose(); } public BinaryOperatorObsolete(global::CppSharp.Parser.AST.BinaryOperatorObsolete _0) @@ -8686,7 +8741,7 @@ namespace CppSharp var __arg0 = __basicString0.__Instance; var __arg1 = ReferenceEquals(decl, null) ? global::System.IntPtr.Zero : decl.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, __arg1); - __basicString0.Dispose(false); + __basicString0.Dispose(); } public CallExprObsolete(global::CppSharp.Parser.AST.CallExprObsolete _0) @@ -8729,7 +8784,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddArguments((__Instance + __PointerAdjustment), __arg0); } @@ -8845,7 +8901,7 @@ namespace CppSharp var __arg0 = __basicString0.__Instance; var __arg1 = ReferenceEquals(decl, null) ? global::System.IntPtr.Zero : decl.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, __arg1); - __basicString0.Dispose(false); + __basicString0.Dispose(); } public CXXConstructExprObsolete(global::CppSharp.Parser.AST.CXXConstructExprObsolete _0) @@ -8888,7 +8944,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddArguments((__Instance + __PointerAdjustment), __arg0); } @@ -9082,7 +9139,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Parameter.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Parameter.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -9438,7 +9497,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddParameters((__Instance + __PointerAdjustment), __arg0); } @@ -9456,7 +9516,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Function.__Internal*)__Instance)->returnType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Function.__Internal*)__Instance)->returnType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -9714,7 +9776,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Function.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Function.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -10037,7 +10101,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddOverriddenMethods((__Instance + __PointerAdjustment), __arg0); } @@ -10159,7 +10224,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Method.__Internal*)__Instance)->conversionType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Method.__Internal*)__Instance)->conversionType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -10611,7 +10678,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddItems((__Instance + __PointerAdjustment), __arg0); } @@ -10626,7 +10694,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, Name); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindItemByName((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.Enumeration.Item __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.Enumeration.Item.NativeToManagedMap.ContainsKey(__ret)) @@ -10873,7 +10941,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Variable.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Variable.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -11204,7 +11274,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Field.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Field.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -11850,7 +11922,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.VFTableInfo.__Internal*)__Instance)->layout = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.VTableLayout.__Internal() : *(global::CppSharp.Parser.AST.VTableLayout.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.VFTableInfo.__Internal*)__Instance)->layout = *(global::CppSharp.Parser.AST.VTableLayout.__Internal*) value.__Instance; } } } @@ -12002,7 +12076,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.LayoutField.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.LayoutField.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -12440,7 +12516,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.ClassLayout.__Internal*)__Instance)->layout = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.VTableLayout.__Internal() : *(global::CppSharp.Parser.AST.VTableLayout.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.ClassLayout.__Internal*)__Instance)->layout = *(global::CppSharp.Parser.AST.VTableLayout.__Internal*) value.__Instance; } } @@ -12858,7 +12936,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddBases((__Instance + __PointerAdjustment), __arg0); } @@ -12882,7 +12961,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddFields((__Instance + __PointerAdjustment), __arg0); } @@ -12906,7 +12986,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddMethods((__Instance + __PointerAdjustment), __arg0); } @@ -12930,7 +13011,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddSpecifiers((__Instance + __PointerAdjustment), __arg0); } @@ -13327,7 +13409,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddParameters((__Instance + __PointerAdjustment), __arg0); } @@ -14098,7 +14181,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TypeTemplateParameter.__Internal*)__Instance)->defaultArgument = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TypeTemplateParameter.__Internal*)__Instance)->defaultArgument = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -14553,7 +14638,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddSpecializations((__Instance + __PointerAdjustment), __arg0); } @@ -14568,7 +14654,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.ClassTemplateSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.ClassTemplateSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -14583,7 +14669,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindPartialSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -15351,7 +15437,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddSpecializations((__Instance + __PointerAdjustment), __arg0); } @@ -15366,7 +15453,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.FunctionTemplateSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.FunctionTemplateSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -15795,7 +15882,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddSpecializations((__Instance + __PointerAdjustment), __arg0); } @@ -15810,7 +15898,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.VarTemplateSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.VarTemplateSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -15825,7 +15913,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindPartialSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.VarTemplatePartialSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -17139,7 +17227,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddMacros((__Instance + __PointerAdjustment), __arg0); } @@ -17213,7 +17302,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser3AST10ASTContext18FindOrCreateModuleENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE")] - internal static extern global::System.IntPtr FindOrCreateModule(global::System.IntPtr __instance, global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C File); + internal static extern global::System.IntPtr FindOrCreateModule(global::System.IntPtr __instance, global::System.IntPtr File); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -17316,9 +17405,9 @@ namespace CppSharp { var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, File); - var __arg0 = *(global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C*) __basicString0.__Instance; + var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindOrCreateModule((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.TranslationUnit __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.TranslationUnit.NativeToManagedMap.ContainsKey(__ret)) @@ -17342,7 +17431,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddTranslationUnits((__Instance + __PointerAdjustment), __arg0); } @@ -17639,7 +17729,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Stmt.__Internal*)__Instance)->sourceRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Stmt.__Internal*)__Instance)->sourceRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -17814,7 +17906,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Adddecls((__Instance + __PointerAdjustment), __arg0); } @@ -18132,7 +18225,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addbody((__Instance + __PointerAdjustment), __arg0); } @@ -20778,7 +20872,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addinputs((__Instance + __PointerAdjustment), __arg0); } @@ -20802,7 +20897,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addoutputs((__Instance + __PointerAdjustment), __arg0); } @@ -22335,7 +22431,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddcaptureInits((__Instance + __PointerAdjustment), __arg0); } @@ -22495,7 +22592,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXCatchStmt.__Internal*)__Instance)->caughtType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXCatchStmt.__Internal*)__Instance)->caughtType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -24400,7 +24499,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Expr.__Internal*)__Instance)->type = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Expr.__Internal*)__Instance)->type = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -27580,7 +27681,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*)__Instance)->argumentType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*)__Instance)->argumentType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -27611,7 +27714,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*)__Instance)->typeOfArgument = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*)__Instance)->typeOfArgument = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -28056,7 +28161,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addarguments((__Instance + __PointerAdjustment), __arg0); } @@ -29314,7 +29420,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal*)__Instance)->typeAsWritten = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal*)__Instance)->typeAsWritten = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -30190,7 +30298,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal*)__Instance)->computationLHSType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal*)__Instance)->computationLHSType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -30203,7 +30313,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal*)__Instance)->computationResultType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal*)__Instance)->computationResultType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -32756,7 +32868,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal*)__Instance)->sourceRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal*)__Instance)->sourceRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } } @@ -33067,7 +33181,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal*)__Instance)->designatorsSourceRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal*)__Instance)->designatorsSourceRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } } @@ -35284,7 +35400,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.AtomicExpr.__Internal*)__Instance)->valueType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.AtomicExpr.__Internal*)__Instance)->valueType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -36379,7 +36497,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal*)__Instance)->angleBrackets = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal*)__Instance)->angleBrackets = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } } @@ -39466,7 +39586,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addarguments((__Instance + __PointerAdjustment), __arg0); } @@ -39567,7 +39688,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXConstructExpr.__Internal*)__Instance)->parenOrBraceRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXConstructExpr.__Internal*)__Instance)->parenOrBraceRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -40335,7 +40458,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddcaptureInits((__Instance + __PointerAdjustment), __arg0); } @@ -40379,7 +40503,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.LambdaExpr.__Internal*)__Instance)->introducerRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.LambdaExpr.__Internal*)__Instance)->introducerRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -40848,7 +40974,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddplacementArguments((__Instance + __PointerAdjustment), __arg0); } @@ -40902,7 +41029,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->allocatedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->allocatedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -40972,7 +41101,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->typeIdParens = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->typeIdParens = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -41060,7 +41191,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->directInitRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->directInitRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -41297,7 +41430,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal*)__Instance)->destroyedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal*)__Instance)->destroyedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -41539,7 +41674,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal*)__Instance)->destroyedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal*)__Instance)->destroyedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -41850,7 +41987,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal*)__Instance)->queriedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal*)__Instance)->queriedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -43166,7 +43305,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addarguments((__Instance + __PointerAdjustment), __arg0); } @@ -43210,7 +43350,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXUnresolvedConstructExpr.__Internal*)__Instance)->typeAsWritten = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXUnresolvedConstructExpr.__Internal*)__Instance)->typeAsWritten = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -43450,7 +43592,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal*)__Instance)->baseType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal*)__Instance)->baseType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -43796,7 +43940,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal*)__Instance)->baseType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal*)__Instance)->baseType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -44702,7 +44848,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal*)__Instance)->argumentPack = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.TemplateArgument.__Internal() : *(global::CppSharp.Parser.AST.TemplateArgument.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal*)__Instance)->argumentPack = *(global::CppSharp.Parser.AST.TemplateArgument.__Internal*) value.__Instance; } } } @@ -47152,7 +47300,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions12addArgumentsEPKc")] - internal static extern void AddArguments(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddArguments(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47167,7 +47315,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions14addSourceFilesEPKc")] - internal static extern void AddSourceFiles(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddSourceFiles(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47182,7 +47330,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions14addIncludeDirsEPKc")] - internal static extern void AddIncludeDirs(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddIncludeDirs(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47197,7 +47345,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions20addSystemIncludeDirsEPKc")] - internal static extern void AddSystemIncludeDirs(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddSystemIncludeDirs(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47212,7 +47360,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions10addDefinesEPKc")] - internal static extern void AddDefines(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddDefines(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47227,7 +47375,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions12addUndefinesEPKc")] - internal static extern void AddUndefines(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddUndefines(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47242,7 +47390,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions14addLibraryDirsEPKc")] - internal static extern void AddLibraryDirs(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddLibraryDirs(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47257,7 +47405,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions20addSupportedStdTypesEPKc")] - internal static extern void AddSupportedStdTypes(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddSupportedStdTypes(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -48180,7 +48328,7 @@ namespace CppSharp public unsafe partial class ClangParser : IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 0)] + [StructLayout(LayoutKind.Explicit, Size = 1)] public partial struct __Internal { [SuppressUnmanagedCodeSecurity] diff --git a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std.cs b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std.cs index 59f18b79..b371031e 100644 --- a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std.cs +++ b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std.cs @@ -50,6 +50,10 @@ namespace Std [StructLayout(LayoutKind.Explicit, Size = 0)] public unsafe partial struct __Internal { + [SuppressUnmanagedCodeSecurity] + [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZNSt3__19allocatorIcEC2Ev")] + internal static extern void ctorc__N_std_N___1_S_allocator__C(global::System.IntPtr __instance); } } @@ -94,6 +98,20 @@ namespace Std __Instance = new global::System.IntPtr(native); } + public Allocator() + { + var ___Tp = typeof(_Tp); + if (___Tp.IsAssignableFrom(typeof(sbyte))) + { + __Instance = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal)); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + global::Std.Allocator.__Internal.ctorc__N_std_N___1_S_allocator__C((__Instance + __PointerAdjustment)); + return; + } + throw new ArgumentOutOfRangeException("_Tp", string.Join(", ", new[] { typeof(_Tp).FullName }), "global::Std.Allocator<_Tp> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: ."); + } + public void Dispose() { Dispose(disposing: true); @@ -117,7 +135,7 @@ namespace Std namespace Vector { [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -130,7 +148,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -143,7 +161,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -156,7 +174,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -169,7 +187,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -182,7 +200,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -195,7 +213,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -208,7 +226,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -221,7 +239,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -234,7 +252,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -247,7 +265,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector__i___N_std_N___1_S_allocator__i + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -260,7 +278,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -273,7 +291,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -286,7 +304,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -299,7 +317,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -312,7 +330,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -325,7 +343,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -338,7 +356,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -351,7 +369,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -364,7 +382,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -377,7 +395,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -390,7 +408,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -403,7 +421,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -416,7 +434,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -429,20 +447,20 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] - internal global::System.IntPtr __begin_; + internal global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C __begin_; [FieldOffset(4)] - internal global::System.IntPtr __end_; + internal global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C __end_; [FieldOffset(8)] internal global::Std.CompressedPair.__Internal __end_cap_; } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -455,7 +473,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -468,7 +486,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -481,7 +499,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -494,7 +512,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -507,7 +525,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -520,7 +538,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -533,7 +551,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -546,7 +564,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -559,7 +577,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector__i___N_std_N___1_S_allocator__i { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -572,7 +590,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -585,7 +603,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -598,20 +616,20 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] - internal global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C __begin_; + internal global::System.IntPtr __begin_; [FieldOffset(4)] - internal global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C __end_; + internal global::System.IntPtr __end_; [FieldOffset(8)] internal global::Std.CompressedPair.__Internal __end_cap_; } [StructLayout(LayoutKind.Explicit, Size = 12)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -682,11 +700,21 @@ namespace Std EntryPoint="_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2Ev")] internal static extern void ctorc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C(global::System.IntPtr __instance); + [SuppressUnmanagedCodeSecurity] + [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_")] + internal static extern void cctorc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C(global::System.IntPtr __instance, global::System.IntPtr __str); + [SuppressUnmanagedCodeSecurity] [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev")] internal static extern void dtorc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C(global::System.IntPtr __instance); + [SuppressUnmanagedCodeSecurity] + [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc")] + internal static extern global::System.IntPtr Assignc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C(global::System.IntPtr __instance, string __s); + [SuppressUnmanagedCodeSecurity] [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE5c_strEv")] @@ -699,10 +727,10 @@ namespace Std public unsafe partial struct __Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C { [FieldOffset(0)] - internal global::Std.BasicString.Rep._4.__Internal _0; + internal global::Std.BasicString.Rep._0.__Internal _0; } - namespace _4 + namespace _0 { [StructLayout(LayoutKind.Explicit, Size = 12)] public unsafe partial struct __Internal @@ -744,13 +772,13 @@ namespace Std public unsafe partial struct __Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C { [FieldOffset(0)] - internal global::Std.BasicString.Short._4.__Internal _0; + internal global::Std.BasicString.Short._0.__Internal _0; [FieldOffset(1)] internal fixed sbyte __data_[11]; } - namespace _4 + namespace _0 { [StructLayout(LayoutKind.Explicit, Size = 1)] public unsafe partial struct __Internal @@ -801,7 +829,7 @@ namespace Std private static void* __CopyValue(global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C native) { var ret = Marshal.AllocHGlobal(sizeof(global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C)); - *(global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C*) ret = native; + global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C.cctorc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } @@ -835,6 +863,25 @@ namespace Std throw new ArgumentOutOfRangeException("_CharT, _Traits, _Allocator", string.Join(", ", new[] { typeof(_CharT).FullName, typeof(_Traits).FullName, typeof(_Allocator).FullName }), "global::Std.BasicString<_CharT, _Traits, _Allocator> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: , global::Std.Allocator>."); } + public BasicString(global::Std.BasicString<_CharT, _Traits, _Allocator> __str) + { + var ___CharT = typeof(_CharT); + var ___Traits = typeof(_Traits); + var ___Allocator = typeof(_Allocator); + if (___CharT.IsAssignableFrom(typeof(sbyte)) && ___Traits.IsAssignableFrom(typeof(global::Std.CharTraits)) && ___Allocator.IsAssignableFrom(typeof(global::Std.Allocator))) + { + __Instance = Marshal.AllocHGlobal(sizeof(global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C)); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + if (ReferenceEquals(__str, null)) + throw new global::System.ArgumentNullException("__str", "Cannot be null because it is a C++ reference (&)."); + var __arg0 = __str.__Instance; + global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C.cctorc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C((__Instance + __PointerAdjustment), __arg0); + return; + } + throw new ArgumentOutOfRangeException("_CharT, _Traits, _Allocator", string.Join(", ", new[] { typeof(_CharT).FullName, typeof(_Traits).FullName, typeof(_Allocator).FullName }), "global::Std.BasicString<_CharT, _Traits, _Allocator> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: , global::Std.Allocator>."); + } + public void Dispose() { Dispose(disposing: true); @@ -862,23 +909,11 @@ namespace Std Marshal.FreeHGlobal(__Instance); __Instance = IntPtr.Zero; } - - public global::Std.BasicString<_CharT, _Traits, _Allocator> Assign(global::Std.BasicString<_CharT, _Traits, _Allocator> str) - { - var ___CharT = typeof(_CharT); - var ___Traits = typeof(_Traits); - var ___Allocator = typeof(_Allocator); - if (___CharT.IsAssignableFrom(typeof(sbyte)) && ___Traits.IsAssignableFrom(typeof(global::Std.CharTraits)) && ___Allocator.IsAssignableFrom(typeof(global::Std.Allocator))) - { - throw new MissingMethodException("Method Assign ignored in specialization global::Std.BasicString, global::Std.Allocator>."); - } - throw new ArgumentOutOfRangeException("_CharT, _Traits, _Allocator", string.Join(", ", new[] { typeof(_CharT).FullName, typeof(_Traits).FullName, typeof(_Allocator).FullName }), "global::Std.BasicString<_CharT, _Traits, _Allocator> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: , global::Std.Allocator>."); - } } namespace CharTraits { - [StructLayout(LayoutKind.Explicit, Size = 0)] + [StructLayout(LayoutKind.Explicit, Size = 1)] public unsafe partial struct __Internal { } diff --git a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser.cs b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser.cs index 5905438a..ca0df8e2 100644 --- a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser.cs +++ b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser.cs @@ -95,7 +95,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="?addSymbols@NativeLibrary@AST@CppParser@CppSharp@@QAEXPBD@Z")] - internal static extern void AddSymbols(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddSymbols(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, @@ -110,7 +110,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="?addDependencies@NativeLibrary@AST@CppParser@CppSharp@@QAEXPBD@Z")] - internal static extern void AddDependencies(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddDependencies(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, @@ -612,7 +612,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddBlocks((__Instance + __PointerAdjustment), __arg0); } @@ -869,7 +870,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddContent((__Instance + __PointerAdjustment), __arg0); } @@ -1760,7 +1762,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddLines((__Instance + __PointerAdjustment), __arg0); } @@ -3675,7 +3678,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.QualifiedType.__Internal*)__Instance)->qualifiers = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.TypeQualifiers.__Internal() : *(global::CppSharp.Parser.AST.TypeQualifiers.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.QualifiedType.__Internal*)__Instance)->qualifiers = *(global::CppSharp.Parser.AST.TypeQualifiers.__Internal*) value.__Instance; } } } @@ -3883,7 +3888,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.ArrayType.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.ArrayType.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4068,7 +4075,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddParameters((__Instance + __PointerAdjustment), __arg0); } @@ -4086,7 +4094,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.FunctionType.__Internal*)__Instance)->returnType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.FunctionType.__Internal*)__Instance)->returnType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4225,7 +4235,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.PointerType.__Internal*)__Instance)->qualifiedPointee = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.PointerType.__Internal*)__Instance)->qualifiedPointee = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4331,7 +4343,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.MemberPointerType.__Internal*)__Instance)->pointee = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.MemberPointerType.__Internal*)__Instance)->pointee = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -4525,7 +4539,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.AttributedType.__Internal*)__Instance)->modified = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.AttributedType.__Internal*)__Instance)->modified = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4538,7 +4554,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.AttributedType.__Internal*)__Instance)->equivalent = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.AttributedType.__Internal*)__Instance)->equivalent = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -4637,7 +4655,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->decayed = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->decayed = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4650,7 +4670,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->original = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->original = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4663,7 +4685,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->pointee = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->pointee = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -4801,7 +4825,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TemplateArgument.__Internal*)__Instance)->type = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TemplateArgument.__Internal*)__Instance)->type = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5007,7 +5033,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal*)__Instance)->desugared = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal*)__Instance)->desugared = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5170,7 +5198,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal*)__Instance)->desugared = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal*)__Instance)->desugared = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5439,7 +5469,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TemplateParameterSubstitutionType.__Internal*)__Instance)->replacement = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TemplateParameterSubstitutionType.__Internal*)__Instance)->replacement = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5553,7 +5585,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.InjectedClassNameType.__Internal*)__Instance)->injectedSpecializationType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.InjectedClassNameType.__Internal*)__Instance)->injectedSpecializationType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5685,7 +5719,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DependentNameType.__Internal*)__Instance)->qualifier = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DependentNameType.__Internal*)__Instance)->qualifier = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5874,7 +5910,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnaryTransformType.__Internal*)__Instance)->desugared = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnaryTransformType.__Internal*)__Instance)->desugared = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5887,7 +5925,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnaryTransformType.__Internal*)__Instance)->baseType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnaryTransformType.__Internal*)__Instance)->baseType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -5983,7 +6023,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.VectorType.__Internal*)__Instance)->elementType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.VectorType.__Internal*)__Instance)->elementType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -6501,7 +6543,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddPreprocessedEntities((__Instance + __PointerAdjustment), __arg0); } @@ -6525,7 +6568,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddRedeclarations((__Instance + __PointerAdjustment), __arg0); } @@ -7192,7 +7236,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddNamespaces((__Instance + __PointerAdjustment), __arg0); } @@ -7216,7 +7261,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddEnums((__Instance + __PointerAdjustment), __arg0); } @@ -7240,7 +7286,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddFunctions((__Instance + __PointerAdjustment), __arg0); } @@ -7264,7 +7311,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddClasses((__Instance + __PointerAdjustment), __arg0); } @@ -7288,7 +7336,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddTemplates((__Instance + __PointerAdjustment), __arg0); } @@ -7312,7 +7361,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddTypedefs((__Instance + __PointerAdjustment), __arg0); } @@ -7336,7 +7386,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddTypeAliases((__Instance + __PointerAdjustment), __arg0); } @@ -7360,7 +7411,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddVariables((__Instance + __PointerAdjustment), __arg0); } @@ -7384,7 +7436,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddFriends((__Instance + __PointerAdjustment), __arg0); } @@ -7658,7 +7711,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TypedefNameDecl.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TypedefNameDecl.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -8237,7 +8292,7 @@ namespace CppSharp var __arg0 = __basicString0.__Instance; var __arg2 = ReferenceEquals(decl, null) ? global::System.IntPtr.Zero : decl.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, Class, __arg2); - __basicString0.Dispose(false); + __basicString0.Dispose(); } public StatementObsolete(global::CppSharp.Parser.AST.StatementObsolete _0) @@ -8391,7 +8446,7 @@ namespace CppSharp var __arg0 = __basicString0.__Instance; var __arg2 = ReferenceEquals(decl, null) ? global::System.IntPtr.Zero : decl.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, Class, __arg2); - __basicString0.Dispose(false); + __basicString0.Dispose(); } public ExpressionObsolete(global::CppSharp.Parser.AST.ExpressionObsolete _0) @@ -8507,8 +8562,8 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString3, opcodeStr); var __arg3 = __basicString3.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, __arg1, __arg2, __arg3); - __basicString0.Dispose(false); - __basicString3.Dispose(false); + __basicString0.Dispose(); + __basicString3.Dispose(); } public BinaryOperatorObsolete(global::CppSharp.Parser.AST.BinaryOperatorObsolete _0) @@ -8686,7 +8741,7 @@ namespace CppSharp var __arg0 = __basicString0.__Instance; var __arg1 = ReferenceEquals(decl, null) ? global::System.IntPtr.Zero : decl.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, __arg1); - __basicString0.Dispose(false); + __basicString0.Dispose(); } public CallExprObsolete(global::CppSharp.Parser.AST.CallExprObsolete _0) @@ -8729,7 +8784,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddArguments((__Instance + __PointerAdjustment), __arg0); } @@ -8845,7 +8901,7 @@ namespace CppSharp var __arg0 = __basicString0.__Instance; var __arg1 = ReferenceEquals(decl, null) ? global::System.IntPtr.Zero : decl.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, __arg1); - __basicString0.Dispose(false); + __basicString0.Dispose(); } public CXXConstructExprObsolete(global::CppSharp.Parser.AST.CXXConstructExprObsolete _0) @@ -8888,7 +8944,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddArguments((__Instance + __PointerAdjustment), __arg0); } @@ -9082,7 +9139,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Parameter.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Parameter.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -9438,7 +9497,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddParameters((__Instance + __PointerAdjustment), __arg0); } @@ -9456,7 +9516,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Function.__Internal*)__Instance)->returnType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Function.__Internal*)__Instance)->returnType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -9714,7 +9776,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Function.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Function.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -10037,7 +10101,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddOverriddenMethods((__Instance + __PointerAdjustment), __arg0); } @@ -10159,7 +10224,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Method.__Internal*)__Instance)->conversionType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Method.__Internal*)__Instance)->conversionType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -10611,7 +10678,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddItems((__Instance + __PointerAdjustment), __arg0); } @@ -10626,7 +10694,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, Name); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindItemByName((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.Enumeration.Item __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.Enumeration.Item.NativeToManagedMap.ContainsKey(__ret)) @@ -10873,7 +10941,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Variable.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Variable.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -11204,7 +11274,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Field.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Field.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -11850,7 +11922,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.VFTableInfo.__Internal*)__Instance)->layout = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.VTableLayout.__Internal() : *(global::CppSharp.Parser.AST.VTableLayout.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.VFTableInfo.__Internal*)__Instance)->layout = *(global::CppSharp.Parser.AST.VTableLayout.__Internal*) value.__Instance; } } } @@ -12002,7 +12076,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.LayoutField.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.LayoutField.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -12440,7 +12516,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.ClassLayout.__Internal*)__Instance)->layout = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.VTableLayout.__Internal() : *(global::CppSharp.Parser.AST.VTableLayout.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.ClassLayout.__Internal*)__Instance)->layout = *(global::CppSharp.Parser.AST.VTableLayout.__Internal*) value.__Instance; } } @@ -12858,7 +12936,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddBases((__Instance + __PointerAdjustment), __arg0); } @@ -12882,7 +12961,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddFields((__Instance + __PointerAdjustment), __arg0); } @@ -12906,7 +12986,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddMethods((__Instance + __PointerAdjustment), __arg0); } @@ -12930,7 +13011,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddSpecifiers((__Instance + __PointerAdjustment), __arg0); } @@ -13327,7 +13409,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddParameters((__Instance + __PointerAdjustment), __arg0); } @@ -14098,7 +14181,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TypeTemplateParameter.__Internal*)__Instance)->defaultArgument = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TypeTemplateParameter.__Internal*)__Instance)->defaultArgument = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -14553,7 +14638,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddSpecializations((__Instance + __PointerAdjustment), __arg0); } @@ -14568,7 +14654,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.ClassTemplateSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.ClassTemplateSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -14583,7 +14669,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindPartialSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -15351,7 +15437,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddSpecializations((__Instance + __PointerAdjustment), __arg0); } @@ -15366,7 +15453,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.FunctionTemplateSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.FunctionTemplateSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -15795,7 +15882,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddSpecializations((__Instance + __PointerAdjustment), __arg0); } @@ -15810,7 +15898,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.VarTemplateSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.VarTemplateSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -15825,7 +15913,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindPartialSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.VarTemplatePartialSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -17139,7 +17227,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddMacros((__Instance + __PointerAdjustment), __arg0); } @@ -17318,7 +17407,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, File); var __arg0 = *(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C*) __basicString0.__Instance; var __ret = __Internal.FindOrCreateModule((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.TranslationUnit __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.TranslationUnit.NativeToManagedMap.ContainsKey(__ret)) @@ -17342,7 +17431,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddTranslationUnits((__Instance + __PointerAdjustment), __arg0); } @@ -17639,7 +17729,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Stmt.__Internal*)__Instance)->sourceRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Stmt.__Internal*)__Instance)->sourceRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -17814,7 +17906,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Adddecls((__Instance + __PointerAdjustment), __arg0); } @@ -18132,7 +18225,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addbody((__Instance + __PointerAdjustment), __arg0); } @@ -20778,7 +20872,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addinputs((__Instance + __PointerAdjustment), __arg0); } @@ -20802,7 +20897,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addoutputs((__Instance + __PointerAdjustment), __arg0); } @@ -22335,7 +22431,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddcaptureInits((__Instance + __PointerAdjustment), __arg0); } @@ -22495,7 +22592,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXCatchStmt.__Internal*)__Instance)->caughtType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXCatchStmt.__Internal*)__Instance)->caughtType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -24400,7 +24499,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Expr.__Internal*)__Instance)->type = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Expr.__Internal*)__Instance)->type = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -27580,7 +27681,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*)__Instance)->argumentType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*)__Instance)->argumentType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -27611,7 +27714,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*)__Instance)->typeOfArgument = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*)__Instance)->typeOfArgument = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -28056,7 +28161,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addarguments((__Instance + __PointerAdjustment), __arg0); } @@ -29314,7 +29420,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal*)__Instance)->typeAsWritten = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal*)__Instance)->typeAsWritten = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -30190,7 +30298,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal*)__Instance)->computationLHSType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal*)__Instance)->computationLHSType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -30203,7 +30313,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal*)__Instance)->computationResultType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal*)__Instance)->computationResultType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -32756,7 +32868,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal*)__Instance)->sourceRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal*)__Instance)->sourceRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } } @@ -33067,7 +33181,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal*)__Instance)->designatorsSourceRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal*)__Instance)->designatorsSourceRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } } @@ -35284,7 +35400,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.AtomicExpr.__Internal*)__Instance)->valueType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.AtomicExpr.__Internal*)__Instance)->valueType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -36379,7 +36497,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal*)__Instance)->angleBrackets = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal*)__Instance)->angleBrackets = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } } @@ -39466,7 +39586,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addarguments((__Instance + __PointerAdjustment), __arg0); } @@ -39567,7 +39688,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXConstructExpr.__Internal*)__Instance)->parenOrBraceRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXConstructExpr.__Internal*)__Instance)->parenOrBraceRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -40335,7 +40458,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddcaptureInits((__Instance + __PointerAdjustment), __arg0); } @@ -40379,7 +40503,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.LambdaExpr.__Internal*)__Instance)->introducerRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.LambdaExpr.__Internal*)__Instance)->introducerRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -40848,7 +40974,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddplacementArguments((__Instance + __PointerAdjustment), __arg0); } @@ -40902,7 +41029,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->allocatedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->allocatedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -40972,7 +41101,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->typeIdParens = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->typeIdParens = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -41060,7 +41191,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->directInitRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->directInitRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -41297,7 +41430,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal*)__Instance)->destroyedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal*)__Instance)->destroyedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -41539,7 +41674,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal*)__Instance)->destroyedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal*)__Instance)->destroyedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -41850,7 +41987,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal*)__Instance)->queriedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal*)__Instance)->queriedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -43166,7 +43305,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addarguments((__Instance + __PointerAdjustment), __arg0); } @@ -43210,7 +43350,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXUnresolvedConstructExpr.__Internal*)__Instance)->typeAsWritten = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXUnresolvedConstructExpr.__Internal*)__Instance)->typeAsWritten = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -43450,7 +43592,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal*)__Instance)->baseType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal*)__Instance)->baseType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -43796,7 +43940,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal*)__Instance)->baseType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal*)__Instance)->baseType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -44702,7 +44848,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal*)__Instance)->argumentPack = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.TemplateArgument.__Internal() : *(global::CppSharp.Parser.AST.TemplateArgument.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal*)__Instance)->argumentPack = *(global::CppSharp.Parser.AST.TemplateArgument.__Internal*) value.__Instance; } } } @@ -47152,7 +47300,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="?addArguments@CppParserOptions@CppParser@CppSharp@@QAEXPBD@Z")] - internal static extern void AddArguments(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddArguments(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, @@ -47167,7 +47315,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="?addSourceFiles@CppParserOptions@CppParser@CppSharp@@QAEXPBD@Z")] - internal static extern void AddSourceFiles(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddSourceFiles(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, @@ -47182,7 +47330,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="?addIncludeDirs@CppParserOptions@CppParser@CppSharp@@QAEXPBD@Z")] - internal static extern void AddIncludeDirs(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddIncludeDirs(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, @@ -47197,7 +47345,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="?addSystemIncludeDirs@CppParserOptions@CppParser@CppSharp@@QAEXPBD@Z")] - internal static extern void AddSystemIncludeDirs(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddSystemIncludeDirs(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, @@ -47212,7 +47360,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="?addDefines@CppParserOptions@CppParser@CppSharp@@QAEXPBD@Z")] - internal static extern void AddDefines(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddDefines(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, @@ -47227,7 +47375,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="?addUndefines@CppParserOptions@CppParser@CppSharp@@QAEXPBD@Z")] - internal static extern void AddUndefines(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddUndefines(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, @@ -47242,7 +47390,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="?addLibraryDirs@CppParserOptions@CppParser@CppSharp@@QAEXPBD@Z")] - internal static extern void AddLibraryDirs(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddLibraryDirs(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, @@ -47257,7 +47405,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="?addSupportedStdTypes@CppParserOptions@CppParser@CppSharp@@QAEXPBD@Z")] - internal static extern void AddSupportedStdTypes(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddSupportedStdTypes(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, diff --git a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std.cs b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std.cs index 0798a0bd..5b325034 100644 --- a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std.cs +++ b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std.cs @@ -393,6 +393,10 @@ namespace Std [StructLayout(LayoutKind.Explicit, Size = 0)] public unsafe partial struct __Internal { + [SuppressUnmanagedCodeSecurity] + [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="??0?$allocator@D@std@@QAE@XZ")] + internal static extern global::System.IntPtr ctorc__N_std_S_allocator__C(global::System.IntPtr __instance); } } @@ -437,6 +441,31 @@ namespace Std __Instance = new global::System.IntPtr(native); } + public Allocator() + { + var ___Ty = typeof(_Ty); + if (___Ty.IsAssignableFrom(typeof(sbyte))) + { + __Instance = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal)); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + global::Std.Allocator.__Internal.ctorc__N_std_S_allocator__C((__Instance + __PointerAdjustment)); + return; + } + throw new ArgumentOutOfRangeException("_Ty", string.Join(", ", new[] { typeof(_Ty).FullName }), "global::Std.Allocator<_Ty> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: ."); + } + + public Allocator(global::Std.Allocator<_Ty> _0) + { + var ___Ty = typeof(_Ty); + if (___Ty.IsAssignableFrom(typeof(sbyte))) + { + throw new MissingMethodException("Method allocator__Ty_ missing from explicit specialization global::Std.Allocator."); + return; + } + throw new ArgumentOutOfRangeException("_Ty", string.Join(", ", new[] { typeof(_Ty).FullName }), "global::Std.Allocator<_Ty> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: ."); + } + public void Dispose() { Dispose(disposing: true); @@ -465,6 +494,11 @@ namespace Std [FieldOffset(0)] internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator__C___N_std_S__String_val____N_std_S__Simple_types__C_Vb1 _Mypair; + [SuppressUnmanagedCodeSecurity] + [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, + EntryPoint="??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z")] + internal static extern global::System.IntPtr cctorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(global::System.IntPtr __instance, global::System.IntPtr _Right); + [SuppressUnmanagedCodeSecurity] [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ")] @@ -505,7 +539,7 @@ namespace Std private static void* __CopyValue(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C native) { var ret = Marshal.AllocHGlobal(sizeof(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C)); - *(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C*) ret = native; + global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C.cctorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } @@ -523,6 +557,25 @@ namespace Std __Instance = new global::System.IntPtr(native); } + public BasicString(global::Std.BasicString<_Elem, _Traits, _Alloc> _Right) + { + var ___Elem = typeof(_Elem); + var ___Traits = typeof(_Traits); + var ___Alloc = typeof(_Alloc); + if (___Elem.IsAssignableFrom(typeof(sbyte)) && ___Traits.IsAssignableFrom(typeof(global::Std.CharTraits)) && ___Alloc.IsAssignableFrom(typeof(global::Std.Allocator))) + { + __Instance = Marshal.AllocHGlobal(sizeof(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C)); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + if (ReferenceEquals(_Right, null)) + throw new global::System.ArgumentNullException("_Right", "Cannot be null because it is a C++ reference (&)."); + var __arg0 = _Right.__Instance; + global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C.cctorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C((__Instance + __PointerAdjustment), __arg0); + return; + } + throw new ArgumentOutOfRangeException("_Elem, _Traits, _Alloc", string.Join(", ", new[] { typeof(_Elem).FullName, typeof(_Traits).FullName, typeof(_Alloc).FullName }), "global::Std.BasicString<_Elem, _Traits, _Alloc> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: , global::Std.Allocator>."); + } + public BasicString() { var ___Elem = typeof(_Elem); @@ -566,18 +619,6 @@ namespace Std Marshal.FreeHGlobal(__Instance); __Instance = IntPtr.Zero; } - - public global::Std.BasicString<_Elem, _Traits, _Alloc> Assign(global::Std.BasicString<_Elem, _Traits, _Alloc> _Right) - { - var ___Elem = typeof(_Elem); - var ___Traits = typeof(_Traits); - var ___Alloc = typeof(_Alloc); - if (___Elem.IsAssignableFrom(typeof(sbyte)) && ___Traits.IsAssignableFrom(typeof(global::Std.CharTraits)) && ___Alloc.IsAssignableFrom(typeof(global::Std.Allocator))) - { - throw new MissingMethodException("Method Assign ignored in specialization global::Std.BasicString, global::Std.Allocator>."); - } - throw new ArgumentOutOfRangeException("_Elem, _Traits, _Alloc", string.Join(", ", new[] { typeof(_Elem).FullName, typeof(_Traits).FullName, typeof(_Alloc).FullName }), "global::Std.BasicString<_Elem, _Traits, _Alloc> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: , global::Std.Allocator>."); - } } namespace StringVal @@ -621,7 +662,7 @@ namespace Std [SuppressUnmanagedCodeSecurity] [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, EntryPoint="?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@QBD@Z")] - internal static extern global::System.IntPtr Assign(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string _Ptr); + internal static extern global::System.IntPtr Assign(global::System.IntPtr __instance, string _Ptr); [SuppressUnmanagedCodeSecurity] [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall, diff --git a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser.cs b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser.cs index 7ad9ef3e..8aaf6410 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser.cs @@ -95,7 +95,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser3AST13NativeLibrary10addSymbolsEPKc")] - internal static extern void AddSymbols(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddSymbols(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -110,7 +110,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser3AST13NativeLibrary15addDependenciesEPKc")] - internal static extern void AddDependencies(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddDependencies(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -612,7 +612,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddBlocks((__Instance + __PointerAdjustment), __arg0); } @@ -869,7 +870,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddContent((__Instance + __PointerAdjustment), __arg0); } @@ -1760,7 +1762,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddLines((__Instance + __PointerAdjustment), __arg0); } @@ -3675,7 +3678,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.QualifiedType.__Internal*)__Instance)->qualifiers = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.TypeQualifiers.__Internal() : *(global::CppSharp.Parser.AST.TypeQualifiers.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.QualifiedType.__Internal*)__Instance)->qualifiers = *(global::CppSharp.Parser.AST.TypeQualifiers.__Internal*) value.__Instance; } } } @@ -3883,7 +3888,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.ArrayType.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.ArrayType.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4068,7 +4075,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddParameters((__Instance + __PointerAdjustment), __arg0); } @@ -4086,7 +4094,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.FunctionType.__Internal*)__Instance)->returnType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.FunctionType.__Internal*)__Instance)->returnType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4225,7 +4235,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.PointerType.__Internal*)__Instance)->qualifiedPointee = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.PointerType.__Internal*)__Instance)->qualifiedPointee = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4331,7 +4343,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.MemberPointerType.__Internal*)__Instance)->pointee = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.MemberPointerType.__Internal*)__Instance)->pointee = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -4525,7 +4539,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.AttributedType.__Internal*)__Instance)->modified = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.AttributedType.__Internal*)__Instance)->modified = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4538,7 +4554,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.AttributedType.__Internal*)__Instance)->equivalent = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.AttributedType.__Internal*)__Instance)->equivalent = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -4637,7 +4655,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->decayed = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->decayed = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4650,7 +4670,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->original = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->original = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4663,7 +4685,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->pointee = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->pointee = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -4801,7 +4825,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TemplateArgument.__Internal*)__Instance)->type = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TemplateArgument.__Internal*)__Instance)->type = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5007,7 +5033,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal*)__Instance)->desugared = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal*)__Instance)->desugared = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5170,7 +5198,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal*)__Instance)->desugared = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal*)__Instance)->desugared = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5439,7 +5469,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TemplateParameterSubstitutionType.__Internal*)__Instance)->replacement = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TemplateParameterSubstitutionType.__Internal*)__Instance)->replacement = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5553,7 +5585,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.InjectedClassNameType.__Internal*)__Instance)->injectedSpecializationType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.InjectedClassNameType.__Internal*)__Instance)->injectedSpecializationType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5685,7 +5719,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DependentNameType.__Internal*)__Instance)->qualifier = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DependentNameType.__Internal*)__Instance)->qualifier = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5874,7 +5910,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnaryTransformType.__Internal*)__Instance)->desugared = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnaryTransformType.__Internal*)__Instance)->desugared = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5887,7 +5925,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnaryTransformType.__Internal*)__Instance)->baseType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnaryTransformType.__Internal*)__Instance)->baseType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -5983,7 +6023,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.VectorType.__Internal*)__Instance)->elementType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.VectorType.__Internal*)__Instance)->elementType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -6501,7 +6543,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddPreprocessedEntities((__Instance + __PointerAdjustment), __arg0); } @@ -6525,7 +6568,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddRedeclarations((__Instance + __PointerAdjustment), __arg0); } @@ -7192,7 +7236,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddNamespaces((__Instance + __PointerAdjustment), __arg0); } @@ -7216,7 +7261,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddEnums((__Instance + __PointerAdjustment), __arg0); } @@ -7240,7 +7286,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddFunctions((__Instance + __PointerAdjustment), __arg0); } @@ -7264,7 +7311,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddClasses((__Instance + __PointerAdjustment), __arg0); } @@ -7288,7 +7336,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddTemplates((__Instance + __PointerAdjustment), __arg0); } @@ -7312,7 +7361,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddTypedefs((__Instance + __PointerAdjustment), __arg0); } @@ -7336,7 +7386,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddTypeAliases((__Instance + __PointerAdjustment), __arg0); } @@ -7360,7 +7411,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddVariables((__Instance + __PointerAdjustment), __arg0); } @@ -7384,7 +7436,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddFriends((__Instance + __PointerAdjustment), __arg0); } @@ -7658,7 +7711,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TypedefNameDecl.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TypedefNameDecl.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -8237,7 +8292,7 @@ namespace CppSharp var __arg0 = __basicString0.__Instance; var __arg2 = ReferenceEquals(decl, null) ? global::System.IntPtr.Zero : decl.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, Class, __arg2); - __basicString0.Dispose(false); + __basicString0.Dispose(); } public StatementObsolete(global::CppSharp.Parser.AST.StatementObsolete _0) @@ -8391,7 +8446,7 @@ namespace CppSharp var __arg0 = __basicString0.__Instance; var __arg2 = ReferenceEquals(decl, null) ? global::System.IntPtr.Zero : decl.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, Class, __arg2); - __basicString0.Dispose(false); + __basicString0.Dispose(); } public ExpressionObsolete(global::CppSharp.Parser.AST.ExpressionObsolete _0) @@ -8507,8 +8562,8 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString3, opcodeStr); var __arg3 = __basicString3.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, __arg1, __arg2, __arg3); - __basicString0.Dispose(false); - __basicString3.Dispose(false); + __basicString0.Dispose(); + __basicString3.Dispose(); } public BinaryOperatorObsolete(global::CppSharp.Parser.AST.BinaryOperatorObsolete _0) @@ -8686,7 +8741,7 @@ namespace CppSharp var __arg0 = __basicString0.__Instance; var __arg1 = ReferenceEquals(decl, null) ? global::System.IntPtr.Zero : decl.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, __arg1); - __basicString0.Dispose(false); + __basicString0.Dispose(); } public CallExprObsolete(global::CppSharp.Parser.AST.CallExprObsolete _0) @@ -8729,7 +8784,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddArguments((__Instance + __PointerAdjustment), __arg0); } @@ -8845,7 +8901,7 @@ namespace CppSharp var __arg0 = __basicString0.__Instance; var __arg1 = ReferenceEquals(decl, null) ? global::System.IntPtr.Zero : decl.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, __arg1); - __basicString0.Dispose(false); + __basicString0.Dispose(); } public CXXConstructExprObsolete(global::CppSharp.Parser.AST.CXXConstructExprObsolete _0) @@ -8888,7 +8944,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddArguments((__Instance + __PointerAdjustment), __arg0); } @@ -9082,7 +9139,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Parameter.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Parameter.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -9438,7 +9497,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddParameters((__Instance + __PointerAdjustment), __arg0); } @@ -9456,7 +9516,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Function.__Internal*)__Instance)->returnType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Function.__Internal*)__Instance)->returnType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -9714,7 +9776,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Function.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Function.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -10037,7 +10101,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddOverriddenMethods((__Instance + __PointerAdjustment), __arg0); } @@ -10159,7 +10224,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Method.__Internal*)__Instance)->conversionType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Method.__Internal*)__Instance)->conversionType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -10611,7 +10678,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddItems((__Instance + __PointerAdjustment), __arg0); } @@ -10626,7 +10694,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, Name); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindItemByName((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.Enumeration.Item __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.Enumeration.Item.NativeToManagedMap.ContainsKey(__ret)) @@ -10873,7 +10941,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Variable.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Variable.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -11204,7 +11274,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Field.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Field.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -11849,7 +11921,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.VFTableInfo.__Internal*)__Instance)->layout = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.VTableLayout.__Internal() : *(global::CppSharp.Parser.AST.VTableLayout.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.VFTableInfo.__Internal*)__Instance)->layout = *(global::CppSharp.Parser.AST.VTableLayout.__Internal*) value.__Instance; } } } @@ -12001,7 +12075,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.LayoutField.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.LayoutField.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -12439,7 +12515,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.ClassLayout.__Internal*)__Instance)->layout = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.VTableLayout.__Internal() : *(global::CppSharp.Parser.AST.VTableLayout.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.ClassLayout.__Internal*)__Instance)->layout = *(global::CppSharp.Parser.AST.VTableLayout.__Internal*) value.__Instance; } } @@ -12857,7 +12935,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddBases((__Instance + __PointerAdjustment), __arg0); } @@ -12881,7 +12960,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddFields((__Instance + __PointerAdjustment), __arg0); } @@ -12905,7 +12985,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddMethods((__Instance + __PointerAdjustment), __arg0); } @@ -12929,7 +13010,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddSpecifiers((__Instance + __PointerAdjustment), __arg0); } @@ -13326,7 +13408,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddParameters((__Instance + __PointerAdjustment), __arg0); } @@ -14097,7 +14180,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TypeTemplateParameter.__Internal*)__Instance)->defaultArgument = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TypeTemplateParameter.__Internal*)__Instance)->defaultArgument = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -14552,7 +14637,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddSpecializations((__Instance + __PointerAdjustment), __arg0); } @@ -14567,7 +14653,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.ClassTemplateSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.ClassTemplateSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -14582,7 +14668,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindPartialSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -15350,7 +15436,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddSpecializations((__Instance + __PointerAdjustment), __arg0); } @@ -15365,7 +15452,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.FunctionTemplateSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.FunctionTemplateSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -15794,7 +15881,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddSpecializations((__Instance + __PointerAdjustment), __arg0); } @@ -15809,7 +15897,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.VarTemplateSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.VarTemplateSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -15824,7 +15912,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindPartialSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.VarTemplatePartialSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -17138,7 +17226,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddMacros((__Instance + __PointerAdjustment), __arg0); } @@ -17212,7 +17301,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser3AST10ASTContext18FindOrCreateModuleENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE")] - internal static extern global::System.IntPtr FindOrCreateModule(global::System.IntPtr __instance, global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C File); + internal static extern global::System.IntPtr FindOrCreateModule(global::System.IntPtr __instance, global::System.IntPtr File); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -17315,9 +17404,9 @@ namespace CppSharp { var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, File); - var __arg0 = *(global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C*) __basicString0.__Instance; + var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindOrCreateModule((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.TranslationUnit __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.TranslationUnit.NativeToManagedMap.ContainsKey(__ret)) @@ -17341,7 +17430,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddTranslationUnits((__Instance + __PointerAdjustment), __arg0); } @@ -17638,7 +17728,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Stmt.__Internal*)__Instance)->sourceRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Stmt.__Internal*)__Instance)->sourceRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -17813,7 +17905,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Adddecls((__Instance + __PointerAdjustment), __arg0); } @@ -18131,7 +18224,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addbody((__Instance + __PointerAdjustment), __arg0); } @@ -20777,7 +20871,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addinputs((__Instance + __PointerAdjustment), __arg0); } @@ -20801,7 +20896,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addoutputs((__Instance + __PointerAdjustment), __arg0); } @@ -22334,7 +22430,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddcaptureInits((__Instance + __PointerAdjustment), __arg0); } @@ -22494,7 +22591,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXCatchStmt.__Internal*)__Instance)->caughtType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXCatchStmt.__Internal*)__Instance)->caughtType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -24399,7 +24498,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Expr.__Internal*)__Instance)->type = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Expr.__Internal*)__Instance)->type = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -27579,7 +27680,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*)__Instance)->argumentType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*)__Instance)->argumentType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -27610,7 +27713,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*)__Instance)->typeOfArgument = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*)__Instance)->typeOfArgument = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -28055,7 +28160,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addarguments((__Instance + __PointerAdjustment), __arg0); } @@ -29313,7 +29419,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal*)__Instance)->typeAsWritten = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal*)__Instance)->typeAsWritten = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -30189,7 +30297,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal*)__Instance)->computationLHSType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal*)__Instance)->computationLHSType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -30202,7 +30312,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal*)__Instance)->computationResultType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal*)__Instance)->computationResultType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -32755,7 +32867,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal*)__Instance)->sourceRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal*)__Instance)->sourceRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } } @@ -33066,7 +33180,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal*)__Instance)->designatorsSourceRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal*)__Instance)->designatorsSourceRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } } @@ -35283,7 +35399,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.AtomicExpr.__Internal*)__Instance)->valueType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.AtomicExpr.__Internal*)__Instance)->valueType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -36378,7 +36496,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal*)__Instance)->angleBrackets = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal*)__Instance)->angleBrackets = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } } @@ -39465,7 +39585,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addarguments((__Instance + __PointerAdjustment), __arg0); } @@ -39566,7 +39687,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXConstructExpr.__Internal*)__Instance)->parenOrBraceRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXConstructExpr.__Internal*)__Instance)->parenOrBraceRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -40334,7 +40457,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddcaptureInits((__Instance + __PointerAdjustment), __arg0); } @@ -40378,7 +40502,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.LambdaExpr.__Internal*)__Instance)->introducerRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.LambdaExpr.__Internal*)__Instance)->introducerRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -40847,7 +40973,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddplacementArguments((__Instance + __PointerAdjustment), __arg0); } @@ -40901,7 +41028,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->allocatedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->allocatedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -40971,7 +41100,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->typeIdParens = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->typeIdParens = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -41059,7 +41190,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->directInitRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->directInitRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -41296,7 +41429,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal*)__Instance)->destroyedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal*)__Instance)->destroyedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -41538,7 +41673,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal*)__Instance)->destroyedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal*)__Instance)->destroyedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -41849,7 +41986,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal*)__Instance)->queriedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal*)__Instance)->queriedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -43165,7 +43304,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addarguments((__Instance + __PointerAdjustment), __arg0); } @@ -43209,7 +43349,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXUnresolvedConstructExpr.__Internal*)__Instance)->typeAsWritten = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXUnresolvedConstructExpr.__Internal*)__Instance)->typeAsWritten = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -43449,7 +43591,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal*)__Instance)->baseType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal*)__Instance)->baseType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -43795,7 +43939,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal*)__Instance)->baseType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal*)__Instance)->baseType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -44701,7 +44847,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal*)__Instance)->argumentPack = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.TemplateArgument.__Internal() : *(global::CppSharp.Parser.AST.TemplateArgument.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal*)__Instance)->argumentPack = *(global::CppSharp.Parser.AST.TemplateArgument.__Internal*) value.__Instance; } } } @@ -47151,7 +47299,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions12addArgumentsEPKc")] - internal static extern void AddArguments(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddArguments(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47166,7 +47314,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions14addSourceFilesEPKc")] - internal static extern void AddSourceFiles(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddSourceFiles(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47181,7 +47329,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions14addIncludeDirsEPKc")] - internal static extern void AddIncludeDirs(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddIncludeDirs(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47196,7 +47344,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions20addSystemIncludeDirsEPKc")] - internal static extern void AddSystemIncludeDirs(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddSystemIncludeDirs(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47211,7 +47359,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions10addDefinesEPKc")] - internal static extern void AddDefines(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddDefines(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47226,7 +47374,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions12addUndefinesEPKc")] - internal static extern void AddUndefines(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddUndefines(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47241,7 +47389,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions14addLibraryDirsEPKc")] - internal static extern void AddLibraryDirs(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddLibraryDirs(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47256,7 +47404,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions20addSupportedStdTypesEPKc")] - internal static extern void AddSupportedStdTypes(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddSupportedStdTypes(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -48179,7 +48327,7 @@ namespace CppSharp public unsafe partial class ClangParser : IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 0)] + [StructLayout(LayoutKind.Explicit, Size = 1)] public partial struct __Internal { [SuppressUnmanagedCodeSecurity] diff --git a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std.cs b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std.cs index 54ee41f1..cd1aeba9 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std.cs @@ -50,6 +50,10 @@ namespace Std [StructLayout(LayoutKind.Explicit, Size = 0)] public unsafe partial struct __Internal { + [SuppressUnmanagedCodeSecurity] + [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZNSt3__19allocatorIcEC2Ev")] + internal static extern void ctorc__N_std_N___1_S_allocator__C(global::System.IntPtr __instance); } } @@ -94,6 +98,20 @@ namespace Std __Instance = new global::System.IntPtr(native); } + public Allocator() + { + var ___Tp = typeof(_Tp); + if (___Tp.IsAssignableFrom(typeof(sbyte))) + { + __Instance = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal)); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + global::Std.Allocator.__Internal.ctorc__N_std_N___1_S_allocator__C((__Instance + __PointerAdjustment)); + return; + } + throw new ArgumentOutOfRangeException("_Tp", string.Join(", ", new[] { typeof(_Tp).FullName }), "global::Std.Allocator<_Tp> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: ."); + } + public void Dispose() { Dispose(disposing: true); @@ -117,7 +135,7 @@ namespace Std namespace Vector { [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -130,7 +148,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -143,7 +161,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BlockContentComment___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -156,7 +174,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -169,7 +187,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -182,7 +200,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -195,7 +213,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -208,7 +226,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -221,7 +239,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -234,7 +252,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -247,7 +265,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector__i___N_std_N___1_S_allocator__i + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -260,7 +278,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -273,7 +291,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -286,7 +304,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -299,7 +317,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -312,7 +330,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_PreprocessedEntity___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -325,7 +343,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Declaration___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_FunctionTemplateSpecialization___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -338,7 +356,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Namespace___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -351,7 +369,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -364,7 +382,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Function___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -377,7 +395,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Class___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -390,7 +408,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Template___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -403,7 +421,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypedefDecl___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -416,7 +434,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TypeAlias___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -429,20 +447,20 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Variable___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] - internal global::System.IntPtr __begin_; + internal global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C __begin_; [FieldOffset(8)] - internal global::System.IntPtr __end_; + internal global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C __end_; [FieldOffset(16)] internal global::Std.CompressedPair.__Internal __end_cap_; } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Friend___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ClassTemplateSpecialization___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -455,7 +473,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_BaseClassSpecifier___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -468,7 +486,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Field___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VarTemplateSpecialization___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -481,7 +499,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Method___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_MacroDefinition___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -494,7 +512,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Parameter___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_TranslationUnit___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -507,7 +525,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_TemplateArgument___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Stmt___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -520,7 +538,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_AccessSpecifierDecl___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Expr___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -533,7 +551,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_VFTableInfo___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_InlineContentComment___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -546,7 +564,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_VTableComponent___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_BlockCommandComment_S_Argument___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -559,7 +577,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutField___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector__i___N_std_N___1_S_allocator__i { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -572,7 +590,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_LayoutBase___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_VerbatimBlockLineComment___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -585,7 +603,7 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_Enumeration_S_Item___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment_S_Argument___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -598,20 +616,20 @@ namespace Std } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] - internal global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C __begin_; + internal global::System.IntPtr __begin_; [FieldOffset(8)] - internal global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C __end_; + internal global::System.IntPtr __end_; [FieldOffset(16)] internal global::Std.CompressedPair.__Internal __end_cap_; } [StructLayout(LayoutKind.Explicit, Size = 24)] - public unsafe partial struct __Internalc__N_std_N___1_S_vector_____N_CppSharp_N_CppParser_N_AST_S_ExpressionObsolete___N_std_N___1_S_allocator__S0_ + public unsafe partial struct __Internalc__N_std_N___1_S_vector____N_CppSharp_N_CppParser_S_ParserDiagnostic___N_std_N___1_S_allocator__S0_ { [FieldOffset(0)] internal global::System.IntPtr __begin_; @@ -682,11 +700,21 @@ namespace Std EntryPoint="_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2Ev")] internal static extern void ctorc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C(global::System.IntPtr __instance); + [SuppressUnmanagedCodeSecurity] + [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_")] + internal static extern void cctorc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C(global::System.IntPtr __instance, global::System.IntPtr __str); + [SuppressUnmanagedCodeSecurity] [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev")] internal static extern void dtorc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C(global::System.IntPtr __instance); + [SuppressUnmanagedCodeSecurity] + [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc")] + internal static extern global::System.IntPtr Assignc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C(global::System.IntPtr __instance, string __s); + [SuppressUnmanagedCodeSecurity] [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE5c_strEv")] @@ -699,10 +727,10 @@ namespace Std public unsafe partial struct __Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C { [FieldOffset(0)] - internal global::Std.BasicString.Rep._4.__Internal _0; + internal global::Std.BasicString.Rep._0.__Internal _0; } - namespace _4 + namespace _0 { [StructLayout(LayoutKind.Explicit, Size = 24)] public unsafe partial struct __Internal @@ -744,13 +772,13 @@ namespace Std public unsafe partial struct __Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C { [FieldOffset(0)] - internal global::Std.BasicString.Short._4.__Internal _0; + internal global::Std.BasicString.Short._0.__Internal _0; [FieldOffset(1)] internal fixed sbyte __data_[23]; } - namespace _4 + namespace _0 { [StructLayout(LayoutKind.Explicit, Size = 1)] public unsafe partial struct __Internal @@ -801,7 +829,7 @@ namespace Std private static void* __CopyValue(global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C native) { var ret = Marshal.AllocHGlobal(sizeof(global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C)); - *(global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C*) ret = native; + global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C.cctorc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } @@ -835,6 +863,25 @@ namespace Std throw new ArgumentOutOfRangeException("_CharT, _Traits, _Allocator", string.Join(", ", new[] { typeof(_CharT).FullName, typeof(_Traits).FullName, typeof(_Allocator).FullName }), "global::Std.BasicString<_CharT, _Traits, _Allocator> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: , global::Std.Allocator>."); } + public BasicString(global::Std.BasicString<_CharT, _Traits, _Allocator> __str) + { + var ___CharT = typeof(_CharT); + var ___Traits = typeof(_Traits); + var ___Allocator = typeof(_Allocator); + if (___CharT.IsAssignableFrom(typeof(sbyte)) && ___Traits.IsAssignableFrom(typeof(global::Std.CharTraits)) && ___Allocator.IsAssignableFrom(typeof(global::Std.Allocator))) + { + __Instance = Marshal.AllocHGlobal(sizeof(global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C)); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + if (ReferenceEquals(__str, null)) + throw new global::System.ArgumentNullException("__str", "Cannot be null because it is a C++ reference (&)."); + var __arg0 = __str.__Instance; + global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C.cctorc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C((__Instance + __PointerAdjustment), __arg0); + return; + } + throw new ArgumentOutOfRangeException("_CharT, _Traits, _Allocator", string.Join(", ", new[] { typeof(_CharT).FullName, typeof(_Traits).FullName, typeof(_Allocator).FullName }), "global::Std.BasicString<_CharT, _Traits, _Allocator> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: , global::Std.Allocator>."); + } + public void Dispose() { Dispose(disposing: true); @@ -862,23 +909,11 @@ namespace Std Marshal.FreeHGlobal(__Instance); __Instance = IntPtr.Zero; } - - public global::Std.BasicString<_CharT, _Traits, _Allocator> Assign(global::Std.BasicString<_CharT, _Traits, _Allocator> str) - { - var ___CharT = typeof(_CharT); - var ___Traits = typeof(_Traits); - var ___Allocator = typeof(_Allocator); - if (___CharT.IsAssignableFrom(typeof(sbyte)) && ___Traits.IsAssignableFrom(typeof(global::Std.CharTraits)) && ___Allocator.IsAssignableFrom(typeof(global::Std.Allocator))) - { - throw new MissingMethodException("Method Assign ignored in specialization global::Std.BasicString, global::Std.Allocator>."); - } - throw new ArgumentOutOfRangeException("_CharT, _Traits, _Allocator", string.Join(", ", new[] { typeof(_CharT).FullName, typeof(_Traits).FullName, typeof(_Allocator).FullName }), "global::Std.BasicString<_CharT, _Traits, _Allocator> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: , global::Std.Allocator>."); - } } namespace CharTraits { - [StructLayout(LayoutKind.Explicit, Size = 0)] + [StructLayout(LayoutKind.Explicit, Size = 1)] public unsafe partial struct __Internal { } diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser.cs b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser.cs index 85b84110..65fb042f 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser.cs @@ -95,7 +95,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser3AST13NativeLibrary10addSymbolsEPKc")] - internal static extern void AddSymbols(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddSymbols(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -110,7 +110,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser3AST13NativeLibrary15addDependenciesEPKc")] - internal static extern void AddDependencies(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddDependencies(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -612,7 +612,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddBlocks((__Instance + __PointerAdjustment), __arg0); } @@ -869,7 +870,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddContent((__Instance + __PointerAdjustment), __arg0); } @@ -1760,7 +1762,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddLines((__Instance + __PointerAdjustment), __arg0); } @@ -3675,7 +3678,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.QualifiedType.__Internal*)__Instance)->qualifiers = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.TypeQualifiers.__Internal() : *(global::CppSharp.Parser.AST.TypeQualifiers.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.QualifiedType.__Internal*)__Instance)->qualifiers = *(global::CppSharp.Parser.AST.TypeQualifiers.__Internal*) value.__Instance; } } } @@ -3883,7 +3888,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.ArrayType.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.ArrayType.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4068,7 +4075,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddParameters((__Instance + __PointerAdjustment), __arg0); } @@ -4086,7 +4094,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.FunctionType.__Internal*)__Instance)->returnType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.FunctionType.__Internal*)__Instance)->returnType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4225,7 +4235,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.PointerType.__Internal*)__Instance)->qualifiedPointee = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.PointerType.__Internal*)__Instance)->qualifiedPointee = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4331,7 +4343,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.MemberPointerType.__Internal*)__Instance)->pointee = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.MemberPointerType.__Internal*)__Instance)->pointee = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -4525,7 +4539,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.AttributedType.__Internal*)__Instance)->modified = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.AttributedType.__Internal*)__Instance)->modified = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4538,7 +4554,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.AttributedType.__Internal*)__Instance)->equivalent = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.AttributedType.__Internal*)__Instance)->equivalent = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -4637,7 +4655,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->decayed = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->decayed = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4650,7 +4670,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->original = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->original = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4663,7 +4685,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->pointee = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->pointee = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -4801,7 +4825,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TemplateArgument.__Internal*)__Instance)->type = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TemplateArgument.__Internal*)__Instance)->type = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5007,7 +5033,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal*)__Instance)->desugared = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal*)__Instance)->desugared = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5170,7 +5198,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal*)__Instance)->desugared = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal*)__Instance)->desugared = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5439,7 +5469,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TemplateParameterSubstitutionType.__Internal*)__Instance)->replacement = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TemplateParameterSubstitutionType.__Internal*)__Instance)->replacement = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5553,7 +5585,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.InjectedClassNameType.__Internal*)__Instance)->injectedSpecializationType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.InjectedClassNameType.__Internal*)__Instance)->injectedSpecializationType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5685,7 +5719,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DependentNameType.__Internal*)__Instance)->qualifier = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DependentNameType.__Internal*)__Instance)->qualifier = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5874,7 +5910,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnaryTransformType.__Internal*)__Instance)->desugared = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnaryTransformType.__Internal*)__Instance)->desugared = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5887,7 +5925,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnaryTransformType.__Internal*)__Instance)->baseType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnaryTransformType.__Internal*)__Instance)->baseType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -5983,7 +6023,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.VectorType.__Internal*)__Instance)->elementType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.VectorType.__Internal*)__Instance)->elementType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -6501,7 +6543,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddPreprocessedEntities((__Instance + __PointerAdjustment), __arg0); } @@ -6525,7 +6568,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddRedeclarations((__Instance + __PointerAdjustment), __arg0); } @@ -7192,7 +7236,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddNamespaces((__Instance + __PointerAdjustment), __arg0); } @@ -7216,7 +7261,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddEnums((__Instance + __PointerAdjustment), __arg0); } @@ -7240,7 +7286,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddFunctions((__Instance + __PointerAdjustment), __arg0); } @@ -7264,7 +7311,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddClasses((__Instance + __PointerAdjustment), __arg0); } @@ -7288,7 +7336,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddTemplates((__Instance + __PointerAdjustment), __arg0); } @@ -7312,7 +7361,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddTypedefs((__Instance + __PointerAdjustment), __arg0); } @@ -7336,7 +7386,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddTypeAliases((__Instance + __PointerAdjustment), __arg0); } @@ -7360,7 +7411,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddVariables((__Instance + __PointerAdjustment), __arg0); } @@ -7384,7 +7436,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddFriends((__Instance + __PointerAdjustment), __arg0); } @@ -7658,7 +7711,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TypedefNameDecl.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TypedefNameDecl.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -8237,7 +8292,7 @@ namespace CppSharp var __arg0 = __basicString0.__Instance; var __arg2 = ReferenceEquals(decl, null) ? global::System.IntPtr.Zero : decl.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, Class, __arg2); - __basicString0.Dispose(false); + __basicString0.Dispose(); } public StatementObsolete(global::CppSharp.Parser.AST.StatementObsolete _0) @@ -8391,7 +8446,7 @@ namespace CppSharp var __arg0 = __basicString0.__Instance; var __arg2 = ReferenceEquals(decl, null) ? global::System.IntPtr.Zero : decl.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, Class, __arg2); - __basicString0.Dispose(false); + __basicString0.Dispose(); } public ExpressionObsolete(global::CppSharp.Parser.AST.ExpressionObsolete _0) @@ -8507,8 +8562,8 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString3, opcodeStr); var __arg3 = __basicString3.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, __arg1, __arg2, __arg3); - __basicString0.Dispose(false); - __basicString3.Dispose(false); + __basicString0.Dispose(); + __basicString3.Dispose(); } public BinaryOperatorObsolete(global::CppSharp.Parser.AST.BinaryOperatorObsolete _0) @@ -8686,7 +8741,7 @@ namespace CppSharp var __arg0 = __basicString0.__Instance; var __arg1 = ReferenceEquals(decl, null) ? global::System.IntPtr.Zero : decl.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, __arg1); - __basicString0.Dispose(false); + __basicString0.Dispose(); } public CallExprObsolete(global::CppSharp.Parser.AST.CallExprObsolete _0) @@ -8729,7 +8784,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddArguments((__Instance + __PointerAdjustment), __arg0); } @@ -8845,7 +8901,7 @@ namespace CppSharp var __arg0 = __basicString0.__Instance; var __arg1 = ReferenceEquals(decl, null) ? global::System.IntPtr.Zero : decl.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, __arg1); - __basicString0.Dispose(false); + __basicString0.Dispose(); } public CXXConstructExprObsolete(global::CppSharp.Parser.AST.CXXConstructExprObsolete _0) @@ -8888,7 +8944,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddArguments((__Instance + __PointerAdjustment), __arg0); } @@ -9082,7 +9139,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Parameter.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Parameter.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -9438,7 +9497,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddParameters((__Instance + __PointerAdjustment), __arg0); } @@ -9456,7 +9516,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Function.__Internal*)__Instance)->returnType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Function.__Internal*)__Instance)->returnType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -9714,7 +9776,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Function.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Function.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -10037,7 +10101,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddOverriddenMethods((__Instance + __PointerAdjustment), __arg0); } @@ -10159,7 +10224,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Method.__Internal*)__Instance)->conversionType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Method.__Internal*)__Instance)->conversionType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -10611,7 +10678,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddItems((__Instance + __PointerAdjustment), __arg0); } @@ -10626,7 +10694,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, Name); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindItemByName((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.Enumeration.Item __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.Enumeration.Item.NativeToManagedMap.ContainsKey(__ret)) @@ -10873,7 +10941,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Variable.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Variable.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -11204,7 +11274,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Field.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Field.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -11849,7 +11921,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.VFTableInfo.__Internal*)__Instance)->layout = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.VTableLayout.__Internal() : *(global::CppSharp.Parser.AST.VTableLayout.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.VFTableInfo.__Internal*)__Instance)->layout = *(global::CppSharp.Parser.AST.VTableLayout.__Internal*) value.__Instance; } } } @@ -12001,7 +12075,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.LayoutField.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.LayoutField.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -12439,7 +12515,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.ClassLayout.__Internal*)__Instance)->layout = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.VTableLayout.__Internal() : *(global::CppSharp.Parser.AST.VTableLayout.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.ClassLayout.__Internal*)__Instance)->layout = *(global::CppSharp.Parser.AST.VTableLayout.__Internal*) value.__Instance; } } @@ -12857,7 +12935,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddBases((__Instance + __PointerAdjustment), __arg0); } @@ -12881,7 +12960,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddFields((__Instance + __PointerAdjustment), __arg0); } @@ -12905,7 +12985,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddMethods((__Instance + __PointerAdjustment), __arg0); } @@ -12929,7 +13010,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddSpecifiers((__Instance + __PointerAdjustment), __arg0); } @@ -13326,7 +13408,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddParameters((__Instance + __PointerAdjustment), __arg0); } @@ -14097,7 +14180,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TypeTemplateParameter.__Internal*)__Instance)->defaultArgument = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TypeTemplateParameter.__Internal*)__Instance)->defaultArgument = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -14552,7 +14637,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddSpecializations((__Instance + __PointerAdjustment), __arg0); } @@ -14567,7 +14653,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.ClassTemplateSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.ClassTemplateSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -14582,7 +14668,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindPartialSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -15350,7 +15436,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddSpecializations((__Instance + __PointerAdjustment), __arg0); } @@ -15365,7 +15452,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.FunctionTemplateSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.FunctionTemplateSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -15794,7 +15881,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddSpecializations((__Instance + __PointerAdjustment), __arg0); } @@ -15809,7 +15897,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.VarTemplateSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.VarTemplateSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -15824,7 +15912,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindPartialSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.VarTemplatePartialSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -17138,7 +17226,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddMacros((__Instance + __PointerAdjustment), __arg0); } @@ -17212,7 +17301,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser3AST10ASTContext18FindOrCreateModuleENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE")] - internal static extern global::System.IntPtr FindOrCreateModule(global::System.IntPtr __instance, global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C File); + internal static extern global::System.IntPtr FindOrCreateModule(global::System.IntPtr __instance, global::System.IntPtr File); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -17315,9 +17404,9 @@ namespace CppSharp { var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, File); - var __arg0 = *(global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C*) __basicString0.__Instance; + var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindOrCreateModule((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.TranslationUnit __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.TranslationUnit.NativeToManagedMap.ContainsKey(__ret)) @@ -17341,7 +17430,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddTranslationUnits((__Instance + __PointerAdjustment), __arg0); } @@ -17638,7 +17728,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Stmt.__Internal*)__Instance)->sourceRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Stmt.__Internal*)__Instance)->sourceRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -17813,7 +17905,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Adddecls((__Instance + __PointerAdjustment), __arg0); } @@ -18131,7 +18224,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addbody((__Instance + __PointerAdjustment), __arg0); } @@ -20777,7 +20871,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addinputs((__Instance + __PointerAdjustment), __arg0); } @@ -20801,7 +20896,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addoutputs((__Instance + __PointerAdjustment), __arg0); } @@ -22334,7 +22430,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddcaptureInits((__Instance + __PointerAdjustment), __arg0); } @@ -22494,7 +22591,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXCatchStmt.__Internal*)__Instance)->caughtType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXCatchStmt.__Internal*)__Instance)->caughtType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -24399,7 +24498,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Expr.__Internal*)__Instance)->type = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Expr.__Internal*)__Instance)->type = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -27579,7 +27680,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*)__Instance)->argumentType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*)__Instance)->argumentType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -27610,7 +27713,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*)__Instance)->typeOfArgument = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*)__Instance)->typeOfArgument = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -28055,7 +28160,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addarguments((__Instance + __PointerAdjustment), __arg0); } @@ -29313,7 +29419,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal*)__Instance)->typeAsWritten = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal*)__Instance)->typeAsWritten = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -30189,7 +30297,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal*)__Instance)->computationLHSType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal*)__Instance)->computationLHSType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -30202,7 +30312,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal*)__Instance)->computationResultType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal*)__Instance)->computationResultType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -32755,7 +32867,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal*)__Instance)->sourceRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal*)__Instance)->sourceRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } } @@ -33066,7 +33180,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal*)__Instance)->designatorsSourceRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal*)__Instance)->designatorsSourceRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } } @@ -35283,7 +35399,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.AtomicExpr.__Internal*)__Instance)->valueType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.AtomicExpr.__Internal*)__Instance)->valueType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -36378,7 +36496,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal*)__Instance)->angleBrackets = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal*)__Instance)->angleBrackets = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } } @@ -39465,7 +39585,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addarguments((__Instance + __PointerAdjustment), __arg0); } @@ -39566,7 +39687,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXConstructExpr.__Internal*)__Instance)->parenOrBraceRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXConstructExpr.__Internal*)__Instance)->parenOrBraceRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -40334,7 +40457,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddcaptureInits((__Instance + __PointerAdjustment), __arg0); } @@ -40378,7 +40502,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.LambdaExpr.__Internal*)__Instance)->introducerRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.LambdaExpr.__Internal*)__Instance)->introducerRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -40847,7 +40973,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddplacementArguments((__Instance + __PointerAdjustment), __arg0); } @@ -40901,7 +41028,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->allocatedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->allocatedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -40971,7 +41100,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->typeIdParens = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->typeIdParens = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -41059,7 +41190,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->directInitRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->directInitRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -41296,7 +41429,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal*)__Instance)->destroyedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal*)__Instance)->destroyedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -41538,7 +41673,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal*)__Instance)->destroyedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal*)__Instance)->destroyedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -41849,7 +41986,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal*)__Instance)->queriedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal*)__Instance)->queriedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -43165,7 +43304,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addarguments((__Instance + __PointerAdjustment), __arg0); } @@ -43209,7 +43349,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXUnresolvedConstructExpr.__Internal*)__Instance)->typeAsWritten = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXUnresolvedConstructExpr.__Internal*)__Instance)->typeAsWritten = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -43449,7 +43591,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal*)__Instance)->baseType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal*)__Instance)->baseType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -43795,7 +43939,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal*)__Instance)->baseType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal*)__Instance)->baseType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -44701,7 +44847,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal*)__Instance)->argumentPack = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.TemplateArgument.__Internal() : *(global::CppSharp.Parser.AST.TemplateArgument.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal*)__Instance)->argumentPack = *(global::CppSharp.Parser.AST.TemplateArgument.__Internal*) value.__Instance; } } } @@ -47151,7 +47299,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions12addArgumentsEPKc")] - internal static extern void AddArguments(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddArguments(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47166,7 +47314,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions14addSourceFilesEPKc")] - internal static extern void AddSourceFiles(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddSourceFiles(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47181,7 +47329,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions14addIncludeDirsEPKc")] - internal static extern void AddIncludeDirs(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddIncludeDirs(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47196,7 +47344,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions20addSystemIncludeDirsEPKc")] - internal static extern void AddSystemIncludeDirs(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddSystemIncludeDirs(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47211,7 +47359,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions10addDefinesEPKc")] - internal static extern void AddDefines(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddDefines(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47226,7 +47374,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions12addUndefinesEPKc")] - internal static extern void AddUndefines(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddUndefines(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47241,7 +47389,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions14addLibraryDirsEPKc")] - internal static extern void AddLibraryDirs(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddLibraryDirs(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47256,7 +47404,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions20addSupportedStdTypesEPKc")] - internal static extern void AddSupportedStdTypes(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddSupportedStdTypes(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -48179,7 +48327,7 @@ namespace CppSharp public unsafe partial class ClangParser : IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 0)] + [StructLayout(LayoutKind.Explicit, Size = 1)] public partial struct __Internal { [SuppressUnmanagedCodeSecurity] diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std.cs b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std.cs index 2a7431f6..a9b0d1aa 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std.cs @@ -20,6 +20,16 @@ namespace Std [StructLayout(LayoutKind.Explicit, Size = 0)] public unsafe partial struct __Internal { + [SuppressUnmanagedCodeSecurity] + [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZNSaIcEC2Ev")] + internal static extern void ctorc__N_std_S_allocator__C(global::System.IntPtr __instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZNSaIcEC2ERKS_")] + internal static extern void cctorc__N_std_S_allocator__C(global::System.IntPtr __instance, global::System.IntPtr __a); + [SuppressUnmanagedCodeSecurity] [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZNSaIcED2Ev")] @@ -50,7 +60,7 @@ namespace Std private static void* __CopyValue(global::Std.Allocator.__Internal native) { var ret = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal)); - *(global::Std.Allocator.__Internal*) ret = native; + global::Std.Allocator.__Internal.cctorc__N_std_S_allocator__C(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } @@ -68,6 +78,37 @@ namespace Std __Instance = new global::System.IntPtr(native); } + public Allocator() + { + var ___Tp = typeof(_Tp); + if (___Tp.IsAssignableFrom(typeof(sbyte))) + { + __Instance = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal)); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + global::Std.Allocator.__Internal.ctorc__N_std_S_allocator__C((__Instance + __PointerAdjustment)); + return; + } + throw new ArgumentOutOfRangeException("_Tp", string.Join(", ", new[] { typeof(_Tp).FullName }), "global::Std.Allocator<_Tp> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: ."); + } + + public Allocator(global::Std.Allocator<_Tp> __a) + { + var ___Tp = typeof(_Tp); + if (___Tp.IsAssignableFrom(typeof(sbyte))) + { + __Instance = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal)); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + if (ReferenceEquals(__a, null)) + throw new global::System.ArgumentNullException("__a", "Cannot be null because it is a C++ reference (&)."); + var __arg0 = __a.__Instance; + global::Std.Allocator.__Internal.cctorc__N_std_S_allocator__C((__Instance + __PointerAdjustment), __arg0); + return; + } + throw new ArgumentOutOfRangeException("_Tp", string.Join(", ", new[] { typeof(_Tp).FullName }), "global::Std.Allocator<_Tp> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: ."); + } + public void Dispose() { Dispose(disposing: true); @@ -84,7 +125,7 @@ namespace Std var ___Tp = typeof(_Tp); if (___Tp.IsAssignableFrom(typeof(sbyte))) { - throw new MissingMethodException("Method ~allocator ignored in specialization global::Std.Allocator."); + global::Std.Allocator.__Internal.dtorc__N_std_S_allocator__C((__Instance + __PointerAdjustment)); return; } throw new ArgumentOutOfRangeException("_Tp", string.Join(", ", new[] { typeof(_Tp).FullName }), "global::Std.Allocator<_Tp> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: ."); @@ -756,7 +797,7 @@ namespace Std { namespace CharTraits { - [StructLayout(LayoutKind.Explicit, Size = 0)] + [StructLayout(LayoutKind.Explicit, Size = 1)] public unsafe partial struct __Internal { } @@ -835,13 +876,21 @@ namespace Std internal ulong _M_string_length; [FieldOffset(16)] - internal global::Std.BasicString._3.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C _0; + internal fixed sbyte _M_local_buf[16]; + + [FieldOffset(16)] + internal ulong _M_allocated_capacity; [SuppressUnmanagedCodeSecurity] [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev")] internal static extern void ctorc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(global::System.IntPtr __instance); + [SuppressUnmanagedCodeSecurity] + [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_")] + internal static extern void cctorc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(global::System.IntPtr __instance, global::System.IntPtr __str); + [SuppressUnmanagedCodeSecurity] [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev")] @@ -864,7 +913,7 @@ namespace Std } - namespace _3 + namespace _0 { [StructLayout(LayoutKind.Explicit, Size = 16)] public unsafe partial struct __Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C @@ -902,7 +951,7 @@ namespace Std private static void* __CopyValue(global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C native) { var ret = Marshal.AllocHGlobal(sizeof(global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C)); - *(global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C*) ret = native; + global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C.cctorc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } @@ -936,6 +985,25 @@ namespace Std throw new ArgumentOutOfRangeException("_CharT, _Traits, _Alloc", string.Join(", ", new[] { typeof(_CharT).FullName, typeof(_Traits).FullName, typeof(_Alloc).FullName }), "global::Std.BasicString<_CharT, _Traits, _Alloc> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: , global::Std.Allocator>."); } + public BasicString(global::Std.BasicString<_CharT, _Traits, _Alloc> __str) + { + var ___CharT = typeof(_CharT); + var ___Traits = typeof(_Traits); + var ___Alloc = typeof(_Alloc); + if (___CharT.IsAssignableFrom(typeof(sbyte)) && ___Traits.IsAssignableFrom(typeof(global::Std.CharTraits)) && ___Alloc.IsAssignableFrom(typeof(global::Std.Allocator))) + { + __Instance = Marshal.AllocHGlobal(sizeof(global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C)); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + if (ReferenceEquals(__str, null)) + throw new global::System.ArgumentNullException("__str", "Cannot be null because it is a C++ reference (&)."); + var __arg0 = __str.__Instance; + global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C.cctorc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C((__Instance + __PointerAdjustment), __arg0); + return; + } + throw new ArgumentOutOfRangeException("_CharT, _Traits, _Alloc", string.Join(", ", new[] { typeof(_CharT).FullName, typeof(_Traits).FullName, typeof(_Alloc).FullName }), "global::Std.BasicString<_CharT, _Traits, _Alloc> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: , global::Std.Allocator>."); + } + public void Dispose() { Dispose(disposing: true); @@ -963,18 +1031,6 @@ namespace Std Marshal.FreeHGlobal(__Instance); __Instance = IntPtr.Zero; } - - public global::Std.BasicString<_CharT, _Traits, _Alloc> Assign(global::Std.BasicString<_CharT, _Traits, _Alloc> __str) - { - var ___CharT = typeof(_CharT); - var ___Traits = typeof(_Traits); - var ___Alloc = typeof(_Alloc); - if (___CharT.IsAssignableFrom(typeof(sbyte)) && ___Traits.IsAssignableFrom(typeof(global::Std.CharTraits)) && ___Alloc.IsAssignableFrom(typeof(global::Std.Allocator))) - { - throw new MissingMethodException("Method Assign ignored in specialization global::Std.BasicString, global::Std.Allocator>."); - } - throw new ArgumentOutOfRangeException("_CharT, _Traits, _Alloc", string.Join(", ", new[] { typeof(_CharT).FullName, typeof(_Traits).FullName, typeof(_Alloc).FullName }), "global::Std.BasicString<_CharT, _Traits, _Alloc> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: , global::Std.Allocator>."); - } } public unsafe static partial class BasicStringExtensions @@ -985,7 +1041,7 @@ namespace Std [SuppressUnmanagedCodeSecurity] [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEPKc")] - internal static extern global::System.IntPtr Assign(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string __s); + internal static extern global::System.IntPtr Assign(global::System.IntPtr __instance, string __s); [SuppressUnmanagedCodeSecurity] [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser.cs b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser.cs index 611e35c7..ac26abe2 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser.cs @@ -95,7 +95,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser3AST13NativeLibrary10addSymbolsEPKc")] - internal static extern void AddSymbols(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddSymbols(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -110,7 +110,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser3AST13NativeLibrary15addDependenciesEPKc")] - internal static extern void AddDependencies(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddDependencies(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -612,7 +612,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddBlocks((__Instance + __PointerAdjustment), __arg0); } @@ -869,7 +870,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddContent((__Instance + __PointerAdjustment), __arg0); } @@ -1760,7 +1762,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddLines((__Instance + __PointerAdjustment), __arg0); } @@ -3675,7 +3678,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.QualifiedType.__Internal*)__Instance)->qualifiers = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.TypeQualifiers.__Internal() : *(global::CppSharp.Parser.AST.TypeQualifiers.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.QualifiedType.__Internal*)__Instance)->qualifiers = *(global::CppSharp.Parser.AST.TypeQualifiers.__Internal*) value.__Instance; } } } @@ -3883,7 +3888,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.ArrayType.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.ArrayType.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4068,7 +4075,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddParameters((__Instance + __PointerAdjustment), __arg0); } @@ -4086,7 +4094,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.FunctionType.__Internal*)__Instance)->returnType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.FunctionType.__Internal*)__Instance)->returnType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4225,7 +4235,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.PointerType.__Internal*)__Instance)->qualifiedPointee = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.PointerType.__Internal*)__Instance)->qualifiedPointee = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4331,7 +4343,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.MemberPointerType.__Internal*)__Instance)->pointee = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.MemberPointerType.__Internal*)__Instance)->pointee = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -4525,7 +4539,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.AttributedType.__Internal*)__Instance)->modified = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.AttributedType.__Internal*)__Instance)->modified = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4538,7 +4554,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.AttributedType.__Internal*)__Instance)->equivalent = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.AttributedType.__Internal*)__Instance)->equivalent = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -4637,7 +4655,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->decayed = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->decayed = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4650,7 +4670,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->original = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->original = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4663,7 +4685,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->pointee = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->pointee = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -4801,7 +4825,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TemplateArgument.__Internal*)__Instance)->type = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TemplateArgument.__Internal*)__Instance)->type = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5007,7 +5033,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal*)__Instance)->desugared = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal*)__Instance)->desugared = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5170,7 +5198,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal*)__Instance)->desugared = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal*)__Instance)->desugared = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5439,7 +5469,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TemplateParameterSubstitutionType.__Internal*)__Instance)->replacement = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TemplateParameterSubstitutionType.__Internal*)__Instance)->replacement = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5553,7 +5585,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.InjectedClassNameType.__Internal*)__Instance)->injectedSpecializationType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.InjectedClassNameType.__Internal*)__Instance)->injectedSpecializationType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5685,7 +5719,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DependentNameType.__Internal*)__Instance)->qualifier = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DependentNameType.__Internal*)__Instance)->qualifier = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5874,7 +5910,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnaryTransformType.__Internal*)__Instance)->desugared = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnaryTransformType.__Internal*)__Instance)->desugared = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5887,7 +5925,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnaryTransformType.__Internal*)__Instance)->baseType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnaryTransformType.__Internal*)__Instance)->baseType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -5983,7 +6023,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.VectorType.__Internal*)__Instance)->elementType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.VectorType.__Internal*)__Instance)->elementType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -6501,7 +6543,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddPreprocessedEntities((__Instance + __PointerAdjustment), __arg0); } @@ -6525,7 +6568,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddRedeclarations((__Instance + __PointerAdjustment), __arg0); } @@ -7192,7 +7236,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddNamespaces((__Instance + __PointerAdjustment), __arg0); } @@ -7216,7 +7261,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddEnums((__Instance + __PointerAdjustment), __arg0); } @@ -7240,7 +7286,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddFunctions((__Instance + __PointerAdjustment), __arg0); } @@ -7264,7 +7311,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddClasses((__Instance + __PointerAdjustment), __arg0); } @@ -7288,7 +7336,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddTemplates((__Instance + __PointerAdjustment), __arg0); } @@ -7312,7 +7361,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddTypedefs((__Instance + __PointerAdjustment), __arg0); } @@ -7336,7 +7386,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddTypeAliases((__Instance + __PointerAdjustment), __arg0); } @@ -7360,7 +7411,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddVariables((__Instance + __PointerAdjustment), __arg0); } @@ -7384,7 +7436,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddFriends((__Instance + __PointerAdjustment), __arg0); } @@ -7658,7 +7711,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TypedefNameDecl.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TypedefNameDecl.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -8237,7 +8292,7 @@ namespace CppSharp var __arg0 = __basicString0.__Instance; var __arg2 = ReferenceEquals(decl, null) ? global::System.IntPtr.Zero : decl.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, Class, __arg2); - __basicString0.Dispose(false); + __basicString0.Dispose(); } public StatementObsolete(global::CppSharp.Parser.AST.StatementObsolete _0) @@ -8391,7 +8446,7 @@ namespace CppSharp var __arg0 = __basicString0.__Instance; var __arg2 = ReferenceEquals(decl, null) ? global::System.IntPtr.Zero : decl.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, Class, __arg2); - __basicString0.Dispose(false); + __basicString0.Dispose(); } public ExpressionObsolete(global::CppSharp.Parser.AST.ExpressionObsolete _0) @@ -8507,8 +8562,8 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString3, opcodeStr); var __arg3 = __basicString3.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, __arg1, __arg2, __arg3); - __basicString0.Dispose(false); - __basicString3.Dispose(false); + __basicString0.Dispose(); + __basicString3.Dispose(); } public BinaryOperatorObsolete(global::CppSharp.Parser.AST.BinaryOperatorObsolete _0) @@ -8686,7 +8741,7 @@ namespace CppSharp var __arg0 = __basicString0.__Instance; var __arg1 = ReferenceEquals(decl, null) ? global::System.IntPtr.Zero : decl.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, __arg1); - __basicString0.Dispose(false); + __basicString0.Dispose(); } public CallExprObsolete(global::CppSharp.Parser.AST.CallExprObsolete _0) @@ -8729,7 +8784,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddArguments((__Instance + __PointerAdjustment), __arg0); } @@ -8845,7 +8901,7 @@ namespace CppSharp var __arg0 = __basicString0.__Instance; var __arg1 = ReferenceEquals(decl, null) ? global::System.IntPtr.Zero : decl.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, __arg1); - __basicString0.Dispose(false); + __basicString0.Dispose(); } public CXXConstructExprObsolete(global::CppSharp.Parser.AST.CXXConstructExprObsolete _0) @@ -8888,7 +8944,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddArguments((__Instance + __PointerAdjustment), __arg0); } @@ -9082,7 +9139,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Parameter.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Parameter.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -9438,7 +9497,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddParameters((__Instance + __PointerAdjustment), __arg0); } @@ -9456,7 +9516,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Function.__Internal*)__Instance)->returnType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Function.__Internal*)__Instance)->returnType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -9714,7 +9776,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Function.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Function.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -10037,7 +10101,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddOverriddenMethods((__Instance + __PointerAdjustment), __arg0); } @@ -10159,7 +10224,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Method.__Internal*)__Instance)->conversionType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Method.__Internal*)__Instance)->conversionType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -10611,7 +10678,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddItems((__Instance + __PointerAdjustment), __arg0); } @@ -10626,7 +10694,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, Name); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindItemByName((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.Enumeration.Item __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.Enumeration.Item.NativeToManagedMap.ContainsKey(__ret)) @@ -10873,7 +10941,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Variable.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Variable.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -11204,7 +11274,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Field.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Field.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -11849,7 +11921,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.VFTableInfo.__Internal*)__Instance)->layout = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.VTableLayout.__Internal() : *(global::CppSharp.Parser.AST.VTableLayout.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.VFTableInfo.__Internal*)__Instance)->layout = *(global::CppSharp.Parser.AST.VTableLayout.__Internal*) value.__Instance; } } } @@ -12001,7 +12075,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.LayoutField.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.LayoutField.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -12439,7 +12515,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.ClassLayout.__Internal*)__Instance)->layout = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.VTableLayout.__Internal() : *(global::CppSharp.Parser.AST.VTableLayout.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.ClassLayout.__Internal*)__Instance)->layout = *(global::CppSharp.Parser.AST.VTableLayout.__Internal*) value.__Instance; } } @@ -12857,7 +12935,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddBases((__Instance + __PointerAdjustment), __arg0); } @@ -12881,7 +12960,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddFields((__Instance + __PointerAdjustment), __arg0); } @@ -12905,7 +12985,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddMethods((__Instance + __PointerAdjustment), __arg0); } @@ -12929,7 +13010,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddSpecifiers((__Instance + __PointerAdjustment), __arg0); } @@ -13326,7 +13408,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddParameters((__Instance + __PointerAdjustment), __arg0); } @@ -14097,7 +14180,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TypeTemplateParameter.__Internal*)__Instance)->defaultArgument = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TypeTemplateParameter.__Internal*)__Instance)->defaultArgument = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -14552,7 +14637,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddSpecializations((__Instance + __PointerAdjustment), __arg0); } @@ -14567,7 +14653,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.ClassTemplateSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.ClassTemplateSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -14582,7 +14668,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindPartialSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -15350,7 +15436,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddSpecializations((__Instance + __PointerAdjustment), __arg0); } @@ -15365,7 +15452,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.FunctionTemplateSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.FunctionTemplateSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -15794,7 +15881,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddSpecializations((__Instance + __PointerAdjustment), __arg0); } @@ -15809,7 +15897,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.VarTemplateSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.VarTemplateSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -15824,7 +15912,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindPartialSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.VarTemplatePartialSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -17138,7 +17226,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddMacros((__Instance + __PointerAdjustment), __arg0); } @@ -17212,7 +17301,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser3AST10ASTContext18FindOrCreateModuleESs")] - internal static extern global::System.IntPtr FindOrCreateModule(global::System.IntPtr __instance, global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C File); + internal static extern global::System.IntPtr FindOrCreateModule(global::System.IntPtr __instance, global::System.IntPtr File); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -17315,9 +17404,9 @@ namespace CppSharp { var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, File); - var __arg0 = *(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C*) __basicString0.__Instance; + var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindOrCreateModule((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.TranslationUnit __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.TranslationUnit.NativeToManagedMap.ContainsKey(__ret)) @@ -17341,7 +17430,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddTranslationUnits((__Instance + __PointerAdjustment), __arg0); } @@ -17638,7 +17728,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Stmt.__Internal*)__Instance)->sourceRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Stmt.__Internal*)__Instance)->sourceRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -17813,7 +17905,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Adddecls((__Instance + __PointerAdjustment), __arg0); } @@ -18131,7 +18224,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addbody((__Instance + __PointerAdjustment), __arg0); } @@ -20777,7 +20871,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addinputs((__Instance + __PointerAdjustment), __arg0); } @@ -20801,7 +20896,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addoutputs((__Instance + __PointerAdjustment), __arg0); } @@ -22334,7 +22430,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddcaptureInits((__Instance + __PointerAdjustment), __arg0); } @@ -22494,7 +22591,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXCatchStmt.__Internal*)__Instance)->caughtType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXCatchStmt.__Internal*)__Instance)->caughtType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -24399,7 +24498,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Expr.__Internal*)__Instance)->type = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Expr.__Internal*)__Instance)->type = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -27579,7 +27680,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*)__Instance)->argumentType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*)__Instance)->argumentType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -27610,7 +27713,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*)__Instance)->typeOfArgument = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*)__Instance)->typeOfArgument = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -28055,7 +28160,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addarguments((__Instance + __PointerAdjustment), __arg0); } @@ -29313,7 +29419,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal*)__Instance)->typeAsWritten = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal*)__Instance)->typeAsWritten = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -30189,7 +30297,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal*)__Instance)->computationLHSType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal*)__Instance)->computationLHSType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -30202,7 +30312,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal*)__Instance)->computationResultType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal*)__Instance)->computationResultType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -32755,7 +32867,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal*)__Instance)->sourceRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal*)__Instance)->sourceRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } } @@ -33066,7 +33180,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal*)__Instance)->designatorsSourceRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal*)__Instance)->designatorsSourceRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } } @@ -35283,7 +35399,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.AtomicExpr.__Internal*)__Instance)->valueType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.AtomicExpr.__Internal*)__Instance)->valueType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -36378,7 +36496,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal*)__Instance)->angleBrackets = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal*)__Instance)->angleBrackets = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } } @@ -39465,7 +39585,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addarguments((__Instance + __PointerAdjustment), __arg0); } @@ -39566,7 +39687,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXConstructExpr.__Internal*)__Instance)->parenOrBraceRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXConstructExpr.__Internal*)__Instance)->parenOrBraceRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -40334,7 +40457,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddcaptureInits((__Instance + __PointerAdjustment), __arg0); } @@ -40378,7 +40502,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.LambdaExpr.__Internal*)__Instance)->introducerRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.LambdaExpr.__Internal*)__Instance)->introducerRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -40847,7 +40973,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddplacementArguments((__Instance + __PointerAdjustment), __arg0); } @@ -40901,7 +41028,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->allocatedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->allocatedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -40971,7 +41100,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->typeIdParens = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->typeIdParens = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -41059,7 +41190,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->directInitRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->directInitRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -41296,7 +41429,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal*)__Instance)->destroyedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal*)__Instance)->destroyedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -41538,7 +41673,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal*)__Instance)->destroyedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal*)__Instance)->destroyedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -41849,7 +41986,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal*)__Instance)->queriedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal*)__Instance)->queriedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -43165,7 +43304,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addarguments((__Instance + __PointerAdjustment), __arg0); } @@ -43209,7 +43349,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXUnresolvedConstructExpr.__Internal*)__Instance)->typeAsWritten = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXUnresolvedConstructExpr.__Internal*)__Instance)->typeAsWritten = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -43449,7 +43591,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal*)__Instance)->baseType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal*)__Instance)->baseType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -43795,7 +43939,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal*)__Instance)->baseType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal*)__Instance)->baseType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -44701,7 +44847,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal*)__Instance)->argumentPack = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.TemplateArgument.__Internal() : *(global::CppSharp.Parser.AST.TemplateArgument.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal*)__Instance)->argumentPack = *(global::CppSharp.Parser.AST.TemplateArgument.__Internal*) value.__Instance; } } } @@ -47151,7 +47299,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions12addArgumentsEPKc")] - internal static extern void AddArguments(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddArguments(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47166,7 +47314,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions14addSourceFilesEPKc")] - internal static extern void AddSourceFiles(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddSourceFiles(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47181,7 +47329,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions14addIncludeDirsEPKc")] - internal static extern void AddIncludeDirs(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddIncludeDirs(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47196,7 +47344,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions20addSystemIncludeDirsEPKc")] - internal static extern void AddSystemIncludeDirs(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddSystemIncludeDirs(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47211,7 +47359,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions10addDefinesEPKc")] - internal static extern void AddDefines(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddDefines(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47226,7 +47374,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions12addUndefinesEPKc")] - internal static extern void AddUndefines(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddUndefines(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47241,7 +47389,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions14addLibraryDirsEPKc")] - internal static extern void AddLibraryDirs(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddLibraryDirs(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47256,7 +47404,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZN8CppSharp9CppParser16CppParserOptions20addSupportedStdTypesEPKc")] - internal static extern void AddSupportedStdTypes(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddSupportedStdTypes(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -48179,7 +48327,7 @@ namespace CppSharp public unsafe partial class ClangParser : IDisposable { - [StructLayout(LayoutKind.Explicit, Size = 0)] + [StructLayout(LayoutKind.Explicit, Size = 1)] public partial struct __Internal { [SuppressUnmanagedCodeSecurity] diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std.cs b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std.cs index 973efc57..a9091a10 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std.cs @@ -20,6 +20,16 @@ namespace Std [StructLayout(LayoutKind.Explicit, Size = 0)] public unsafe partial struct __Internal { + [SuppressUnmanagedCodeSecurity] + [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZNSaIcEC2Ev")] + internal static extern void ctorc__N_std_S_allocator__C(global::System.IntPtr __instance); + + [SuppressUnmanagedCodeSecurity] + [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZNSaIcEC2ERKS_")] + internal static extern void cctorc__N_std_S_allocator__C(global::System.IntPtr __instance, global::System.IntPtr __a); + [SuppressUnmanagedCodeSecurity] [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZNSaIcED2Ev")] @@ -50,7 +60,7 @@ namespace Std private static void* __CopyValue(global::Std.Allocator.__Internal native) { var ret = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal)); - *(global::Std.Allocator.__Internal*) ret = native; + global::Std.Allocator.__Internal.cctorc__N_std_S_allocator__C(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } @@ -68,6 +78,37 @@ namespace Std __Instance = new global::System.IntPtr(native); } + public Allocator() + { + var ___Tp = typeof(_Tp); + if (___Tp.IsAssignableFrom(typeof(sbyte))) + { + __Instance = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal)); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + global::Std.Allocator.__Internal.ctorc__N_std_S_allocator__C((__Instance + __PointerAdjustment)); + return; + } + throw new ArgumentOutOfRangeException("_Tp", string.Join(", ", new[] { typeof(_Tp).FullName }), "global::Std.Allocator<_Tp> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: ."); + } + + public Allocator(global::Std.Allocator<_Tp> __a) + { + var ___Tp = typeof(_Tp); + if (___Tp.IsAssignableFrom(typeof(sbyte))) + { + __Instance = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal)); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + if (ReferenceEquals(__a, null)) + throw new global::System.ArgumentNullException("__a", "Cannot be null because it is a C++ reference (&)."); + var __arg0 = __a.__Instance; + global::Std.Allocator.__Internal.cctorc__N_std_S_allocator__C((__Instance + __PointerAdjustment), __arg0); + return; + } + throw new ArgumentOutOfRangeException("_Tp", string.Join(", ", new[] { typeof(_Tp).FullName }), "global::Std.Allocator<_Tp> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: ."); + } + public void Dispose() { Dispose(disposing: true); @@ -84,7 +125,7 @@ namespace Std var ___Tp = typeof(_Tp); if (___Tp.IsAssignableFrom(typeof(sbyte))) { - throw new MissingMethodException("Method ~allocator ignored in specialization global::Std.Allocator."); + global::Std.Allocator.__Internal.dtorc__N_std_S_allocator__C((__Instance + __PointerAdjustment)); return; } throw new ArgumentOutOfRangeException("_Tp", string.Join(", ", new[] { typeof(_Tp).FullName }), "global::Std.Allocator<_Tp> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: ."); @@ -756,7 +797,7 @@ namespace Std { namespace CharTraits { - [StructLayout(LayoutKind.Explicit, Size = 0)] + [StructLayout(LayoutKind.Explicit, Size = 1)] public unsafe partial struct __Internal { } @@ -836,6 +877,11 @@ namespace Std EntryPoint="_ZNSsC2Ev")] internal static extern void ctorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(global::System.IntPtr __instance); + [SuppressUnmanagedCodeSecurity] + [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="_ZNSsC2ERKSs")] + internal static extern void cctorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(global::System.IntPtr __instance, global::System.IntPtr __str); + [SuppressUnmanagedCodeSecurity] [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZNSsD2Ev")] @@ -882,7 +928,7 @@ namespace Std private static void* __CopyValue(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C native) { var ret = Marshal.AllocHGlobal(sizeof(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C)); - *(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C*) ret = native; + global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C.cctorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } @@ -916,6 +962,25 @@ namespace Std throw new ArgumentOutOfRangeException("_CharT, _Traits, _Alloc", string.Join(", ", new[] { typeof(_CharT).FullName, typeof(_Traits).FullName, typeof(_Alloc).FullName }), "global::Std.BasicString<_CharT, _Traits, _Alloc> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: , global::Std.Allocator>."); } + public BasicString(global::Std.BasicString<_CharT, _Traits, _Alloc> __str) + { + var ___CharT = typeof(_CharT); + var ___Traits = typeof(_Traits); + var ___Alloc = typeof(_Alloc); + if (___CharT.IsAssignableFrom(typeof(sbyte)) && ___Traits.IsAssignableFrom(typeof(global::Std.CharTraits)) && ___Alloc.IsAssignableFrom(typeof(global::Std.Allocator))) + { + __Instance = Marshal.AllocHGlobal(sizeof(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C)); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + if (ReferenceEquals(__str, null)) + throw new global::System.ArgumentNullException("__str", "Cannot be null because it is a C++ reference (&)."); + var __arg0 = __str.__Instance; + global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C.cctorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C((__Instance + __PointerAdjustment), __arg0); + return; + } + throw new ArgumentOutOfRangeException("_CharT, _Traits, _Alloc", string.Join(", ", new[] { typeof(_CharT).FullName, typeof(_Traits).FullName, typeof(_Alloc).FullName }), "global::Std.BasicString<_CharT, _Traits, _Alloc> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: , global::Std.Allocator>."); + } + public void Dispose() { Dispose(disposing: true); @@ -943,18 +1008,6 @@ namespace Std Marshal.FreeHGlobal(__Instance); __Instance = IntPtr.Zero; } - - public global::Std.BasicString<_CharT, _Traits, _Alloc> Assign(global::Std.BasicString<_CharT, _Traits, _Alloc> __str) - { - var ___CharT = typeof(_CharT); - var ___Traits = typeof(_Traits); - var ___Alloc = typeof(_Alloc); - if (___CharT.IsAssignableFrom(typeof(sbyte)) && ___Traits.IsAssignableFrom(typeof(global::Std.CharTraits)) && ___Alloc.IsAssignableFrom(typeof(global::Std.Allocator))) - { - throw new MissingMethodException("Method Assign ignored in specialization global::Std.BasicString, global::Std.Allocator>."); - } - throw new ArgumentOutOfRangeException("_CharT, _Traits, _Alloc", string.Join(", ", new[] { typeof(_CharT).FullName, typeof(_Traits).FullName, typeof(_Alloc).FullName }), "global::Std.BasicString<_CharT, _Traits, _Alloc> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: , global::Std.Allocator>."); - } } public unsafe static partial class BasicStringExtensions @@ -965,7 +1018,7 @@ namespace Std [SuppressUnmanagedCodeSecurity] [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="_ZNSs6assignEPKc")] - internal static extern global::System.IntPtr Assign(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string __s); + internal static extern global::System.IntPtr Assign(global::System.IntPtr __instance, string __s); [SuppressUnmanagedCodeSecurity] [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, diff --git a/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser.cs b/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser.cs index c1f38fe8..f5135d0c 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser.cs @@ -95,7 +95,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="?addSymbols@NativeLibrary@AST@CppParser@CppSharp@@QEAAXPEBD@Z")] - internal static extern void AddSymbols(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddSymbols(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -110,7 +110,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="?addDependencies@NativeLibrary@AST@CppParser@CppSharp@@QEAAXPEBD@Z")] - internal static extern void AddDependencies(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddDependencies(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -612,7 +612,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddBlocks((__Instance + __PointerAdjustment), __arg0); } @@ -869,7 +870,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddContent((__Instance + __PointerAdjustment), __arg0); } @@ -1760,7 +1762,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddLines((__Instance + __PointerAdjustment), __arg0); } @@ -3675,7 +3678,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.QualifiedType.__Internal*)__Instance)->qualifiers = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.TypeQualifiers.__Internal() : *(global::CppSharp.Parser.AST.TypeQualifiers.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.QualifiedType.__Internal*)__Instance)->qualifiers = *(global::CppSharp.Parser.AST.TypeQualifiers.__Internal*) value.__Instance; } } } @@ -3883,7 +3888,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.ArrayType.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.ArrayType.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4068,7 +4075,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddParameters((__Instance + __PointerAdjustment), __arg0); } @@ -4086,7 +4094,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.FunctionType.__Internal*)__Instance)->returnType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.FunctionType.__Internal*)__Instance)->returnType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4225,7 +4235,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.PointerType.__Internal*)__Instance)->qualifiedPointee = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.PointerType.__Internal*)__Instance)->qualifiedPointee = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4331,7 +4343,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.MemberPointerType.__Internal*)__Instance)->pointee = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.MemberPointerType.__Internal*)__Instance)->pointee = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -4525,7 +4539,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.AttributedType.__Internal*)__Instance)->modified = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.AttributedType.__Internal*)__Instance)->modified = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4538,7 +4554,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.AttributedType.__Internal*)__Instance)->equivalent = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.AttributedType.__Internal*)__Instance)->equivalent = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -4637,7 +4655,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->decayed = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->decayed = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4650,7 +4670,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->original = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->original = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -4663,7 +4685,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->pointee = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DecayedType.__Internal*)__Instance)->pointee = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -4801,7 +4825,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TemplateArgument.__Internal*)__Instance)->type = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TemplateArgument.__Internal*)__Instance)->type = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5007,7 +5033,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal*)__Instance)->desugared = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal*)__Instance)->desugared = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5170,7 +5198,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal*)__Instance)->desugared = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal*)__Instance)->desugared = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5439,7 +5469,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TemplateParameterSubstitutionType.__Internal*)__Instance)->replacement = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TemplateParameterSubstitutionType.__Internal*)__Instance)->replacement = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5553,7 +5585,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.InjectedClassNameType.__Internal*)__Instance)->injectedSpecializationType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.InjectedClassNameType.__Internal*)__Instance)->injectedSpecializationType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5685,7 +5719,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DependentNameType.__Internal*)__Instance)->qualifier = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DependentNameType.__Internal*)__Instance)->qualifier = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5874,7 +5910,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnaryTransformType.__Internal*)__Instance)->desugared = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnaryTransformType.__Internal*)__Instance)->desugared = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -5887,7 +5925,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnaryTransformType.__Internal*)__Instance)->baseType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnaryTransformType.__Internal*)__Instance)->baseType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -5983,7 +6023,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.VectorType.__Internal*)__Instance)->elementType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.VectorType.__Internal*)__Instance)->elementType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -6501,7 +6543,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddPreprocessedEntities((__Instance + __PointerAdjustment), __arg0); } @@ -6525,7 +6568,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddRedeclarations((__Instance + __PointerAdjustment), __arg0); } @@ -7192,7 +7236,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddNamespaces((__Instance + __PointerAdjustment), __arg0); } @@ -7216,7 +7261,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddEnums((__Instance + __PointerAdjustment), __arg0); } @@ -7240,7 +7286,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddFunctions((__Instance + __PointerAdjustment), __arg0); } @@ -7264,7 +7311,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddClasses((__Instance + __PointerAdjustment), __arg0); } @@ -7288,7 +7336,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddTemplates((__Instance + __PointerAdjustment), __arg0); } @@ -7312,7 +7361,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddTypedefs((__Instance + __PointerAdjustment), __arg0); } @@ -7336,7 +7386,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddTypeAliases((__Instance + __PointerAdjustment), __arg0); } @@ -7360,7 +7411,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddVariables((__Instance + __PointerAdjustment), __arg0); } @@ -7384,7 +7436,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddFriends((__Instance + __PointerAdjustment), __arg0); } @@ -7658,7 +7711,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TypedefNameDecl.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TypedefNameDecl.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -8237,7 +8292,7 @@ namespace CppSharp var __arg0 = __basicString0.__Instance; var __arg2 = ReferenceEquals(decl, null) ? global::System.IntPtr.Zero : decl.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, Class, __arg2); - __basicString0.Dispose(false); + __basicString0.Dispose(); } public StatementObsolete(global::CppSharp.Parser.AST.StatementObsolete _0) @@ -8391,7 +8446,7 @@ namespace CppSharp var __arg0 = __basicString0.__Instance; var __arg2 = ReferenceEquals(decl, null) ? global::System.IntPtr.Zero : decl.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, Class, __arg2); - __basicString0.Dispose(false); + __basicString0.Dispose(); } public ExpressionObsolete(global::CppSharp.Parser.AST.ExpressionObsolete _0) @@ -8507,8 +8562,8 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString3, opcodeStr); var __arg3 = __basicString3.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, __arg1, __arg2, __arg3); - __basicString0.Dispose(false); - __basicString3.Dispose(false); + __basicString0.Dispose(); + __basicString3.Dispose(); } public BinaryOperatorObsolete(global::CppSharp.Parser.AST.BinaryOperatorObsolete _0) @@ -8686,7 +8741,7 @@ namespace CppSharp var __arg0 = __basicString0.__Instance; var __arg1 = ReferenceEquals(decl, null) ? global::System.IntPtr.Zero : decl.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, __arg1); - __basicString0.Dispose(false); + __basicString0.Dispose(); } public CallExprObsolete(global::CppSharp.Parser.AST.CallExprObsolete _0) @@ -8729,7 +8784,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddArguments((__Instance + __PointerAdjustment), __arg0); } @@ -8845,7 +8901,7 @@ namespace CppSharp var __arg0 = __basicString0.__Instance; var __arg1 = ReferenceEquals(decl, null) ? global::System.IntPtr.Zero : decl.__Instance; __Internal.ctor((__Instance + __PointerAdjustment), __arg0, __arg1); - __basicString0.Dispose(false); + __basicString0.Dispose(); } public CXXConstructExprObsolete(global::CppSharp.Parser.AST.CXXConstructExprObsolete _0) @@ -8888,7 +8944,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddArguments((__Instance + __PointerAdjustment), __arg0); } @@ -9082,7 +9139,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Parameter.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Parameter.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -9438,7 +9497,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddParameters((__Instance + __PointerAdjustment), __arg0); } @@ -9456,7 +9516,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Function.__Internal*)__Instance)->returnType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Function.__Internal*)__Instance)->returnType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -9714,7 +9776,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Function.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Function.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -10037,7 +10101,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddOverriddenMethods((__Instance + __PointerAdjustment), __arg0); } @@ -10159,7 +10224,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Method.__Internal*)__Instance)->conversionType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Method.__Internal*)__Instance)->conversionType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -10611,7 +10678,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddItems((__Instance + __PointerAdjustment), __arg0); } @@ -10626,7 +10694,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, Name); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindItemByName((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.Enumeration.Item __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.Enumeration.Item.NativeToManagedMap.ContainsKey(__ret)) @@ -10873,7 +10941,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Variable.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Variable.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -11204,7 +11274,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Field.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Field.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -11850,7 +11922,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.VFTableInfo.__Internal*)__Instance)->layout = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.VTableLayout.__Internal() : *(global::CppSharp.Parser.AST.VTableLayout.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.VFTableInfo.__Internal*)__Instance)->layout = *(global::CppSharp.Parser.AST.VTableLayout.__Internal*) value.__Instance; } } } @@ -12002,7 +12076,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.LayoutField.__Internal*)__Instance)->qualifiedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.LayoutField.__Internal*)__Instance)->qualifiedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -12440,7 +12516,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.ClassLayout.__Internal*)__Instance)->layout = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.VTableLayout.__Internal() : *(global::CppSharp.Parser.AST.VTableLayout.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.ClassLayout.__Internal*)__Instance)->layout = *(global::CppSharp.Parser.AST.VTableLayout.__Internal*) value.__Instance; } } @@ -12858,7 +12936,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddBases((__Instance + __PointerAdjustment), __arg0); } @@ -12882,7 +12961,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddFields((__Instance + __PointerAdjustment), __arg0); } @@ -12906,7 +12986,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddMethods((__Instance + __PointerAdjustment), __arg0); } @@ -12930,7 +13011,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddSpecifiers((__Instance + __PointerAdjustment), __arg0); } @@ -13327,7 +13409,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddParameters((__Instance + __PointerAdjustment), __arg0); } @@ -14098,7 +14181,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.TypeTemplateParameter.__Internal*)__Instance)->defaultArgument = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.TypeTemplateParameter.__Internal*)__Instance)->defaultArgument = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -14553,7 +14638,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddSpecializations((__Instance + __PointerAdjustment), __arg0); } @@ -14568,7 +14654,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.ClassTemplateSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.ClassTemplateSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -14583,7 +14669,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindPartialSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -15351,7 +15437,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddSpecializations((__Instance + __PointerAdjustment), __arg0); } @@ -15366,7 +15453,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.FunctionTemplateSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.FunctionTemplateSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -15795,7 +15882,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddSpecializations((__Instance + __PointerAdjustment), __arg0); } @@ -15810,7 +15898,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.VarTemplateSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.VarTemplateSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -15825,7 +15913,7 @@ namespace CppSharp global::Std.BasicStringExtensions.Assign(__basicString0, usr); var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindPartialSpecialization((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.VarTemplatePartialSpecialization __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.NativeToManagedMap.ContainsKey(__ret)) @@ -17139,7 +17227,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddMacros((__Instance + __PointerAdjustment), __arg0); } @@ -17213,7 +17302,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="?FindOrCreateModule@ASTContext@AST@CppParser@CppSharp@@QEAAPEAVTranslationUnit@234@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z")] - internal static extern global::System.IntPtr FindOrCreateModule(global::System.IntPtr __instance, global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C File); + internal static extern global::System.IntPtr FindOrCreateModule(global::System.IntPtr __instance, global::System.IntPtr File); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -17316,9 +17405,9 @@ namespace CppSharp { var __basicString0 = new global::Std.BasicString, global::Std.Allocator>(); global::Std.BasicStringExtensions.Assign(__basicString0, File); - var __arg0 = *(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C*) __basicString0.__Instance; + var __arg0 = __basicString0.__Instance; var __ret = __Internal.FindOrCreateModule((__Instance + __PointerAdjustment), __arg0); - __basicString0.Dispose(false); + __basicString0.Dispose(); global::CppSharp.Parser.AST.TranslationUnit __result0; if (__ret == IntPtr.Zero) __result0 = null; else if (global::CppSharp.Parser.AST.TranslationUnit.NativeToManagedMap.ContainsKey(__ret)) @@ -17342,7 +17431,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddTranslationUnits((__Instance + __PointerAdjustment), __arg0); } @@ -17639,7 +17729,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Stmt.__Internal*)__Instance)->sourceRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Stmt.__Internal*)__Instance)->sourceRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -17814,7 +17906,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Adddecls((__Instance + __PointerAdjustment), __arg0); } @@ -18132,7 +18225,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addbody((__Instance + __PointerAdjustment), __arg0); } @@ -20778,7 +20872,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addinputs((__Instance + __PointerAdjustment), __arg0); } @@ -20802,7 +20897,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addoutputs((__Instance + __PointerAdjustment), __arg0); } @@ -22335,7 +22431,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddcaptureInits((__Instance + __PointerAdjustment), __arg0); } @@ -22495,7 +22592,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXCatchStmt.__Internal*)__Instance)->caughtType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXCatchStmt.__Internal*)__Instance)->caughtType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -24400,7 +24499,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.Expr.__Internal*)__Instance)->type = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.Expr.__Internal*)__Instance)->type = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -27580,7 +27681,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*)__Instance)->argumentType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*)__Instance)->argumentType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -27611,7 +27714,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*)__Instance)->typeOfArgument = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnaryExprOrTypeTraitExpr.__Internal*)__Instance)->typeOfArgument = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -28056,7 +28161,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addarguments((__Instance + __PointerAdjustment), __arg0); } @@ -29314,7 +29420,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal*)__Instance)->typeAsWritten = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.ExplicitCastExpr.__Internal*)__Instance)->typeAsWritten = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -30190,7 +30298,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal*)__Instance)->computationLHSType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal*)__Instance)->computationLHSType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -30203,7 +30313,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal*)__Instance)->computationResultType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CompoundAssignOperator.__Internal*)__Instance)->computationResultType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -32756,7 +32868,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal*)__Instance)->sourceRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DesignatedInitExpr.Designator.__Internal*)__Instance)->sourceRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } } @@ -33067,7 +33181,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal*)__Instance)->designatorsSourceRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.DesignatedInitExpr.__Internal*)__Instance)->designatorsSourceRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } } @@ -35284,7 +35400,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.AtomicExpr.__Internal*)__Instance)->valueType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.AtomicExpr.__Internal*)__Instance)->valueType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -36379,7 +36497,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal*)__Instance)->angleBrackets = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXNamedCastExpr.__Internal*)__Instance)->angleBrackets = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } } @@ -39466,7 +39586,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addarguments((__Instance + __PointerAdjustment), __arg0); } @@ -39567,7 +39688,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXConstructExpr.__Internal*)__Instance)->parenOrBraceRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXConstructExpr.__Internal*)__Instance)->parenOrBraceRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -40335,7 +40458,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddcaptureInits((__Instance + __PointerAdjustment), __arg0); } @@ -40379,7 +40503,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.LambdaExpr.__Internal*)__Instance)->introducerRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.LambdaExpr.__Internal*)__Instance)->introducerRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -40848,7 +40974,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.AddplacementArguments((__Instance + __PointerAdjustment), __arg0); } @@ -40902,7 +41029,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->allocatedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->allocatedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -40972,7 +41101,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->typeIdParens = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->typeIdParens = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -41060,7 +41191,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->directInitRange = ReferenceEquals(value, null) ? new global::CppSharp.Parser.SourceRange.__Internal() : *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXNewExpr.__Internal*)__Instance)->directInitRange = *(global::CppSharp.Parser.SourceRange.__Internal*) value.__Instance; } } @@ -41297,7 +41430,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal*)__Instance)->destroyedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXDeleteExpr.__Internal*)__Instance)->destroyedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } } @@ -41539,7 +41674,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal*)__Instance)->destroyedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXPseudoDestructorExpr.__Internal*)__Instance)->destroyedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -41850,7 +41987,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal*)__Instance)->queriedType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.ArrayTypeTraitExpr.__Internal*)__Instance)->queriedType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -43166,7 +43305,8 @@ namespace CppSharp { if (ReferenceEquals(s, null)) throw new global::System.ArgumentNullException("s", "Cannot be null because it is a C++ reference (&)."); - var __arg0 = s.__Instance; + var ____arg0 = s.__Instance; + var __arg0 = new global::System.IntPtr(&____arg0); __Internal.Addarguments((__Instance + __PointerAdjustment), __arg0); } @@ -43210,7 +43350,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXUnresolvedConstructExpr.__Internal*)__Instance)->typeAsWritten = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXUnresolvedConstructExpr.__Internal*)__Instance)->typeAsWritten = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -43450,7 +43592,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal*)__Instance)->baseType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.CXXDependentScopeMemberExpr.__Internal*)__Instance)->baseType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -43796,7 +43940,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal*)__Instance)->baseType = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.QualifiedType.__Internal() : *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.UnresolvedMemberExpr.__Internal*)__Instance)->baseType = *(global::CppSharp.Parser.AST.QualifiedType.__Internal*) value.__Instance; } } @@ -44702,7 +44848,9 @@ namespace CppSharp set { - ((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal*)__Instance)->argumentPack = ReferenceEquals(value, null) ? new global::CppSharp.Parser.AST.TemplateArgument.__Internal() : *(global::CppSharp.Parser.AST.TemplateArgument.__Internal*) value.__Instance; + if (ReferenceEquals(value, null)) + throw new global::System.ArgumentNullException("value", "Cannot be null because it is passed by value."); + ((global::CppSharp.Parser.AST.SubstNonTypeTemplateParmPackExpr.__Internal*)__Instance)->argumentPack = *(global::CppSharp.Parser.AST.TemplateArgument.__Internal*) value.__Instance; } } } @@ -47152,7 +47300,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="?addArguments@CppParserOptions@CppParser@CppSharp@@QEAAXPEBD@Z")] - internal static extern void AddArguments(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddArguments(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47167,7 +47315,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="?addSourceFiles@CppParserOptions@CppParser@CppSharp@@QEAAXPEBD@Z")] - internal static extern void AddSourceFiles(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddSourceFiles(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47182,7 +47330,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="?addIncludeDirs@CppParserOptions@CppParser@CppSharp@@QEAAXPEBD@Z")] - internal static extern void AddIncludeDirs(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddIncludeDirs(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47197,7 +47345,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="?addSystemIncludeDirs@CppParserOptions@CppParser@CppSharp@@QEAAXPEBD@Z")] - internal static extern void AddSystemIncludeDirs(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddSystemIncludeDirs(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47212,7 +47360,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="?addDefines@CppParserOptions@CppParser@CppSharp@@QEAAXPEBD@Z")] - internal static extern void AddDefines(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddDefines(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47227,7 +47375,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="?addUndefines@CppParserOptions@CppParser@CppSharp@@QEAAXPEBD@Z")] - internal static extern void AddUndefines(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddUndefines(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47242,7 +47390,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="?addLibraryDirs@CppParserOptions@CppParser@CppSharp@@QEAAXPEBD@Z")] - internal static extern void AddLibraryDirs(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddLibraryDirs(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, @@ -47257,7 +47405,7 @@ namespace CppSharp [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="?addSupportedStdTypes@CppParserOptions@CppParser@CppSharp@@QEAAXPEBD@Z")] - internal static extern void AddSupportedStdTypes(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string s); + internal static extern void AddSupportedStdTypes(global::System.IntPtr __instance, string s); [SuppressUnmanagedCodeSecurity] [DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, diff --git a/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std.cs b/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std.cs index 5f7d22d9..cabfcd27 100644 --- a/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std.cs +++ b/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std.cs @@ -393,6 +393,10 @@ namespace Std [StructLayout(LayoutKind.Explicit, Size = 0)] public unsafe partial struct __Internal { + [SuppressUnmanagedCodeSecurity] + [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="??0?$allocator@D@std@@QEAA@XZ")] + internal static extern global::System.IntPtr ctorc__N_std_S_allocator__C(global::System.IntPtr __instance); } } @@ -437,6 +441,31 @@ namespace Std __Instance = new global::System.IntPtr(native); } + public Allocator() + { + var ___Ty = typeof(_Ty); + if (___Ty.IsAssignableFrom(typeof(sbyte))) + { + __Instance = Marshal.AllocHGlobal(sizeof(global::Std.Allocator.__Internal)); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + global::Std.Allocator.__Internal.ctorc__N_std_S_allocator__C((__Instance + __PointerAdjustment)); + return; + } + throw new ArgumentOutOfRangeException("_Ty", string.Join(", ", new[] { typeof(_Ty).FullName }), "global::Std.Allocator<_Ty> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: ."); + } + + public Allocator(global::Std.Allocator<_Ty> _0) + { + var ___Ty = typeof(_Ty); + if (___Ty.IsAssignableFrom(typeof(sbyte))) + { + throw new MissingMethodException("Method allocator__Ty_ missing from explicit specialization global::Std.Allocator."); + return; + } + throw new ArgumentOutOfRangeException("_Ty", string.Join(", ", new[] { typeof(_Ty).FullName }), "global::Std.Allocator<_Ty> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: ."); + } + public void Dispose() { Dispose(disposing: true); @@ -465,6 +494,11 @@ namespace Std [FieldOffset(0)] internal global::Std.CompressedPair.__Internalc__N_std_S__Compressed_pair____N_std_S_allocator__C___N_std_S__String_val____N_std_S__Simple_types__C_Vb1 _Mypair; + [SuppressUnmanagedCodeSecurity] + [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, + EntryPoint="??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@AEBV01@@Z")] + internal static extern global::System.IntPtr cctorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(global::System.IntPtr __instance, global::System.IntPtr _Right); + [SuppressUnmanagedCodeSecurity] [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@XZ")] @@ -505,7 +539,7 @@ namespace Std private static void* __CopyValue(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C native) { var ret = Marshal.AllocHGlobal(sizeof(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C)); - *(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C*) ret = native; + global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C.cctorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); } @@ -523,6 +557,25 @@ namespace Std __Instance = new global::System.IntPtr(native); } + public BasicString(global::Std.BasicString<_Elem, _Traits, _Alloc> _Right) + { + var ___Elem = typeof(_Elem); + var ___Traits = typeof(_Traits); + var ___Alloc = typeof(_Alloc); + if (___Elem.IsAssignableFrom(typeof(sbyte)) && ___Traits.IsAssignableFrom(typeof(global::Std.CharTraits)) && ___Alloc.IsAssignableFrom(typeof(global::Std.Allocator))) + { + __Instance = Marshal.AllocHGlobal(sizeof(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C)); + __ownsNativeInstance = true; + NativeToManagedMap[__Instance] = this; + if (ReferenceEquals(_Right, null)) + throw new global::System.ArgumentNullException("_Right", "Cannot be null because it is a C++ reference (&)."); + var __arg0 = _Right.__Instance; + global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C.cctorc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C((__Instance + __PointerAdjustment), __arg0); + return; + } + throw new ArgumentOutOfRangeException("_Elem, _Traits, _Alloc", string.Join(", ", new[] { typeof(_Elem).FullName, typeof(_Traits).FullName, typeof(_Alloc).FullName }), "global::Std.BasicString<_Elem, _Traits, _Alloc> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: , global::Std.Allocator>."); + } + public BasicString() { var ___Elem = typeof(_Elem); @@ -566,18 +619,6 @@ namespace Std Marshal.FreeHGlobal(__Instance); __Instance = IntPtr.Zero; } - - public global::Std.BasicString<_Elem, _Traits, _Alloc> Assign(global::Std.BasicString<_Elem, _Traits, _Alloc> _Right) - { - var ___Elem = typeof(_Elem); - var ___Traits = typeof(_Traits); - var ___Alloc = typeof(_Alloc); - if (___Elem.IsAssignableFrom(typeof(sbyte)) && ___Traits.IsAssignableFrom(typeof(global::Std.CharTraits)) && ___Alloc.IsAssignableFrom(typeof(global::Std.Allocator))) - { - throw new MissingMethodException("Method Assign ignored in specialization global::Std.BasicString, global::Std.Allocator>."); - } - throw new ArgumentOutOfRangeException("_Elem, _Traits, _Alloc", string.Join(", ", new[] { typeof(_Elem).FullName, typeof(_Traits).FullName, typeof(_Alloc).FullName }), "global::Std.BasicString<_Elem, _Traits, _Alloc> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: , global::Std.Allocator>."); - } } namespace StringVal @@ -621,7 +662,7 @@ namespace Std [SuppressUnmanagedCodeSecurity] [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, EntryPoint="?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@QEBD@Z")] - internal static extern global::System.IntPtr Assign(global::System.IntPtr __instance, [MarshalAs(UnmanagedType.LPStr)] string _Ptr); + internal static extern global::System.IntPtr Assign(global::System.IntPtr __instance, string _Ptr); [SuppressUnmanagedCodeSecurity] [DllImport("Std-symbols", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,