summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-09-11 13:47:37 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-09-11 13:47:37 (GMT)
commit8d1f5558f472c361113633d5d5aa78896764601c (patch)
treed7d0d1a202ed31ec9b6aa86714a29a2501e700cf
parent54a75b43f7ca1dc87c3bb924cbe788cc6c6b005c (diff)
parent8cabc84a0f7b741e84aabe45c97f7aeca0eb53e0 (diff)
downloadDoxygen-8d1f5558f472c361113633d5d5aa78896764601c.zip
Doxygen-8d1f5558f472c361113633d5d5aa78896764601c.tar.gz
Doxygen-8d1f5558f472c361113633d5d5aa78896764601c.tar.bz2
Merge branch 'feature/issue_8017' of https://github.com/albert-github/doxygen into albert-github-feature/issue_8017
-rw-r--r--src/scanner.l16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/scanner.l b/src/scanner.l
index e56f151..5aa7e53 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -4583,13 +4583,29 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
lineCount(yyscanner);
yyextra->current->argList.setTrailingReturnType(" -> ");
yyextra->current->args += " -> ";
+ yyextra->roundCount=0;
BEGIN(TrailingReturn);
}
<TrailingReturn>[{;] {
+ if (yyextra->roundCount!= 0) REJECT;
unput(*yytext);
BEGIN(FuncQual);
}
<TrailingReturn>. {
+ if (*yytext == '(') yyextra->roundCount++;
+ else if (*yytext == ')')
+ {
+ if (yyextra->roundCount)
+ {
+ yyextra->roundCount--;
+ }
+ else
+ {
+ warn(yyextra->yyFileName,yyextra->yyLineNr,
+ "Found ')' without opening '(' for '%s)...'",
+ yyextra->current->argList.trailingReturnType().data());
+ }
+ }
yyextra->current->argList.setTrailingReturnType(yyextra->current->argList.trailingReturnType()+yytext);
yyextra->current->args+=yytext;
}