Browse Source

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

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

1
src/Parser/Comments.cpp

@ -123,6 +123,7 @@ static CppSharp::AST::Comment^ ConvertCommentBlock(clang::comments::Comment* C) @@ -123,6 +123,7 @@ static CppSharp::AST::Comment^ ConvertCommentBlock(clang::comments::Comment* C)
_Comment = PC;
HandleBlockCommand(CK, PC);
PC->Direction = ConvertParamPassDirection(CK->getDirection());
if (CK->isParamIndexValid() && !CK->isVarArgParam())
PC->ParamIndex = CK->getParamIndex();
break;
}

Loading…
Cancel
Save