summaryrefslogtreecommitdiffstats
path: root/qmake/library/qmakeparser.h
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2015-02-18 11:20:01 +0100
committerOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2015-02-25 13:54:58 +0000
commit73c84fb32bfb09a87d3a63b1f0c78d3f500ba20b (patch)
treea0e72c721949368bca160038ea37afb2ed44495a /qmake/library/qmakeparser.h
parent7dcc2b3246bba323e8da8d1af5a4f87e82c0e9e0 (diff)
be more strict about bogus operators
we now warn about the pointless ones, and error out in cases that already were semantically bogus. Change-Id: Ifd80014af0fc53e3cc42561c4270d1dca234568f Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'qmake/library/qmakeparser.h')
-rw-r--r--qmake/library/qmakeparser.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qmake/library/qmakeparser.h b/qmake/library/qmakeparser.h
index 09f8d1b7a7..66b26ac759 100644
--- a/qmake/library/qmakeparser.h
+++ b/qmake/library/qmakeparser.h
@@ -144,6 +144,9 @@ private:
const ushort *cur, const QString &in);
void finalizeCond(ushort *&tokPtr, ushort *uc, ushort *ptr, int wordCount);
void finalizeCall(ushort *&tokPtr, ushort *uc, ushort *ptr, int argc);
+ void warnOperator(const char *msg);
+ bool failOperator(const char *msg);
+ bool acceptColon(const char *msg);
void putOperator(ushort *&tokPtr);
void finalizeTest(ushort *&tokPtr);
void bogusTest(ushort *&tokPtr, const QString &msg);