Skip to content

Commit 5c2b305

Browse files
committed
Issue #10414 Report warning with wrong file and wrong line number
Analogous to the fix for `aqddtogroup` see @10416: As the `page` parts are joined together in one block the second block didn't know anymore where it came from originally which resulted in the wrong file name and line number. By adding some internal commands during processing this has been corrected.
1 parent 2c26afb commit 5c2b305

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/commentscan.l

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,6 +1433,8 @@ STopt [^\n@\\]*
14331433
unput_string(yytext,yyleng);
14341434
//if (*yytext=='\n') yyextra->lineNr++;
14351435
//addOutput(yyscanner,'\n');
1436+
addOutput(yyscanner," \\ifile \""+ yyextra->fileName);
1437+
addOutput(yyscanner,"\" \\ilinebr \\iline " + QCString().setNum(yyextra->lineNr));
14361438
BEGIN( Comment );
14371439
}
14381440
<PageDocArg2>{CMD}[<>] {

0 commit comments

Comments
 (0)