diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-06-28 20:54:56 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-08-02 12:36:45 (GMT) |
commit | 2d35b9a7c0fe70fa894dc266dd0b5ddd54d4014e (patch) | |
tree | 7d8bd9213d79b6918a0442818bbcf45b27ed8fa1 /src/memberdef.cpp | |
parent | b850eb45e80b348cbe8629c354350b051f7ef2ec (diff) | |
download | Doxygen-2d35b9a7c0fe70fa894dc266dd0b5ddd54d4014e.zip Doxygen-2d35b9a7c0fe70fa894dc266dd0b5ddd54d4014e.tar.gz Doxygen-2d35b9a7c0fe70fa894dc266dd0b5ddd54d4014e.tar.bz2 |
Added lists for indices to template context
Diffstat (limited to 'src/memberdef.cpp')
-rw-r--r-- | src/memberdef.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/memberdef.cpp b/src/memberdef.cpp index bfa975a..a5be378 100644 --- a/src/memberdef.cpp +++ b/src/memberdef.cpp @@ -5080,4 +5080,28 @@ const ArgumentList *MemberDef::typeConstraints() const return m_impl->typeConstraints; } +bool MemberDef::isFriendToHide() const +{ + static bool hideFriendCompounds = Config_getBool("HIDE_FRIEND_COMPOUNDS"); + bool isFriendToHide = hideFriendCompounds && + (m_impl->type=="friend class" || + m_impl->type=="friend struct" || + m_impl->type=="friend union"); + return isFriendToHide; +} + +bool MemberDef::isNotFriend() const +{ + return !(isFriend() && isFriendToHide()); +} + +bool MemberDef::isFunctionOrSignalSlot() const +{ + return isFunction() || isSlot() || isSignal(); +} + +bool MemberDef::isRelatedOrFriend() const +{ + return isRelated() || isForeign() || isFriend() && !isFriendToHide(); +} |