warn about missing names in expansions

Change-Id: Ic571837c56c725e332bf504c4b2dd2dde2ac32e2
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
Oswald Buddenhagen
2012-07-23 20:38:38 +02:00
parent 0a280ef390
commit f8b33bdd28

View File

@@ -507,6 +507,8 @@ bool QMakeParser::read(ProFile *pro, const QString &in, int line, SubGrammar gra
if (tok == TokVariable && c == '(') if (tok == TokVariable && c == '(')
tok = TokFuncName; tok = TokFuncName;
notfunc: notfunc:
if (ptr == xprPtr)
languageWarning(fL1S("Missing name in expansion"));
if (quote) if (quote)
tok |= TokQuoted; tok |= TokQuoted;
if (needSep) { if (needSep) {