Skip to content

Commit 990d04d

Browse files
committed
Regenerate the parser bindings
Signed-off-by: Dimitar Dobrev <[email protected]>
1 parent a0da3b3 commit 990d04d

File tree

18 files changed

+2185
-902
lines changed

18 files changed

+2185
-902
lines changed

src/CppParser/Bindings/CLI/AST.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,8 @@ void CppSharp::Parser::AST::BlockCommandComment::Arguments::set(System::Collecti
669669
auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::BlockCommandComment::Argument>();
670670
for each(CppSharp::Parser::AST::BlockCommandComment::Argument^ _element in value)
671671
{
672+
if (ReferenceEquals(_element, nullptr))
673+
throw gcnew ::System::ArgumentNullException("_element", "Cannot be null because it is passed by value.");
672674
auto _marshalElement = *(::CppSharp::CppParser::AST::BlockCommandComment::Argument*)_element->NativePtr;
673675
_tmpvalue.push_back(_marshalElement);
674676
}
@@ -1145,6 +1147,8 @@ void CppSharp::Parser::AST::InlineCommandComment::Arguments::set(System::Collect
11451147
auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::InlineCommandComment::Argument>();
11461148
for each(CppSharp::Parser::AST::InlineCommandComment::Argument^ _element in value)
11471149
{
1150+
if (ReferenceEquals(_element, nullptr))
1151+
throw gcnew ::System::ArgumentNullException("_element", "Cannot be null because it is passed by value.");
11481152
auto _marshalElement = *(::CppSharp::CppParser::AST::InlineCommandComment::Argument*)_element->NativePtr;
11491153
_tmpvalue.push_back(_marshalElement);
11501154
}
@@ -1349,6 +1353,8 @@ void CppSharp::Parser::AST::HTMLStartTagComment::Attributes::set(System::Collect
13491353
auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute>();
13501354
for each(CppSharp::Parser::AST::HTMLStartTagComment::Attribute^ _element in value)
13511355
{
1356+
if (ReferenceEquals(_element, nullptr))
1357+
throw gcnew ::System::ArgumentNullException("_element", "Cannot be null because it is passed by value.");
13521358
auto _marshalElement = *(::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*)_element->NativePtr;
13531359
_tmpvalue.push_back(_marshalElement);
13541360
}

src/CppParser/Bindings/CLI/CppParser.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ void CppSharp::Parser::ParserResult::Diagnostics::set(System::Collections::Gener
738738
auto _tmpvalue = std::vector<::CppSharp::CppParser::ParserDiagnostic>();
739739
for each(CppSharp::Parser::ParserDiagnostic^ _element in value)
740740
{
741+
if (ReferenceEquals(_element, nullptr))
742+
throw gcnew ::System::ArgumentNullException("_element", "Cannot be null because it is passed by value.");
741743
auto _marshalElement = *(::CppSharp::CppParser::ParserDiagnostic*)_element->NativePtr;
742744
_tmpvalue.push_back(_marshalElement);
743745
}

src/CppParser/Bindings/CLI/Decl.cpp

+36
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::TypedefNameDecl::Qu
882882

883883
void CppSharp::Parser::AST::TypedefNameDecl::QualifiedType::set(CppSharp::Parser::AST::QualifiedType^ value)
884884
{
885+
if (ReferenceEquals(value, nullptr))
886+
throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value.");
885887
((::CppSharp::CppParser::AST::TypedefNameDecl*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr;
886888
}
887889

@@ -1419,6 +1421,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Parameter::Qualifie
14191421

14201422
void CppSharp::Parser::AST::Parameter::QualifiedType::set(CppSharp::Parser::AST::QualifiedType^ value)
14211423
{
1424+
if (ReferenceEquals(value, nullptr))
1425+
throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value.");
14221426
((::CppSharp::CppParser::AST::Parameter*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr;
14231427
}
14241428

@@ -1536,6 +1540,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Function::ReturnTyp
15361540

15371541
void CppSharp::Parser::AST::Function::ReturnType::set(CppSharp::Parser::AST::QualifiedType^ value)
15381542
{
1543+
if (ReferenceEquals(value, nullptr))
1544+
throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value.");
15391545
((::CppSharp::CppParser::AST::Function*)NativePtr)->returnType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr;
15401546
}
15411547

@@ -1738,6 +1744,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Function::Qualified
17381744

17391745
void CppSharp::Parser::AST::Function::QualifiedType::set(CppSharp::Parser::AST::QualifiedType^ value)
17401746
{
1747+
if (ReferenceEquals(value, nullptr))
1748+
throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value.");
17411749
((::CppSharp::CppParser::AST::Function*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr;
17421750
}
17431751

@@ -1891,6 +1899,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Method::ConversionT
18911899

18921900
void CppSharp::Parser::AST::Method::ConversionType::set(CppSharp::Parser::AST::QualifiedType^ value)
18931901
{
1902+
if (ReferenceEquals(value, nullptr))
1903+
throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value.");
18941904
((::CppSharp::CppParser::AST::Method*)NativePtr)->conversionType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr;
18951905
}
18961906

@@ -2166,6 +2176,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Variable::Qualified
21662176

21672177
void CppSharp::Parser::AST::Variable::QualifiedType::set(CppSharp::Parser::AST::QualifiedType^ value)
21682178
{
2179+
if (ReferenceEquals(value, nullptr))
2180+
throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value.");
21692181
((::CppSharp::CppParser::AST::Variable*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr;
21702182
}
21712183

@@ -2294,6 +2306,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Field::QualifiedTyp
22942306

22952307
void CppSharp::Parser::AST::Field::QualifiedType::set(CppSharp::Parser::AST::QualifiedType^ value)
22962308
{
2309+
if (ReferenceEquals(value, nullptr))
2310+
throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value.");
22972311
((::CppSharp::CppParser::AST::Field*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr;
22982312
}
22992313

@@ -2513,6 +2527,8 @@ void CppSharp::Parser::AST::VTableLayout::Components::set(System::Collections::G
25132527
auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::VTableComponent>();
25142528
for each(CppSharp::Parser::AST::VTableComponent^ _element in value)
25152529
{
2530+
if (ReferenceEquals(_element, nullptr))
2531+
throw gcnew ::System::ArgumentNullException("_element", "Cannot be null because it is passed by value.");
25162532
auto _marshalElement = *(::CppSharp::CppParser::AST::VTableComponent*)_element->NativePtr;
25172533
_tmpvalue.push_back(_marshalElement);
25182534
}
@@ -2603,6 +2619,8 @@ CppSharp::Parser::AST::VTableLayout^ CppSharp::Parser::AST::VFTableInfo::Layout:
26032619

26042620
void CppSharp::Parser::AST::VFTableInfo::Layout::set(CppSharp::Parser::AST::VTableLayout^ value)
26052621
{
2622+
if (ReferenceEquals(value, nullptr))
2623+
throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value.");
26062624
((::CppSharp::CppParser::AST::VFTableInfo*)NativePtr)->layout = *(::CppSharp::CppParser::AST::VTableLayout*)value->NativePtr;
26072625
}
26082626

@@ -2674,6 +2692,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::LayoutField::Qualif
26742692

26752693
void CppSharp::Parser::AST::LayoutField::QualifiedType::set(CppSharp::Parser::AST::QualifiedType^ value)
26762694
{
2695+
if (ReferenceEquals(value, nullptr))
2696+
throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value.");
26772697
((::CppSharp::CppParser::AST::LayoutField*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr;
26782698
}
26792699

@@ -2886,6 +2906,8 @@ void CppSharp::Parser::AST::ClassLayout::VFTables::set(System::Collections::Gene
28862906
auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::VFTableInfo>();
28872907
for each(CppSharp::Parser::AST::VFTableInfo^ _element in value)
28882908
{
2909+
if (ReferenceEquals(_element, nullptr))
2910+
throw gcnew ::System::ArgumentNullException("_element", "Cannot be null because it is passed by value.");
28892911
auto _marshalElement = *(::CppSharp::CppParser::AST::VFTableInfo*)_element->NativePtr;
28902912
_tmpvalue.push_back(_marshalElement);
28912913
}
@@ -2899,6 +2921,8 @@ CppSharp::Parser::AST::VTableLayout^ CppSharp::Parser::AST::ClassLayout::Layout:
28992921

29002922
void CppSharp::Parser::AST::ClassLayout::Layout::set(CppSharp::Parser::AST::VTableLayout^ value)
29012923
{
2924+
if (ReferenceEquals(value, nullptr))
2925+
throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value.");
29022926
((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->layout = *(::CppSharp::CppParser::AST::VTableLayout*)value->NativePtr;
29032927
}
29042928

@@ -2969,6 +2993,8 @@ void CppSharp::Parser::AST::ClassLayout::Fields::set(System::Collections::Generi
29692993
auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::LayoutField>();
29702994
for each(CppSharp::Parser::AST::LayoutField^ _element in value)
29712995
{
2996+
if (ReferenceEquals(_element, nullptr))
2997+
throw gcnew ::System::ArgumentNullException("_element", "Cannot be null because it is passed by value.");
29722998
auto _marshalElement = *(::CppSharp::CppParser::AST::LayoutField*)_element->NativePtr;
29732999
_tmpvalue.push_back(_marshalElement);
29743000
}
@@ -2992,6 +3018,8 @@ void CppSharp::Parser::AST::ClassLayout::Bases::set(System::Collections::Generic
29923018
auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::LayoutBase>();
29933019
for each(CppSharp::Parser::AST::LayoutBase^ _element in value)
29943020
{
3021+
if (ReferenceEquals(_element, nullptr))
3022+
throw gcnew ::System::ArgumentNullException("_element", "Cannot be null because it is passed by value.");
29953023
auto _marshalElement = *(::CppSharp::CppParser::AST::LayoutBase*)_element->NativePtr;
29963024
_tmpvalue.push_back(_marshalElement);
29973025
}
@@ -3690,6 +3718,8 @@ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::TypeTemplateParamet
36903718

36913719
void CppSharp::Parser::AST::TypeTemplateParameter::DefaultArgument::set(CppSharp::Parser::AST::QualifiedType^ value)
36923720
{
3721+
if (ReferenceEquals(value, nullptr))
3722+
throw gcnew ::System::ArgumentNullException("value", "Cannot be null because it is passed by value.");
36933723
((::CppSharp::CppParser::AST::TypeTemplateParameter*)NativePtr)->defaultArgument = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr;
36943724
}
36953725

@@ -3965,6 +3995,8 @@ void CppSharp::Parser::AST::ClassTemplateSpecialization::Arguments::set(System::
39653995
auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::TemplateArgument>();
39663996
for each(CppSharp::Parser::AST::TemplateArgument^ _element in value)
39673997
{
3998+
if (ReferenceEquals(_element, nullptr))
3999+
throw gcnew ::System::ArgumentNullException("_element", "Cannot be null because it is passed by value.");
39684000
auto _marshalElement = *(::CppSharp::CppParser::AST::TemplateArgument*)_element->NativePtr;
39694001
_tmpvalue.push_back(_marshalElement);
39704002
}
@@ -4205,6 +4237,8 @@ void CppSharp::Parser::AST::FunctionTemplateSpecialization::Arguments::set(Syste
42054237
auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::TemplateArgument>();
42064238
for each(CppSharp::Parser::AST::TemplateArgument^ _element in value)
42074239
{
4240+
if (ReferenceEquals(_element, nullptr))
4241+
throw gcnew ::System::ArgumentNullException("_element", "Cannot be null because it is passed by value.");
42084242
auto _marshalElement = *(::CppSharp::CppParser::AST::TemplateArgument*)_element->NativePtr;
42094243
_tmpvalue.push_back(_marshalElement);
42104244
}
@@ -4422,6 +4456,8 @@ void CppSharp::Parser::AST::VarTemplateSpecialization::Arguments::set(System::Co
44224456
auto _tmpvalue = std::vector<::CppSharp::CppParser::AST::TemplateArgument>();
44234457
for each(CppSharp::Parser::AST::TemplateArgument^ _element in value)
44244458
{
4459+
if (ReferenceEquals(_element, nullptr))
4460+
throw gcnew ::System::ArgumentNullException("_element", "Cannot be null because it is passed by value.");
44254461
auto _marshalElement = *(::CppSharp::CppParser::AST::TemplateArgument*)_element->NativePtr;
44264462
_tmpvalue.push_back(_marshalElement);
44274463
}

0 commit comments

Comments
 (0)