diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2018-07-07 13:06:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-07 13:06:10 (GMT) |
commit | 1c0ef39d5e3fbe17fa89edb9c22bc88855179b1b (patch) | |
tree | d48794f491d673ec630de3915eb65299a78e6694 /src | |
parent | 75890e4e0271db6c1953ea888f827b31bbb64bdf (diff) | |
parent | e8661c343a4e8ebeaf82b2f926d68167e41be284 (diff) | |
download | Doxygen-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.l | 16 |
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; |