[Doxygen-develop] Open namespace-blocks in included files ignored
Brought to you by:
dimitri
From: Enrico S. <enr...@in...> - 2002-05-03 22:28:55
|
Hello, when having a directory containing | Doxyfile ns-close.h ns-open.h test.cc with | $ cat ns-open.h | namespace Bar { | | $ cat ns-close.h | } | | $ cat test.cc | #include "ns-open.h" | /// A foo-class | class Foo {}; | #include "ns-close.h" | | $ cat Doxyfile | INPUT = test.cc the doxygen preprocessor ignores the opened namespace in 'ns-open.h': | $ doxygen -d Preprocessor | ... | Reading input files... | Preprocessing /tmp/dox1/test.cc... | #include ns-open.h: parsing... | #include ns-close.h: parsing... | Preprocessor output (size: 34 bytes): | --------- | 00001 | 00002 /// A foo-class | 00003 class Foo {}; | 00004 | 00005 | --------- | Read 56 bytes Looking at the generated documentation verifies that this class is seen as 'Foo' only but not as 'Bar::Foo'. Using the gcc preprocessor results in: | $ cpp -E test.cc | # 1 "test.cc" | # 1 "<built-in>" | # 1 "<command line>" | # 1 "test.cc" | # 1 "ns-open.h" 1 | namespace Bar { | # 2 "test.cc" 2 | | class Foo {}; | # 1 "ns-close.h" 1 | } | # 5 "test.cc" 2 Enrico |