Skip to content

Commit d698b3e

Browse files
committed
Fix leaking the memory of an entire Clang AST
Signed-off-by: Dimitar Dobrev <[email protected]>
1 parent 275f377 commit d698b3e

File tree

20 files changed

+638
-774
lines changed

20 files changed

+638
-774
lines changed

src/CppParser/Bindings/CLI/AST.cpp

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ CppSharp::Parser::AST::Comment::operator CppSharp::Parser::AST::Comment^(CppShar
211211
auto __arg0 = (::CppSharp::CppParser::AST::CommentKind)kind;
212212
auto __ret = (::CppSharp::CppParser::AST::Comment) __arg0;
213213
auto ____ret = new ::CppSharp::CppParser::AST::Comment(__ret);
214-
return (____ret == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Comment((::CppSharp::CppParser::AST::Comment*)____ret, true);
214+
return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Comment((::CppSharp::CppParser::AST::Comment*)____ret, true);
215215
}
216216

217217
System::IntPtr CppSharp::Parser::AST::Comment::__Instance::get()
@@ -282,7 +282,7 @@ CppSharp::Parser::AST::BlockContentComment::operator CppSharp::Parser::AST::Bloc
282282
auto __arg0 = (::CppSharp::CppParser::AST::CommentKind)Kind;
283283
auto __ret = (::CppSharp::CppParser::AST::BlockContentComment) __arg0;
284284
auto ____ret = new ::CppSharp::CppParser::AST::BlockContentComment(__ret);
285-
return (____ret == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::BlockContentComment((::CppSharp::CppParser::AST::BlockContentComment*)____ret, true);
285+
return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BlockContentComment((::CppSharp::CppParser::AST::BlockContentComment*)____ret, true);
286286
}
287287

288288
CppSharp::Parser::AST::FullComment::FullComment(::CppSharp::CppParser::AST::FullComment* native)
@@ -320,7 +320,7 @@ CppSharp::Parser::AST::BlockContentComment^ CppSharp::Parser::AST::FullComment::
320320
{
321321
auto __ret = ((::CppSharp::CppParser::AST::FullComment*)NativePtr)->getBlocks(i);
322322
if (__ret == nullptr) return nullptr;
323-
return (__ret == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::BlockContentComment((::CppSharp::CppParser::AST::BlockContentComment*)__ret);
323+
return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BlockContentComment((::CppSharp::CppParser::AST::BlockContentComment*)__ret);
324324
}
325325

326326
void CppSharp::Parser::AST::FullComment::AddBlocks(CppSharp::Parser::AST::BlockContentComment^ s)
@@ -351,7 +351,7 @@ System::Collections::Generic::List<CppSharp::Parser::AST::BlockContentComment^>^
351351
auto _tmp__Blocks = gcnew System::Collections::Generic::List<CppSharp::Parser::AST::BlockContentComment^>();
352352
for(auto _element : ((::CppSharp::CppParser::AST::FullComment*)NativePtr)->Blocks)
353353
{
354-
auto _marshalElement = (_element == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::BlockContentComment((::CppSharp::CppParser::AST::BlockContentComment*)_element);
354+
auto _marshalElement = (_element == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BlockContentComment((::CppSharp::CppParser::AST::BlockContentComment*)_element);
355355
_tmp__Blocks->Add(_marshalElement);
356356
}
357357
return _tmp__Blocks;
@@ -422,7 +422,7 @@ CppSharp::Parser::AST::InlineContentComment::operator CppSharp::Parser::AST::Inl
422422
auto __arg0 = (::CppSharp::CppParser::AST::CommentKind)Kind;
423423
auto __ret = (::CppSharp::CppParser::AST::InlineContentComment) __arg0;
424424
auto ____ret = new ::CppSharp::CppParser::AST::InlineContentComment(__ret);
425-
return (____ret == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::InlineContentComment((::CppSharp::CppParser::AST::InlineContentComment*)____ret, true);
425+
return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::InlineContentComment((::CppSharp::CppParser::AST::InlineContentComment*)____ret, true);
426426
}
427427

428428
bool CppSharp::Parser::AST::InlineContentComment::HasTrailingNewline::get()
@@ -470,7 +470,7 @@ CppSharp::Parser::AST::InlineContentComment^ CppSharp::Parser::AST::ParagraphCom
470470
{
471471
auto __ret = ((::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->getContent(i);
472472
if (__ret == nullptr) return nullptr;
473-
return (__ret == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::InlineContentComment((::CppSharp::CppParser::AST::InlineContentComment*)__ret);
473+
return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::InlineContentComment((::CppSharp::CppParser::AST::InlineContentComment*)__ret);
474474
}
475475

476476
void CppSharp::Parser::AST::ParagraphComment::AddContent(CppSharp::Parser::AST::InlineContentComment^ s)
@@ -511,7 +511,7 @@ System::Collections::Generic::List<CppSharp::Parser::AST::InlineContentComment^>
511511
auto _tmp__Content = gcnew System::Collections::Generic::List<CppSharp::Parser::AST::InlineContentComment^>();
512512
for(auto _element : ((::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->Content)
513513
{
514-
auto _marshalElement = (_element == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::InlineContentComment((::CppSharp::CppParser::AST::InlineContentComment*)_element);
514+
auto _marshalElement = (_element == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::InlineContentComment((::CppSharp::CppParser::AST::InlineContentComment*)_element);
515515
_tmp__Content->Add(_marshalElement);
516516
}
517517
return _tmp__Content;
@@ -633,7 +633,7 @@ CppSharp::Parser::AST::BlockCommandComment::Argument^ CppSharp::Parser::AST::Blo
633633
{
634634
auto __ret = ((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->getArguments(i);
635635
auto ____ret = new ::CppSharp::CppParser::AST::BlockCommandComment::Argument(__ret);
636-
return (____ret == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::BlockCommandComment::Argument((::CppSharp::CppParser::AST::BlockCommandComment::Argument*)____ret, true);
636+
return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BlockCommandComment::Argument((::CppSharp::CppParser::AST::BlockCommandComment::Argument*)____ret, true);
637637
}
638638

639639
void CppSharp::Parser::AST::BlockCommandComment::AddArguments(CppSharp::Parser::AST::BlockCommandComment::Argument^ s)
@@ -664,7 +664,7 @@ CppSharp::Parser::AST::BlockCommandComment::operator CppSharp::Parser::AST::Bloc
664664
auto __arg0 = (::CppSharp::CppParser::AST::CommentKind)Kind;
665665
auto __ret = (::CppSharp::CppParser::AST::BlockCommandComment) __arg0;
666666
auto ____ret = new ::CppSharp::CppParser::AST::BlockCommandComment(__ret);
667-
return (____ret == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::BlockCommandComment((::CppSharp::CppParser::AST::BlockCommandComment*)____ret, true);
667+
return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BlockCommandComment((::CppSharp::CppParser::AST::BlockCommandComment*)____ret, true);
668668
}
669669

670670
unsigned int CppSharp::Parser::AST::BlockCommandComment::CommandId::get()
@@ -679,7 +679,7 @@ void CppSharp::Parser::AST::BlockCommandComment::CommandId::set(unsigned int val
679679

680680
CppSharp::Parser::AST::ParagraphComment^ CppSharp::Parser::AST::BlockCommandComment::ParagraphComment::get()
681681
{
682-
return (((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->paragraphComment == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::ParagraphComment((::CppSharp::CppParser::AST::ParagraphComment*)((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->paragraphComment);
682+
return (((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->paragraphComment == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ParagraphComment((::CppSharp::CppParser::AST::ParagraphComment*)((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->paragraphComment);
683683
}
684684

685685
void CppSharp::Parser::AST::BlockCommandComment::ParagraphComment::set(CppSharp::Parser::AST::ParagraphComment^ value)
@@ -693,7 +693,7 @@ System::Collections::Generic::List<CppSharp::Parser::AST::BlockCommandComment::A
693693
for(auto _element : ((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->Arguments)
694694
{
695695
auto ___element = new ::CppSharp::CppParser::AST::BlockCommandComment::Argument(_element);
696-
auto _marshalElement = (___element == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::BlockCommandComment::Argument((::CppSharp::CppParser::AST::BlockCommandComment::Argument*)___element, true);
696+
auto _marshalElement = (___element == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BlockCommandComment::Argument((::CppSharp::CppParser::AST::BlockCommandComment::Argument*)___element, true);
697697
_tmp__Arguments->Add(_marshalElement);
698698
}
699699
return _tmp__Arguments;
@@ -952,7 +952,7 @@ CppSharp::Parser::AST::VerbatimBlockLineComment^ CppSharp::Parser::AST::Verbatim
952952
{
953953
auto __ret = ((::CppSharp::CppParser::AST::VerbatimBlockComment*)NativePtr)->getLines(i);
954954
if (__ret == nullptr) return nullptr;
955-
return (__ret == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::VerbatimBlockLineComment((::CppSharp::CppParser::AST::VerbatimBlockLineComment*)__ret);
955+
return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VerbatimBlockLineComment((::CppSharp::CppParser::AST::VerbatimBlockLineComment*)__ret);
956956
}
957957

958958
void CppSharp::Parser::AST::VerbatimBlockComment::AddLines(CppSharp::Parser::AST::VerbatimBlockLineComment^ s)
@@ -983,7 +983,7 @@ System::Collections::Generic::List<CppSharp::Parser::AST::VerbatimBlockLineComme
983983
auto _tmp__Lines = gcnew System::Collections::Generic::List<CppSharp::Parser::AST::VerbatimBlockLineComment^>();
984984
for(auto _element : ((::CppSharp::CppParser::AST::VerbatimBlockComment*)NativePtr)->Lines)
985985
{
986-
auto _marshalElement = (_element == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::VerbatimBlockLineComment((::CppSharp::CppParser::AST::VerbatimBlockLineComment*)_element);
986+
auto _marshalElement = (_element == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VerbatimBlockLineComment((::CppSharp::CppParser::AST::VerbatimBlockLineComment*)_element);
987987
_tmp__Lines->Add(_marshalElement);
988988
}
989989
return _tmp__Lines;
@@ -1148,7 +1148,7 @@ CppSharp::Parser::AST::InlineCommandComment::Argument^ CppSharp::Parser::AST::In
11481148
{
11491149
auto __ret = ((::CppSharp::CppParser::AST::InlineCommandComment*)NativePtr)->getArguments(i);
11501150
auto ____ret = new ::CppSharp::CppParser::AST::InlineCommandComment::Argument(__ret);
1151-
return (____ret == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::InlineCommandComment::Argument((::CppSharp::CppParser::AST::InlineCommandComment::Argument*)____ret, true);
1151+
return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::InlineCommandComment::Argument((::CppSharp::CppParser::AST::InlineCommandComment::Argument*)____ret, true);
11521152
}
11531153

11541154
void CppSharp::Parser::AST::InlineCommandComment::AddArguments(CppSharp::Parser::AST::InlineCommandComment::Argument^ s)
@@ -1200,7 +1200,7 @@ System::Collections::Generic::List<CppSharp::Parser::AST::InlineCommandComment::
12001200
for(auto _element : ((::CppSharp::CppParser::AST::InlineCommandComment*)NativePtr)->Arguments)
12011201
{
12021202
auto ___element = new ::CppSharp::CppParser::AST::InlineCommandComment::Argument(_element);
1203-
auto _marshalElement = (___element == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::InlineCommandComment::Argument((::CppSharp::CppParser::AST::InlineCommandComment::Argument*)___element, true);
1203+
auto _marshalElement = (___element == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::InlineCommandComment::Argument((::CppSharp::CppParser::AST::InlineCommandComment::Argument*)___element, true);
12041204
_tmp__Arguments->Add(_marshalElement);
12051205
}
12061206
return _tmp__Arguments;
@@ -1273,7 +1273,7 @@ CppSharp::Parser::AST::HTMLTagComment::operator CppSharp::Parser::AST::HTMLTagCo
12731273
auto __arg0 = (::CppSharp::CppParser::AST::CommentKind)Kind;
12741274
auto __ret = (::CppSharp::CppParser::AST::HTMLTagComment) __arg0;
12751275
auto ____ret = new ::CppSharp::CppParser::AST::HTMLTagComment(__ret);
1276-
return (____ret == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::HTMLTagComment((::CppSharp::CppParser::AST::HTMLTagComment*)____ret, true);
1276+
return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::HTMLTagComment((::CppSharp::CppParser::AST::HTMLTagComment*)____ret, true);
12771277
}
12781278

12791279
CppSharp::Parser::AST::HTMLStartTagComment::Attribute::Attribute(::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute* native)
@@ -1377,7 +1377,7 @@ CppSharp::Parser::AST::HTMLStartTagComment::Attribute^ CppSharp::Parser::AST::HT
13771377
{
13781378
auto __ret = ((::CppSharp::CppParser::AST::HTMLStartTagComment*)NativePtr)->getAttributes(i);
13791379
auto ____ret = new ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute(__ret);
1380-
return (____ret == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::HTMLStartTagComment::Attribute((::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*)____ret, true);
1380+
return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::HTMLStartTagComment::Attribute((::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*)____ret, true);
13811381
}
13821382

13831383
void CppSharp::Parser::AST::HTMLStartTagComment::AddAttributes(CppSharp::Parser::AST::HTMLStartTagComment::Attribute^ s)
@@ -1419,7 +1419,7 @@ System::Collections::Generic::List<CppSharp::Parser::AST::HTMLStartTagComment::A
14191419
for(auto _element : ((::CppSharp::CppParser::AST::HTMLStartTagComment*)NativePtr)->Attributes)
14201420
{
14211421
auto ___element = new ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute(_element);
1422-
auto _marshalElement = (___element == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::HTMLStartTagComment::Attribute((::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*)___element, true);
1422+
auto _marshalElement = (___element == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::HTMLStartTagComment::Attribute((::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*)___element, true);
14231423
_tmp__Attributes->Add(_marshalElement);
14241424
}
14251425
return _tmp__Attributes;
@@ -1624,7 +1624,7 @@ void CppSharp::Parser::AST::RawComment::BriefText::set(System::String^ value)
16241624

16251625
CppSharp::Parser::AST::FullComment^ CppSharp::Parser::AST::RawComment::FullCommentBlock::get()
16261626
{
1627-
return (((::CppSharp::CppParser::AST::RawComment*)NativePtr)->fullCommentBlock == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::FullComment((::CppSharp::CppParser::AST::FullComment*)((::CppSharp::CppParser::AST::RawComment*)NativePtr)->fullCommentBlock);
1627+
return (((::CppSharp::CppParser::AST::RawComment*)NativePtr)->fullCommentBlock == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::FullComment((::CppSharp::CppParser::AST::FullComment*)((::CppSharp::CppParser::AST::RawComment*)NativePtr)->fullCommentBlock);
16281628
}
16291629

16301630
void CppSharp::Parser::AST::RawComment::FullCommentBlock::set(CppSharp::Parser::AST::FullComment^ value)

src/CppParser/Bindings/CLI/CppParser.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ void CppSharp::Parser::CppParserOptions::SupportedStdTypes::set(System::Collecti
398398

399399
CppSharp::Parser::AST::ASTContext^ CppSharp::Parser::CppParserOptions::ASTContext::get()
400400
{
401-
return (((::CppSharp::CppParser::CppParserOptions*)NativePtr)->ASTContext == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::ASTContext((::CppSharp::CppParser::AST::ASTContext*)((::CppSharp::CppParser::CppParserOptions*)NativePtr)->ASTContext);
401+
return (((::CppSharp::CppParser::CppParserOptions*)NativePtr)->ASTContext == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ASTContext((::CppSharp::CppParser::AST::ASTContext*)((::CppSharp::CppParser::CppParserOptions*)NativePtr)->ASTContext);
402402
}
403403

404404
void CppSharp::Parser::CppParserOptions::ASTContext::set(CppSharp::Parser::AST::ASTContext^ value)
@@ -696,7 +696,7 @@ CppSharp::Parser::ParserDiagnostic^ CppSharp::Parser::ParserResult::GetDiagnosti
696696
{
697697
auto __ret = ((::CppSharp::CppParser::ParserResult*)NativePtr)->getDiagnostics(i);
698698
auto ____ret = new ::CppSharp::CppParser::ParserDiagnostic(__ret);
699-
return (____ret == nullptr) ? nullptr : gcnew CppSharp::Parser::ParserDiagnostic((::CppSharp::CppParser::ParserDiagnostic*)____ret, true);
699+
return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserDiagnostic((::CppSharp::CppParser::ParserDiagnostic*)____ret, true);
700700
}
701701

702702
void CppSharp::Parser::ParserResult::AddDiagnostics(CppSharp::Parser::ParserDiagnostic^ s)
@@ -738,7 +738,7 @@ System::Collections::Generic::List<CppSharp::Parser::ParserDiagnostic^>^ CppShar
738738
for(auto _element : ((::CppSharp::CppParser::ParserResult*)NativePtr)->Diagnostics)
739739
{
740740
auto ___element = new ::CppSharp::CppParser::ParserDiagnostic(_element);
741-
auto _marshalElement = (___element == nullptr) ? nullptr : gcnew CppSharp::Parser::ParserDiagnostic((::CppSharp::CppParser::ParserDiagnostic*)___element, true);
741+
auto _marshalElement = (___element == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserDiagnostic((::CppSharp::CppParser::ParserDiagnostic*)___element, true);
742742
_tmp__Diagnostics->Add(_marshalElement);
743743
}
744744
return _tmp__Diagnostics;
@@ -759,7 +759,7 @@ void CppSharp::Parser::ParserResult::Diagnostics::set(System::Collections::Gener
759759

760760
CppSharp::Parser::AST::NativeLibrary^ CppSharp::Parser::ParserResult::Library::get()
761761
{
762-
return (((::CppSharp::CppParser::ParserResult*)NativePtr)->library == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::NativeLibrary((::CppSharp::CppParser::AST::NativeLibrary*)((::CppSharp::CppParser::ParserResult*)NativePtr)->library);
762+
return (((::CppSharp::CppParser::ParserResult*)NativePtr)->library == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::NativeLibrary((::CppSharp::CppParser::AST::NativeLibrary*)((::CppSharp::CppParser::ParserResult*)NativePtr)->library);
763763
}
764764

765765
void CppSharp::Parser::ParserResult::Library::set(CppSharp::Parser::AST::NativeLibrary^ value)
@@ -769,7 +769,7 @@ void CppSharp::Parser::ParserResult::Library::set(CppSharp::Parser::AST::NativeL
769769

770770
CppSharp::Parser::ParserTargetInfo^ CppSharp::Parser::ParserResult::TargetInfo::get()
771771
{
772-
return (((::CppSharp::CppParser::ParserResult*)NativePtr)->targetInfo == nullptr) ? nullptr : gcnew CppSharp::Parser::ParserTargetInfo((::CppSharp::CppParser::ParserTargetInfo*)((::CppSharp::CppParser::ParserResult*)NativePtr)->targetInfo);
772+
return (((::CppSharp::CppParser::ParserResult*)NativePtr)->targetInfo == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserTargetInfo((::CppSharp::CppParser::ParserTargetInfo*)((::CppSharp::CppParser::ParserResult*)NativePtr)->targetInfo);
773773
}
774774

775775
void CppSharp::Parser::ParserResult::TargetInfo::set(CppSharp::Parser::ParserTargetInfo^ value)
@@ -804,20 +804,20 @@ CppSharp::Parser::ClangParser::~ClangParser()
804804
delete NativePtr;
805805
}
806806

807-
CppSharp::Parser::ParserResult^ CppSharp::Parser::ClangParser::ParseHeader(CppSharp::Parser::CppParserOptions^ Opts)
807+
CppSharp::Parser::ParserResult^ CppSharp::Parser::ClangParser::ParseHeaders(CppSharp::Parser::CppParserOptions^ Opts)
808808
{
809809
auto __arg0 = (::CppSharp::CppParser::CppParserOptions*)Opts->NativePtr;
810-
auto __ret = ::CppSharp::CppParser::ClangParser::ParseHeader(__arg0);
810+
auto __ret = ::CppSharp::CppParser::ClangParser::ParseHeaders(__arg0);
811811
if (__ret == nullptr) return nullptr;
812-
return (__ret == nullptr) ? nullptr : gcnew CppSharp::Parser::ParserResult((::CppSharp::CppParser::ParserResult*)__ret);
812+
return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserResult((::CppSharp::CppParser::ParserResult*)__ret);
813813
}
814814

815815
CppSharp::Parser::ParserResult^ CppSharp::Parser::ClangParser::ParseLibrary(CppSharp::Parser::CppParserOptions^ Opts)
816816
{
817817
auto __arg0 = (::CppSharp::CppParser::CppParserOptions*)Opts->NativePtr;
818818
auto __ret = ::CppSharp::CppParser::ClangParser::ParseLibrary(__arg0);
819819
if (__ret == nullptr) return nullptr;
820-
return (__ret == nullptr) ? nullptr : gcnew CppSharp::Parser::ParserResult((::CppSharp::CppParser::ParserResult*)__ret);
820+
return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserResult((::CppSharp::CppParser::ParserResult*)__ret);
821821
}
822822

823823
CppSharp::Parser::ClangParser::ClangParser()

src/CppParser/Bindings/CLI/CppParser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ namespace CppSharp
429429

430430
~ClangParser();
431431

432-
static CppSharp::Parser::ParserResult^ ParseHeader(CppSharp::Parser::CppParserOptions^ Opts);
432+
static CppSharp::Parser::ParserResult^ ParseHeaders(CppSharp::Parser::CppParserOptions^ Opts);
433433

434434
static CppSharp::Parser::ParserResult^ ParseLibrary(CppSharp::Parser::CppParserOptions^ Opts);
435435

0 commit comments

Comments
 (0)