summaryrefslogtreecommitdiffstats
path: root/src/commentscan.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2018-11-04 15:51:32 (GMT)
committerGitHub <noreply@github.com>2018-11-04 15:51:32 (GMT)
commit9440d7ce0b31749b6bbb13e70e2f7ed501505c7e (patch)
treee76a2d523fcecdaf9d140d127fe513c453de7ebf /src/commentscan.l
parentd49052d8c214ec47a43e7be9ba563b24d748767f (diff)
parent6c0436303d76a3df4c323bf6ca1e5716b6027ec0 (diff)
downloadDoxygen-9440d7ce0b31749b6bbb13e70e2f7ed501505c7e.zip
Doxygen-9440d7ce0b31749b6bbb13e70e2f7ed501505c7e.tar.gz
Doxygen-9440d7ce0b31749b6bbb13e70e2f7ed501505c7e.tar.bz2
Merge pull request #6562 from albert-github/feature/bug_references
Add commands to handle referenced by relation and references relation
Diffstat (limited to 'src/commentscan.l')
-rw-r--r--src/commentscan.l32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/commentscan.l b/src/commentscan.l
index 1d84917..e317a86 100644
--- a/src/commentscan.l
+++ b/src/commentscan.l
@@ -107,6 +107,10 @@ static bool handleCallgraph(const QCString &, const QCStringList &);
static bool handleHideCallgraph(const QCString &, const QCStringList &);
static bool handleCallergraph(const QCString &, const QCStringList &);
static bool handleHideCallergraph(const QCString &, const QCStringList &);
+static bool handleReferencedByRelation(const QCString &, const QCStringList &);
+static bool handleHideReferencedByRelation(const QCString &, const QCStringList &);
+static bool handleReferencesRelation(const QCString &, const QCStringList &);
+static bool handleHideReferencesRelation(const QCString &, const QCStringList &);
static bool handleInternal(const QCString &, const QCStringList &);
static bool handleLineBr(const QCString &, const QCStringList &);
static bool handleStatic(const QCString &, const QCStringList &);
@@ -214,6 +218,10 @@ static DocCmdMap docCmdMap[] =
{ "hidecallgraph", &handleHideCallgraph, FALSE },
{ "callergraph", &handleCallergraph, FALSE },
{ "hidecallergraph", &handleHideCallergraph, FALSE },
+ { "showrefby", &handleReferencedByRelation, FALSE },
+ { "hiderefby", &handleHideReferencedByRelation, FALSE },
+ { "showrefs", &handleReferencesRelation, FALSE },
+ { "hiderefs", &handleHideReferencesRelation, FALSE },
{ "internal", &handleInternal, TRUE },
{ "_linebr", &handleLineBr, FALSE },
{ "static", &handleStatic, FALSE },
@@ -2835,6 +2843,30 @@ static bool handleHideCallergraph(const QCString &, const QCStringList &)
return FALSE;
}
+static bool handleReferencedByRelation(const QCString &, const QCStringList &)
+{
+ current->referencedByRelation = TRUE; // ON
+ return FALSE;
+}
+
+static bool handleHideReferencedByRelation(const QCString &, const QCStringList &)
+{
+ current->referencedByRelation = FALSE; // OFF
+ return FALSE;
+}
+
+static bool handleReferencesRelation(const QCString &, const QCStringList &)
+{
+ current->referencesRelation = TRUE; // ON
+ return FALSE;
+}
+
+static bool handleHideReferencesRelation(const QCString &, const QCStringList &)
+{
+ current->referencesRelation = FALSE; // OFF
+ return FALSE;
+}
+
static bool handleInternal(const QCString &, const QCStringList &)
{
if (!Config_getBool(INTERNAL_DOCS))