Skip to content

Commit b50ba46

Browse files
committed
bug_771452 Warnings show wrong filename when same addtogroup name used in multiple files
Positional commands added at to of command block as otherwise when adding extra blocks the wrong line might be used
1 parent f8035f7 commit b50ba46

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/definition.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,17 +405,18 @@ void DefinitionImpl::_setDocumentation(const QCString &d,const QCString &docFile
405405
p->details = std::make_optional<DocInfo>();
406406
}
407407
DocInfo &details = p->details.value();
408+
QCString docPre = " \\ifile \"" + docFile + "\" \\iline " + std::to_string(docLine) + " ";
408409
if (details.doc.isEmpty()) // fresh detailed description
409410
{
410-
details.doc = doc;
411+
details.doc = docPre + doc;
411412
}
412413
else if (atTop) // another detailed description, append it to the start
413414
{
414-
details.doc = doc+"\n\n"+details.doc;
415+
details.doc = docPre + doc+"\n\n"+details.doc;
415416
}
416417
else // another detailed description, append it to the end
417418
{
418-
details.doc += "\n\n"+doc;
419+
details.doc += "\n\n" + docPre + doc;
419420
}
420421
if (docLine!=-1) // store location if valid
421422
{

0 commit comments

Comments
 (0)