在解析PHP源代码时,oxygen会处理"$"作为类型而不是变量标记


While parsing PHP source code, Doxygen treats "$" as a type rather than the variable token

例如:

/** '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,因为在相反的情况下,它不提取这些函数

相关文章: