summaryrefslogtreecommitdiffstats
path: root/src/memberdef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/memberdef.cpp')
-rw-r--r--src/memberdef.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/memberdef.cpp b/src/memberdef.cpp
index a47e103..cde2c5a 100644
--- a/src/memberdef.cpp
+++ b/src/memberdef.cpp
@@ -2,7 +2,7 @@
*
*
*
- * Copyright (C) 1997-2003 by Dimitri van Heesch.
+ * Copyright (C) 1997-2004 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby
@@ -1113,7 +1113,17 @@ bool MemberDef::isDetailedSectionLinkable() const
//
bool inAnonymousScope = !briefDescription().isEmpty() && annUsed;
- return ((docFilter && staticFilter && privateFilter) || inAnonymousScope);
+ // hide friend (class|struct|union) member if HIDE_FRIEND_COMPOUNDS
+ // is true
+ bool friendCompoundFilter = !(Config_getBool("HIDE_FRIEND_COMPOUNDS") &&
+ isFriend() &&
+ (type=="friend class" ||
+ type=="friend struct" ||
+ type=="friend union"
+ )
+ );
+
+ return ((docFilter && staticFilter && privateFilter && friendCompoundFilter) || inAnonymousScope);
}
bool MemberDef::isDetailedSectionVisible(bool inGroup) const