aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2020-06-14 19:39:37 +0200
committerIvan Komissarov <ABBAPOH@gmail.com>2020-10-28 09:36:20 +0000
commitd2c0d37e421552dc86419651bb33ff64dda6283a (patch)
tree4f9c8a452e732d417dd6526b606324525560e22d /share
parent99d52feb0b90097457c71324801352f6f844ed13 (diff)
Implement missing check for allowed values in PropertyOptions
========== Performance data for Resolving ========== Old instruction count: 10195378481 New instruction count: 10238464294 Relative change: 0 % [ChangeLog] Qbs now checks string and stringList values according to the allowedValues property in PropertyOptions Change-Id: Ide88987c74b35f4172ffaf71aacd991536131ee5 Reviewed-by: Richard Weickelt <richard@weickelt.de> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'share')
-rw-r--r--share/qbs/modules/cpp/CppModule.qbs2
1 files changed, 0 insertions, 2 deletions
diff --git a/share/qbs/modules/cpp/CppModule.qbs b/share/qbs/modules/cpp/CppModule.qbs
index b2897c30c..ce672b8e7 100644
--- a/share/qbs/modules/cpp/CppModule.qbs
+++ b/share/qbs/modules/cpp/CppModule.qbs
@@ -314,14 +314,12 @@ Module {
property stringList cLanguageVersion
PropertyOptions {
name: "cLanguageVersion"
- allowedValues: ["c89", "c99", "c11"]
description: "The version of the C standard with which the code must comply."
}
property stringList cxxLanguageVersion
PropertyOptions {
name: "cxxLanguageVersion"
- allowedValues: ["c++98", "c++11", "c++14", "c++17"]
description: "The version of the C++ standard with which the code must comply."
}