【问题标题】:Doxygen php errorDoxygen php错误
【发布时间】:2011-05-26 13:18:15
【问题描述】:

我有一个我想要记录的 php (doxygen.php) 文件。问题是我在 linux 上运行doxygen doxygen.php 它不会生成任何东西...index.html 文件是空的。我明白了

Warning: ignoring unknown tag `php' at line 1, file doxygen.php
Warning: ignoring unknown tag `does' at line 4, file doxygen.php
Warning: ignoring unknown tag `nothing' at line 4, file doxygen.php
....

它似乎无法正确识别 cmets。我的 doxygen.php 文件有这个:

<?php


/* does nothing
 * @param teste
 * @return null
 */
function foo($foo) {
    echo 'hi'.$foo;
    return null;
}

?>

【问题讨论】:

  • 你运行的是什么版本的 doxygen?

标签: php doxygen


【解决方案1】:

使用 doxygen 时,您必须使用

关闭 cmets

/** ...*/

/*!...*/

查看 doxygen "documenting the code" 页面

【讨论】:

    【解决方案2】:

    试试

    /**
     * does nothing
     *
     * @param teste
     * @return null
     */
    

    【讨论】:

    • 必须是带有 doxygen 配置的东西。除了使用 /* 而不是 /** 你的语法看起来不错。
    【解决方案3】:

    您忘记包含文件数据。请改用此代码:

    /** * @文件 * 用于 doxygen 测试的测试文件 */ /** * 什么也没做 * * @param teste * @return 空 */ 函数 foo($foo) { 回声'嗨'.$foo; 返回空值; }

    它会起作用的。用我的 doxygen 对其进行了测试。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-09-12
      • 2013-01-31
      • 1970-01-01
      • 2014-12-22
      • 2013-12-01
      • 2012-12-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多