summaryrefslogtreecommitdiffstats
path: root/src/sqlcode.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/sqlcode.l')
-rw-r--r--src/sqlcode.l5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sqlcode.l b/src/sqlcode.l
index 58d8481..1ca9204 100644
--- a/src/sqlcode.l
+++ b/src/sqlcode.l
@@ -395,9 +395,6 @@ void SQLCodeParser::resetCodeParserState()
yyextra->currentMemberDef = 0;
}
-
-//---------------------------------------------------------------------------------
-
void SQLCodeParser::parseCode(CodeOutputInterface &codeOutIntf,
const char *scopeName,
const QCString &input,
@@ -417,6 +414,8 @@ void SQLCodeParser::parseCode(CodeOutputInterface &codeOutIntf,
yyscan_t yyscanner = p->yyscanner;
struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
+ if (input.isEmpty()) return;
+
printlex(yy_flex_debug, true, __FILE__, fileDef ? fileDef->fileName().data(): NULL);
yyextra->code = &codeOutIntf;