【发布时间】:2017-03-14 11:29:33
【问题描述】:
请不要介意以下最小示例的奇怪之处(我必须将其放大很多才能证明我这样做的原因):
文件 test.cpp:
#include "a.h"
int main() {
return 0;
}
文件 a.h:
namespace N { // without namespace all is well!
#include "b.h"
}
文件 b.h:
/// \file
#ifndef GUARD
#define GUARD
struct A {};
#define CMD 5 // without this, all is well!
#endif
Doxygen 1.8.11 抱怨:
warning: Member GUARD (macro definition) of file a.h is not documented.
第一个有趣的事情是警告提到了a.h。第二个是如果删除了任何注释行,警告就会消失。这是怎么回事?
【问题讨论】:
-
a.h没有包括警卫? -
@old_mountain 仅用于示例的最小化。
标签: c++ doxygen include-guards