5
請不要介意下面的小例子的陌生感Doxygen的要求(我會讓它更大的證明,爲什麼我做的事情這樣):,一個包括後衛被記錄
檔測試。 CPP:
#include "a.h"
int main() {
return 0;
}
文件啊:
namespace N { // without namespace all is well!
#include "b.h"
}
文件BH:
/// \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
。第二個是如果任何一條評論行被刪除,警告消失。這裏發生了什麼?
'啊'沒有包括守衛? –
@old_mountain僅用於示例的最小化。 – AlwaysLearning