From e5c141db6c33357fd68f6afcfd829d3fb52bd360 Mon Sep 17 00:00:00 2001 From: triton Date: Tue, 23 Jul 2013 22:53:31 +0100 Subject: [PATCH] Fixed the loop increment when parsing comment blocks. --- src/Parser/Comments.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Parser/Comments.cpp b/src/Parser/Comments.cpp index b01fdb51..e0b3c0da 100644 --- a/src/Parser/Comments.cpp +++ b/src/Parser/Comments.cpp @@ -87,7 +87,7 @@ static void HandleBlockCommand(const clang::comments::BlockCommandComment *CK, using namespace clix; BC->CommandId = CK->getCommandID(); - for (unsigned I = 0, E = CK->getNumArgs(); I != E; ++E) + for (unsigned I = 0, E = CK->getNumArgs(); I != E; ++I) { auto Arg = CppSharp::AST::BlockCommandComment::Argument(); Arg.Text = marshalString(CK->getArgText(I)); @@ -221,7 +221,7 @@ static CppSharp::AST::Comment^ ConvertCommentBlock(clang::comments::Comment* C) auto IC = gcnew InlineCommandComment(); _Comment = IC; IC->Kind = ConvertRenderKind(CK->getRenderKind()); - for (unsigned I = 0, E = CK->getNumArgs(); I != E; ++E) + for (unsigned I = 0, E = CK->getNumArgs(); I != E; ++I) { auto Arg = CppSharp::AST::InlineCommandComment::Argument(); Arg.Text = marshalString(CK->getArgText(I));