Skip to content

Commit

Permalink
issue doxygen#10937 unexpected token TK_COMMAND_BS as the argument of…
Browse files Browse the repository at this point in the history
… `\ifile`

In case a reference for `\copy...` is coming from a tag file there is no information present and this was not reported.
  • Loading branch information
albert-github committed Jun 13, 2024
1 parent d51b6df commit d09998b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/docparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1846,7 +1846,14 @@ QCString DocParser::processCopyDoc(const char *data,size_t &len)
const Definition *def = nullptr;
QCString doc,brief;
//printf("resolving docs='%s'\n",qPrint(id));
if (findDocsForMemberOrCompound(id,&doc,&brief,&def))
bool found = findDocsForMemberOrCompound(id,&doc,&brief,&def);
if (found && def->isReference())
{
warn_doc_error(context.fileName,tokenizer.getLineNr(),
"@copy%s or @copydoc target '%s' found but is from a tag file, skipped", isBrief?"brief":"details",
qPrint(id));
}
else if (found)
{
//printf("found it def=%p brief='%s' doc='%s' isBrief=%d\n",def,qPrint(brief),qPrint(doc),isBrief);
auto it = std::find(context.copyStack.begin(),context.copyStack.end(),def);
Expand Down

0 comments on commit d09998b

Please sign in to comment.