Skip to content

Commit

Permalink
Issue #10414 Report warning with wrong file and wrong line number
Browse files Browse the repository at this point in the history
the `\iline` command gave a warning about:
```
warning: invalid argument for command '\iline'
```
  • Loading branch information
albert-github committed Nov 22, 2023
1 parent 5c2b305 commit de8b7f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commentscan.l
Expand Up @@ -1381,7 +1381,7 @@ STopt [^\n@\\]*
//if (*yytext=='\n') yyextra->lineNr++;
//addOutput(yyscanner,'\n');
addOutput(yyscanner," \\ifile \""+ yyextra->fileName);
addOutput(yyscanner,"\" \\ilinebr \\iline " + QCString().setNum(yyextra->lineNr));
addOutput(yyscanner,"\" \\ilinebr \\iline " + QCString().setNum(yyextra->lineNr) + " \\ilinebr ");
BEGIN( Comment );
}
<GroupDocArg2>. { // title (stored in type)
Expand Down Expand Up @@ -1434,7 +1434,7 @@ STopt [^\n@\\]*
//if (*yytext=='\n') yyextra->lineNr++;
//addOutput(yyscanner,'\n');
addOutput(yyscanner," \\ifile \""+ yyextra->fileName);
addOutput(yyscanner,"\" \\ilinebr \\iline " + QCString().setNum(yyextra->lineNr));
addOutput(yyscanner,"\" \\ilinebr \\iline " + QCString().setNum(yyextra->lineNr) + " \\ilinebr ");
BEGIN( Comment );
}
<PageDocArg2>{CMD}[<>] {
Expand Down

0 comments on commit de8b7f6

Please sign in to comment.