Browse Source

Do not try to get parameter comment indexes for invalid params.

pull/34/merge
triton 12 years ago
parent
commit
9ffe62f2ef
  1. 3
      src/Parser/Comments.cpp

3
src/Parser/Comments.cpp

@ -123,7 +123,8 @@ static CppSharp::AST::Comment^ ConvertCommentBlock(clang::comments::Comment* C) @@ -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:

Loading…
Cancel
Save