例如:
/** 'file test.php
* this is test.php file
*/
/**
* This is foo
* @param $myPar
*/
function foo($myPar) {
}
氧气产生如下:
<td class="paramtype">
$
</td>
<td class="paramname">
<em> myPar </em>
</td>
为什么?Doxygen似乎使用了另一种解析器,而不是PHP解析器。
似乎你发现了Doxygen PHP解析器的错误。我对XML和HTML输出都进行了相同的尝试——在这两种情况下,参数类型都被确定为错误。
<?php
/**
* This is foo
* @param $myPar
*/
function foo($myPar) {
}
function bar($myPar) {
}
function hi(ArrayIterator $myPar) {
}
我的版本:
ustimenko@home:/tmp/doxy$ doxygen --version
1.7.6.1
还有ETRACT_ALL = YES,因为在相反的情况下,它不提取这些函数