diff options
author | albert-github <albert.tests@gmail.com> | 2018-10-17 17:10:24 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-10-17 17:10:24 (GMT) |
commit | 0697535ad38ed122964c4673b102a8e30ad4369f (patch) | |
tree | fd730fd5ed48303aba42cf474c7a0ecb1a74d008 /src/util.cpp | |
parent | 2f50bc0bcc39cfb27537109b779d18d7389f81f1 (diff) | |
download | Doxygen-0697535ad38ed122964c4673b102a8e30ad4369f.zip Doxygen-0697535ad38ed122964c4673b102a8e30ad4369f.tar.gz Doxygen-0697535ad38ed122964c4673b102a8e30ad4369f.tar.bz2 |
Add commands to handle referenced by relation and references relation
Analogous to call graph and caller graph this patch provides an implementation for the referenced by relation and references relation.
Providing the commands:
- referencedbyrelation
- hidereferencedbyrelation
- referencesrelation
- hidereferencesrelation
Motivation is that some lists can get extremely large and also there is now more symmetry between the textual and graphical out.
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/util.cpp b/src/util.cpp index 7371026..afb9905 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -8505,12 +8505,9 @@ bool fileVisibleInIndex(FileDef *fd,bool &genSourceFile) void addDocCrossReference(MemberDef *src,MemberDef *dst) { - static bool referencedByRelation = Config_getBool(REFERENCED_BY_RELATION); - static bool referencesRelation = Config_getBool(REFERENCES_RELATION); - //printf("--> addDocCrossReference src=%s,dst=%s\n",src->name().data(),dst->name().data()); if (dst->isTypedef() || dst->isEnumerate()) return; // don't add types - if ((referencedByRelation || dst->hasCallerGraph()) && + if ((dst->hasReferencedByRelation() || dst->hasCallerGraph()) && src->showInCallGraph() ) { @@ -8526,7 +8523,7 @@ void addDocCrossReference(MemberDef *src,MemberDef *dst) mdDecl->addSourceReferencedBy(src); } } - if ((referencesRelation || src->hasCallGraph()) && + if ((src->hasReferencesRelation() || src->hasCallGraph()) && src->showInCallGraph() ) { |