aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2020-07-15 13:03:28 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2020-07-17 14:40:08 +0000
commitdf0ffd8bb864049b5f25f283906c5900dd9acaed (patch)
tree0dbe29485cbea0523ba39e2673c76debbbae0a42 /src/libs
parent536dd779fca8503864bc64ffb8af74993a9af5d2 (diff)
CPlusPlus: Fix handling incomplete macro invocations
It looks very much as though the original author simply forgot to add that return statement. Fixes: QTCREATORBUG-23881 Change-Id: Ie93d2451bf1b491d01137285f983d657133c81c3 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/libs')
-rw-r--r--src/libs/cplusplus/pp-engine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/cplusplus/pp-engine.cpp b/src/libs/cplusplus/pp-engine.cpp
index 107e2ed4b7b..6ce879ea53c 100644
--- a/src/libs/cplusplus/pp-engine.cpp
+++ b/src/libs/cplusplus/pp-engine.cpp
@@ -1557,7 +1557,8 @@ bool Preprocessor::collectActualArguments(PPToken *tk, QVector<QVector<PPToken>
}
if (!tk->is(T_RPAREN)) {
- //###TODO: else error message
+ return false;
+ //###TODO: error message
}
return true;
}