diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2010-12-24 16:12:24 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2010-12-24 16:12:24 (GMT) |
commit | 48f4fd9c2d9ba8b374e3c052f888df9bc220df92 (patch) | |
tree | 2e3f5d0757e53645fc902d0a87aa44dfd31d2d4d /src/code.l | |
parent | dd7602fdd31d8f3e0f88be553da084a1e3fdec45 (diff) | |
download | Doxygen-48f4fd9c2d9ba8b374e3c052f888df9bc220df92.zip Doxygen-48f4fd9c2d9ba8b374e3c052f888df9bc220df92.tar.gz Doxygen-48f4fd9c2d9ba8b374e3c052f888df9bc220df92.tar.bz2 |
Release-1.7.2-20101224
Diffstat (limited to 'src/code.l')
-rw-r--r-- | src/code.l | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1890,8 +1890,14 @@ OPERATOR {ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP} bool ambig; bool found=FALSE; FileDef *fd=0; - //printf("looking for include %s\n",yytext); - if ((fd=findFileDef(Doxygen::inputNameDict,yytext,ambig)) && + QCString absPath = yytext; + if (g_sourceFileDef && QDir::isRelativePath(absPath)) + { + absPath = QDir::cleanDirPath(g_sourceFileDef->getPath()+"/"+absPath); + } + + //printf("looking for include %s -> %s\n",yytext,absPath.data()); + if ((fd=findFileDef(Doxygen::inputNameDict,absPath,ambig)) && fd->isLinkable()) { if (ambig) // multiple input files match the name |