summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/code.l')
-rw-r--r--src/code.l10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/code.l b/src/code.l
index 82f807e..b69f216 100644
--- a/src/code.l
+++ b/src/code.l
@@ -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