diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/doxygen.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp index 2900f49..ed189fb 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -766,6 +766,16 @@ static void buildFileList(Entry *root) { bool ambig; FileDef *fd=findFileDef(Doxygen::inputNameDict,root->name,ambig); + if (!fd || ambig) + { + int save_ambig = ambig; + // use the directory of the file to see if the described file is in the same + // directory as the describing file. + QCString fn = root->fileName; + int newIndex=fn.findRev('/'); + fd=findFileDef(Doxygen::inputNameDict,fn.left(newIndex) + "/" + root->name,ambig); + if (!fd) ambig = save_ambig; + } //printf("**************** root->name=%s fd=%p\n",root->name.data(),fd); if (fd && !ambig) { |