Skip to content

Commit de8b7f6

Browse files
committed
Issue #10414 Report warning with wrong file and wrong line number
the `\iline` command gave a warning about: ``` warning: invalid argument for command '\iline' ```
1 parent 5c2b305 commit de8b7f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commentscan.l

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ STopt [^\n@\\]*
13811381
//if (*yytext=='\n') yyextra->lineNr++;
13821382
//addOutput(yyscanner,'\n');
13831383
addOutput(yyscanner," \\ifile \""+ yyextra->fileName);
1384-
addOutput(yyscanner,"\" \\ilinebr \\iline " + QCString().setNum(yyextra->lineNr));
1384+
addOutput(yyscanner,"\" \\ilinebr \\iline " + QCString().setNum(yyextra->lineNr) + " \\ilinebr ");
13851385
BEGIN( Comment );
13861386
}
13871387
<GroupDocArg2>. { // title (stored in type)
@@ -1434,7 +1434,7 @@ STopt [^\n@\\]*
14341434
//if (*yytext=='\n') yyextra->lineNr++;
14351435
//addOutput(yyscanner,'\n');
14361436
addOutput(yyscanner," \\ifile \""+ yyextra->fileName);
1437-
addOutput(yyscanner,"\" \\ilinebr \\iline " + QCString().setNum(yyextra->lineNr));
1437+
addOutput(yyscanner,"\" \\ilinebr \\iline " + QCString().setNum(yyextra->lineNr) + " \\ilinebr ");
14381438
BEGIN( Comment );
14391439
}
14401440
<PageDocArg2>{CMD}[<>] {

0 commit comments

Comments
 (0)