在解析PHP源代码时,Doxygen将“$”视为一种类型而不是变量令牌

时间:2013-03-25 13:54:19

标签: php doxygen

例如:

/** \file test.php
 * this is test.php file
 */

/** 
 * This is foo
 * @param $myPar
 */
function foo($myPar) {

}

Doxygen产生类似的东西:

<td class="paramtype">
 $
</td>

<td class="paramname">
<em> myPar </em>
</td>

为什么呢?似乎Doxygen正在使用另一个解析器而不是PHP。

1 个答案:

答案 0 :(得分:0)

看来,好像你在Doxygen PHP解析器中发现了bug。我尝试使用XML和HTML输出 - 在两种情况下,param类型都被确定为错误。

<?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,因为相反的情况下它不会提取这些功能。