summaryrefslogtreecommitdiff
path: root/src/libs/qmljs/qmljscheck.cpp
diff options
context:
space:
mode:
authorMarco Benelli <marco.benelli@qt.io>2018-02-27 13:13:51 +0100
committerMarco Benelli <marco.benelli@qt.io>2018-02-27 15:17:44 +0000
commit2acb365dac0b2fc20993a0244466f8abb0ff2221 (patch)
tree62edf04de802b9a580fb23b1c34cc3f094b2e521 /src/libs/qmljs/qmljscheck.cpp
parent0474216e2ffa72cc67fe17964466b967de1c5be9 (diff)
downloadqt-creator-2acb365dac0b2fc20993a0244466f8abb0ff2221.tar.gz
qmljs: relax checks for qbs files
Types information for qbs is more limited that qml; this causes qtcreator to raise false positives. This patch relax the checks and provide some type information needed by qbs files generated by the wizards. Task-number: QTCREATORBUG-19757 Change-Id: I07a1dd9d8fedaf4c5c751c2f00643f15ae39127a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/libs/qmljs/qmljscheck.cpp')
-rw-r--r--src/libs/qmljs/qmljscheck.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libs/qmljs/qmljscheck.cpp b/src/libs/qmljs/qmljscheck.cpp
index 42558f65a4..5b184d37b0 100644
--- a/src/libs/qmljs/qmljscheck.cpp
+++ b/src/libs/qmljs/qmljscheck.cpp
@@ -855,6 +855,10 @@ static bool checkTopLevelBindingForParentReference(ExpressionStatement *expStmt,
void Check::visitQmlObject(Node *ast, UiQualifiedId *typeId,
UiObjectInitializer *initializer)
{
+ // TODO: currently Qbs checks are not working properly
+ if (_doc->language() == Dialect::QmlQbs)
+ return;
+
// Don't do type checks if it's a grouped property binding.
// For instance: anchors { ... }
if (_doc->bind()->isGroupedPropertyBinding(ast)) {