summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-08-06 12:20:10 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-08-06 12:20:10 (GMT)
commit74f8a88bcf8b2c86b7205bee1ae5ee9455b2b323 (patch)
treec5d37b0b86596fb36bddff8c07b381c1f9a2a0c7 /src/scanner.l
parent386ec3da46ab3a66a9fa7c960450630ef1af1b94 (diff)
downloadDoxygen-74f8a88bcf8b2c86b7205bee1ae5ee9455b2b323.zip
Doxygen-74f8a88bcf8b2c86b7205bee1ae5ee9455b2b323.tar.gz
Doxygen-74f8a88bcf8b2c86b7205bee1ae5ee9455b2b323.tar.bz2
Fixed issue that could cause wrong line numbers
Diffstat (limited to 'src/scanner.l')
-rw-r--r--src/scanner.l5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/scanner.l b/src/scanner.l
index e63b8a0..7c710fa 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -5629,6 +5629,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
}
}
<CompoundName,ClassVar>{B}*"{"{B}* {
+ yyextra->current->program.resize(0);
yyextra->current->fileName = yyextra->yyFileName ;
yyextra->current->bodyLine = yyextra->yyLineNr;
yyextra->current->bodyColumn = yyextra->yyColNr;
@@ -5880,7 +5881,9 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
BEGIN(BasesProt);
}
}
-<Bases>{B}*"{"{B}* { yyextra->current->fileName = yyextra->yyFileName ;
+<Bases>{B}*"{"{B}* {
+ yyextra->current->program.resize(0);
+ yyextra->current->fileName = yyextra->yyFileName ;
yyextra->current->bodyLine = yyextra->yyLineNr;
yyextra->current->bodyColumn = yyextra->yyColNr;
yyextra->current->name = removeRedundantWhiteSpace(yyextra->current->name);