Skip to content

Commit 4729e92

Browse files
committed
Issue #10414 Report warning with wrong file and wrong line number
As the `addtogroup` parts are joined together in one block the second block didn't know anymore wheer it came from originally which resulted in the wrong file name and line number. By adding some internal commands dureng provessing this has been corrected.
1 parent e29c4a5 commit 4729e92

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
@@ -1380,6 +1380,8 @@ STopt [^\n@\\]*
13801380
unput_string(yytext,yyleng);
13811381
//if (*yytext=='\n') yyextra->lineNr++;
13821382
//addOutput(yyscanner,'\n');
1383+
addOutput(yyscanner," \\ifile \""+ yyextra->fileName);
1384+
addOutput(yyscanner,"\" \\ilinebr \\iline " + QCString().setNum(yyextra->lineNr));
13831385
BEGIN( Comment );
13841386
}
13851387
<GroupDocArg2>. { // title (stored in type)

0 commit comments

Comments
 (0)