summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2018-07-07 13:06:10 (GMT)
committerGitHub <noreply@github.com>2018-07-07 13:06:10 (GMT)
commit1c0ef39d5e3fbe17fa89edb9c22bc88855179b1b (patch)
treed48794f491d673ec630de3915eb65299a78e6694 /src
parent75890e4e0271db6c1953ea888f827b31bbb64bdf (diff)
parente8661c343a4e8ebeaf82b2f926d68167e41be284 (diff)
downloadDoxygen-1c0ef39d5e3fbe17fa89edb9c22bc88855179b1b.zip
Doxygen-1c0ef39d5e3fbe17fa89edb9c22bc88855179b1b.tar.gz
Doxygen-1c0ef39d5e3fbe17fa89edb9c22bc88855179b1b.tar.bz2
Merge pull request #767 from albert-github/feature/bug_124252
Bug 124252 - A function cannot be documented as related to two classes.
Diffstat (limited to 'src')
-rw-r--r--src/commentscan.l16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/commentscan.l b/src/commentscan.l
index 55c55a7..5ae20dc 100644
--- a/src/commentscan.l
+++ b/src/commentscan.l
@@ -2544,12 +2544,23 @@ static bool handleEndParBlock(const QCString &)
static bool handleRelated(const QCString &)
{
+ if (!current->relates.isEmpty())
+ {
+ warn(yyFileName,yyLineNr,
+ "found multiple \\relates, \\relatesalso or \\memberof commands in a comment block, using last definition");
+ }
+ current->relatesType = Simple;
BEGIN(RelatesParam1);
return FALSE;
}
static bool handleRelatedAlso(const QCString &)
{
+ if (!current->relates.isEmpty())
+ {
+ warn(yyFileName,yyLineNr,
+ "found multiple \\relates, \\relatesalso or \\memberof commands in a comment block, using last definition");
+ }
current->relatesType = Duplicate;
BEGIN(RelatesParam1);
return FALSE;
@@ -2557,6 +2568,11 @@ static bool handleRelatedAlso(const QCString &)
static bool handleMemberOf(const QCString &)
{
+ if (!current->relates.isEmpty())
+ {
+ warn(yyFileName,yyLineNr,
+ "found multiple \\relates, \\relatesalso or \\memberof commands in a comment block, using last definition");
+ }
current->relatesType = MemberOf;
BEGIN(RelatesParam1);
return FALSE;