Skip to content

Commit f94a2f3

Browse files
committed
issue #7934: include dependency graph: The boxes of files shows the name of the included file not its own filename
1 parent e20debc commit f94a2f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pre.l

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3359,9 +3359,9 @@ void Preprocessor::processFile(const char *fileName,BufStr &input,BufStr &output
33593359
{
33603360
inc->fromFileDef->addIncludeDependency(inc->toFileDef,inc->includeName,inc->local,inc->imported);
33613361
}
3362-
if (inc->toFileDef)
3362+
if (inc->toFileDef && inc->fromFileDef)
33633363
{
3364-
inc->toFileDef->addIncludedByDependency(inc->fromFileDef,inc->includeName,inc->local,inc->imported);
3364+
inc->toFileDef->addIncludedByDependency(inc->fromFileDef,inc->fromFileDef->docName(),inc->local,inc->imported);
33653365
}
33663366
}
33673367
// add the macro definition for this file to the global map

0 commit comments

Comments
 (0)