0

这是我的演示项目结构

Demo
│   Doxyfile
│   hello.h
│
├───doc
└───lib
    └───include
            bye.h

这是你好和再见的文件

/**
 * @file
 * @author My Self
 * @date 9 Sep 2012
 * @brief File containing example of doxygen usage for quick reference.
 *
 * Here typically goes a more extensive explanation of what the header
 * defines. Doxygens tags are words preceeded by either a backslash @\
 * or by an at symbol @@.
 */

#ifndef HELLO_H
#define HELLO_H

/**
 * Bye Function
 * @returns 0;
 */
int hello();

#endif /* HELLO_H */

/**
 * @file
 * @author My Self
 * @date 9 Sep 2012
 * @brief File containing example of doxygen usage for quick reference.
 *
 * Here typically goes a more extensive explanation of what the header
 * defines. Doxygens tags are words preceeded by either a backslash @\
 * or by an at symbol @@.
 */

#ifndef BYE_H
#define BYE_H

/**
 * Bye Function
 * @returns 0;
 */
int bye();

#endif /* BYE_H */

Doxygen 只记录 hello.h 而不是 bye.h 这是我的doxyfile

这是 doxygen 日志

Doxygen version used: 1.8.19 (21742756bdcc961f1542d168e64e17ee30694b62)
Searching for include files...
Searching for example files...
Searching for images...
Searching for dot files...
Searching for msc files...
Searching for dia files...
Searching for files to exclude
Searching INPUT for files to process...
Searching for files in directory P:/TEMP/CoreProgramming/CProjects/Demo
Reading and parsing tag files
Parsing files
Preprocessing P:/TEMP/CoreProgramming/CProjects/Demo/hello.h...
Parsing file P:/TEMP/CoreProgramming/CProjects/Demo/hello.h...
Building macro definition list...
Building group list...
Building directory list...
Building namespace list...
Building file list...
Building class list...
Computing nesting relations for classes...
Associating documentation with classes...
Building example list...
Searching for enumerations...
Searching for documented typedefs...
Searching for members imported via using declarations...
Searching for included using directives...
Searching for documented variables...
Building interface member list...
Building member list...
Searching for friends...
Searching for documented defines...
Computing class inheritance relations...
Computing class usage relations...
Flushing cached template relations that have become invalid...
Computing class relations...
Add enum values to enums...
Searching for member function documentation...
Creating members for template instances...
Building page list...
Search for main page...
Computing page relations...
Determining the scope of groups...
Sorting lists...
Determining which enums are documented
Computing member relations...
Building full member lists recursively...
Adding members to member groups.
Computing member references...
Inheriting documentation...
Generating disk names...
Adding source references...
Adding xrefitems...
Sorting member lists...
Setting anonymous enum type...
Computing dependencies between directories...
Generating citations page...
Counting members...
Counting data structures...
Resolving user defined references...
Finding anchors and sections in the documentation...
Transferring function references...
Combining using relations...
Adding members to index pages...
Correcting members for VHDL...
Generating style sheet...
Generating search indices...
Generating example documentation...
Generating file sources...
Generating code for file hello.h...
Generating file documentation...
Generating docs for file hello.h...
Generating page documentation...
Generating group documentation...
Generating class documentation...
Generating namespace index...
Generating graph info page...
Generating directory documentation...
Generating index page...
Generating page index...
Generating module index...
Generating namespace index...
Generating namespace member index...
Generating annotated compound index...
Generating alphabetical compound index...
Generating hierarchical class index...
Generating member index...
Generating file index...
Generating file member index...
Generating example index...
finalizing index lists...
writing tag file...
Running plantuml with JAVA...
lookup cache used 1/65536 hits=1 misses=1
finished...
*** Doxygen has finished

我如何记录 bye.h?

我检查了扫描递归,优化 C,提取所有和源浏览器选项,似乎没有任何工作,doxygen 甚至没有查看 lib 文件夹。

4

1 回答 1

0

感谢albertKarsten Koop帮助我。

似乎这是 Doxywizard 中的一个未解决问题。在 github 上关注这里。当使用标准输入作为 doxygen 配置设置的输入时,只有 doxywizard 受影响的版本是 1.8.19 和 doxygen 的命令行版本 1.8.19(即doxygen -)。

并且根据线程,唯一的生存工具是命令行。

最简单的方法是使用 Doxywizard 生成 Doxyfile。然后使用命令行 doxygen 工具和 Doxyfile 作为参数来生成文档。在此之前,在 windows PATH 变量中添加 doxygen 路径(默认为 C:\Program Files\doxygen\bin)。

于 2020-08-12T16:31:49.877 回答