Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在为名称中带有 # 的文件生成文档时遇到问题。IE :
Filename ab#cd.h starts with line: /** @file ab#cd.h some description */
生成的 Doxygen HTML 中缺少此描述。此外,所有链接都是错误的,但它们已由将 # 交换为 %23 的附加脚本修复。我正在考虑另一个用于在生成前后重命名文件名的脚本,但也许有可能以其他方式处理这个问题?
为什么 # char 会影响 Doxygen 文档的生成?
文件名中的哈希是问题的根源,但在您的示例中,您可以简单地编写
/** @file * some description */
不需要文件名,描述应该放在下一行。
Doxygen 使用 # 作为链接。我相信你可以用 \ 来逃避 #,但我并不肯定。