Skip to content

Commit

Permalink
Bug 770747 - Broken links in HTML output with SHOW_FILES=NO
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri van Heesch committed Sep 2, 2016
1 parent d1dec80 commit d2eeb76
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions src/definition.cpp
Expand Up @@ -1876,6 +1876,21 @@ GroupList *Definition::partOfGroups() const
return m_impl->partOfGroups;
}

bool Definition::isLinkableViaGroup() const
{
GroupList *gl = partOfGroups();
if (gl)
{
GroupListIterator gli(*gl);
GroupDef *gd;
for (gli.toFirst();(gd=gli.current());++gli)
{
if (gd->isLinkable()) return TRUE;
}
}
return FALSE;
}

Definition *Definition::getOuterScope() const
{
return m_impl->outerScope;
Expand Down
1 change: 1 addition & 0 deletions src/definition.h
Expand Up @@ -257,6 +257,7 @@ class Definition : public DefinitionIntf
SrcLangExt getLanguage() const;

GroupList *partOfGroups() const;
bool isLinkableViaGroup() const;

QList<ListItemInfo> *xrefListItems() const;

Expand Down
2 changes: 1 addition & 1 deletion src/filedef.cpp
Expand Up @@ -1888,7 +1888,7 @@ void FileDef::writeMemberDocumentation(OutputList &ol,MemberListType lt,const QC
bool FileDef::isLinkableInProject() const
{
static bool showFiles = Config_getBool(SHOW_FILES);
return hasDocumentation() && !isReference() && showFiles;
return hasDocumentation() && !isReference() && (showFiles || isLinkableViaGroup());
}

static void getAllIncludeFilesRecursively(
Expand Down

0 comments on commit d2eeb76

Please sign in to comment.