diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2004-01-05 19:00:26 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2004-01-05 19:00:26 (GMT) |
commit | ee63f0e064142addc300e0411b141d2697b73500 (patch) | |
tree | 278be3215f40b4fffddab1ec6dc2b8d47da895ac /src/index.cpp | |
parent | 4369f8dfd78c7d6666a604026017cfe6e4c9fbc4 (diff) | |
download | Doxygen-ee63f0e064142addc300e0411b141d2697b73500.zip Doxygen-ee63f0e064142addc300e0411b141d2697b73500.tar.gz Doxygen-ee63f0e064142addc300e0411b141d2697b73500.tar.bz2 |
Release-1.3.5-20040105
Diffstat (limited to 'src/index.cpp')
-rw-r--r-- | src/index.cpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/index.cpp b/src/index.cpp index 831512b..9a4966b 100644 --- a/src/index.cpp +++ b/src/index.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 @@ -1629,11 +1629,15 @@ void writeMemberList(OutputList &ol,bool useSections,ClassMemberHighlight filter while (md && !found) { ClassDef *cd; + bool isFriendToHide = Config_getBool("HIDE_FRIEND_COMPOUNDS") && + (QCString(md->typeString())=="friend class" || + QCString(md->typeString())=="friend struct" || + QCString(md->typeString())=="friend union"); if ( md->isLinkableInProject() && (cd=md->getClassDef()) && cd->isLinkableInProject() && cd->templateMaster()==0 && - ( filter==CMHL_All || + ( filter==CMHL_All && !(md->isFriend() && isFriendToHide) || (filter==CMHL_Functions && (md->isFunction() || md->isSlot() || md->isSignal())) || (filter==CMHL_Variables && md->isVariable()) || (filter==CMHL_Typedefs && md->isTypedef()) || @@ -1641,7 +1645,7 @@ void writeMemberList(OutputList &ol,bool useSections,ClassMemberHighlight filter (filter==CMHL_EnumValues && md->isEnumValue()) || (filter==CMHL_Properties && md->isProperty()) || (filter==CMHL_Events && md->isEvent()) || - (filter==CMHL_Related && (md->isRelated() || md->isFriend())) + (filter==CMHL_Related && (md->isRelated() || (md->isFriend() && !isFriendToHide))) ) ) { @@ -1722,11 +1726,15 @@ int countClassMembers(int filter) ClassDef *cd; while (md && !found) { + bool isFriendToHide = Config_getBool("HIDE_FRIEND_COMPOUNDS") && + (QCString(md->typeString())=="friend class" || + QCString(md->typeString())=="friend struct" || + QCString(md->typeString())=="friend union"); if ( md->isLinkableInProject() && (cd=md->getClassDef()) && cd->isLinkableInProject() && - ( filter==CMHL_All || + ( filter==CMHL_All && !(md->isFriend() && isFriendToHide) || (filter==CMHL_Functions && (md->isFunction() || md->isSlot() || md->isSignal())) || (filter==CMHL_Variables && md->isVariable()) || (filter==CMHL_Typedefs && md->isTypedef()) || @@ -1734,7 +1742,7 @@ int countClassMembers(int filter) (filter==CMHL_EnumValues && md->isEnumValue()) || (filter==CMHL_Properties && md->isProperty()) || (filter==CMHL_Events && md->isEvent()) || - (filter==CMHL_Related && (md->isRelated() || md->isFriend())) + (filter==CMHL_Related && (md->isRelated() || (md->isFriend() && !isFriendToHide))) ) ) { |