diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/definition.cpp | 15 | ||||
-rw-r--r-- | src/definition.h | 1 | ||||
-rw-r--r-- | src/filedef.cpp | 2 |
3 files changed, 17 insertions, 1 deletions
diff --git a/src/definition.cpp b/src/definition.cpp index c585301..7e6e8ec 100644 --- a/src/definition.cpp +++ b/src/definition.cpp @@ -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; diff --git a/src/definition.h b/src/definition.h index a7401ad..48c572d 100644 --- a/src/definition.h +++ b/src/definition.h @@ -257,6 +257,7 @@ class Definition : public DefinitionIntf SrcLangExt getLanguage() const; GroupList *partOfGroups() const; + bool isLinkableViaGroup() const; QList<ListItemInfo> *xrefListItems() const; diff --git a/src/filedef.cpp b/src/filedef.cpp index 96cfe9e..0a1e6e2 100644 --- a/src/filedef.cpp +++ b/src/filedef.cpp @@ -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( |