diff --git a/src/Parser/Comments.cpp b/src/Parser/Comments.cpp index 7b71f984..53cc4558 100644 --- a/src/Parser/Comments.cpp +++ b/src/Parser/Comments.cpp @@ -123,7 +123,8 @@ static CppSharp::AST::Comment^ ConvertCommentBlock(clang::comments::Comment* C) _Comment = PC; HandleBlockCommand(CK, PC); PC->Direction = ConvertParamPassDirection(CK->getDirection()); - PC->ParamIndex = CK->getParamIndex(); + if (CK->isParamIndexValid() && !CK->isVarArgParam()) + PC->ParamIndex = CK->getParamIndex(); break; } case Comment::TParamCommandCommentKind: