[Doxygen-develop] Handling of #include directive broken
Brought to you by:
dimitri
From: Enrico S. <enr...@in...> - 2002-05-03 22:12:42
|
Hello, when having a directory tree like | . | |-- Doxyfile | `-- x | |-- 1.h | |-- 2.h | `-- test.cc with | $ cat x/test.cc | #include "1.h" | BAD | | $ cat x/1.h | #include "2.h" | | $ cat x/2.h | #define BAD GOOD | | $ cat Doxyfile | INPUT = x/test.cc | MACRO_EXPANSION = yes | QUIET = YES I get | $ doxygen -d Processor | 00002 BAD | 00003 Using gcc results in | $ gcc -E x/test.cc | # 1 "x/test.cc" | # 1 "<built-in>" | # 1 "<command line>" | # 1 "x/test.cc" | # 1 "x/1.h" 1 | # 1 "x/2.h" 1 | # 2 "x/1.h" 2 | # 2 "x/test.cc" 2 | GOOD Strace'ing doxygen shows that it searches at the wrong places for '2.h': | access("x/test.cc", R_OK) = 0 | open("/tmp/dox/x/test.cc", O_RDONLY) = 3 | access("/tmp/dox/x//1.h", F_OK) = 0 | open("/tmp/dox/x//1.h", O_RDONLY) = 4 | access("/tmp/dox/2.h", F_OK) = -1 ENOENT (No such file or directory) Enrico |