summaryrefslogtreecommitdiffstats
path: root/src/dirdef.cpp
diff options
context:
space:
mode:
authorChristoph Lipka <c-lipka@users.noreply.github.com>2018-04-14 09:37:58 (GMT)
committerChristoph Lipka <c-lipka@users.noreply.github.com>2018-04-14 09:37:58 (GMT)
commit5d79d65df3b66554c8e9630fd3bea322c3e36f0d (patch)
treea513bb92582b1c06f995a95ab484481c24269b29 /src/dirdef.cpp
parent7e2fcd305c8c9377aa958a3d812cc31bc81c0e32 (diff)
downloadDoxygen-5d79d65df3b66554c8e9630fd3bea322c3e36f0d.zip
Doxygen-5d79d65df3b66554c8e9630fd3bea322c3e36f0d.tar.gz
Doxygen-5d79d65df3b66554c8e9630fd3bea322c3e36f0d.tar.bz2
Include "empty" directories in the documentation if they contain a `.dox` file (or similar) documenting the directory itself.
Diffstat (limited to 'src/dirdef.cpp')
-rw-r--r--src/dirdef.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dirdef.cpp b/src/dirdef.cpp
index b247ba7..6631ed7 100644
--- a/src/dirdef.cpp
+++ b/src/dirdef.cpp
@@ -930,14 +930,14 @@ void buildDirectories()
for (;(fd=fni.current());++fni)
{
//printf("buildDirectories %s\n",fd->name().data());
- if (fd->getReference().isEmpty() && !fd->isDocumentationFile())
+ if (fd->getReference().isEmpty())
{
DirDef *dir;
if ((dir=Doxygen::directories->find(fd->getPath()))==0) // new directory
{
dir = DirDef::mergeDirectoryInTree(fd->getPath());
}
- if (dir) dir->addFile(fd);
+ if (dir && !fd->isDocumentationFile()) dir->addFile(fd);
}
else
{