Merge "Merge remote-tracking branch 'origin/4.5' into 4.6" into 4.6

This commit is contained in:
Eike Ziller
2018-01-22 13:17:10 +00:00
committed by The Qt Project
9 changed files with 1812 additions and 1803 deletions

View File

@@ -22,10 +22,10 @@ Product {
Depends { name: product.name + " dev headers"; required: false } Depends { name: product.name + " dev headers"; required: false }
Depends { name: "Qt.core"; versionAtLeast: "5.6.2" } Depends { name: "Qt.core"; versionAtLeast: "5.6.2" }
Properties { // TODO: Should fall back to what came from Qt.core for Qt < 5.7, but we cannot express that
condition: Utilities.versionCompare(Qt.core.version, "5.7") < 0 // atm. Conditionally pulling in a module that sets the property is also not possible,
// because conflicting scalar values would be reported (QBS-1225 would fix that).
cpp.minimumMacosVersion: project.minimumMacosVersion cpp.minimumMacosVersion: project.minimumMacosVersion
}
Properties { Properties {
condition: qbs.toolchain.contains("gcc") && !qbs.toolchain.contains("clang") condition: qbs.toolchain.contains("gcc") && !qbs.toolchain.contains("clang")

View File

@@ -29,7 +29,7 @@ function isSuitableLLVMConfig(llvmConfigCandidate, qtcFunctions)
return false; return false;
} }
function llvmConfig(qbs, qtcFunctions) function llvmConfig(hostOS, qtcFunctions)
{ {
var llvmInstallDirFromEnv = Environment.getEnv("LLVM_INSTALL_DIR") var llvmInstallDirFromEnv = Environment.getEnv("LLVM_INSTALL_DIR")
var llvmConfigVariants = [ var llvmConfigVariants = [
@@ -37,7 +37,7 @@ function llvmConfig(qbs, qtcFunctions)
]; ];
// Prefer llvm-config* from LLVM_INSTALL_DIR // Prefer llvm-config* from LLVM_INSTALL_DIR
var suffix = qbs.hostOS.contains("windows") ? ".exe" : ""; var suffix = hostOS.contains("windows") ? ".exe" : "";
if (llvmInstallDirFromEnv) { if (llvmInstallDirFromEnv) {
for (var i = 0; i < llvmConfigVariants.length; ++i) { for (var i = 0; i < llvmConfigVariants.length; ++i) {
var variant = llvmInstallDirFromEnv + "/bin/" + llvmConfigVariants[i] + suffix; var variant = llvmInstallDirFromEnv + "/bin/" + llvmConfigVariants[i] + suffix;
@@ -48,7 +48,7 @@ function llvmConfig(qbs, qtcFunctions)
// Find llvm-config* in PATH // Find llvm-config* in PATH
var pathListString = Environment.getEnv("PATH"); var pathListString = Environment.getEnv("PATH");
var separator = qbs.hostOS.contains("windows") ? ";" : ":"; var separator = hostOS.contains("windows") ? ";" : ":";
var pathList = pathListString.split(separator); var pathList = pathListString.split(separator);
for (var i = 0; i < llvmConfigVariants.length; ++i) { for (var i = 0; i < llvmConfigVariants.length; ++i) {
for (var j = 0; j < pathList.length; ++j) { for (var j = 0; j < pathList.length; ++j) {

View File

@@ -9,6 +9,9 @@ Module {
Probe { Probe {
id: clangProbe id: clangProbe
property stringList hostOS: qbs.hostOS
property stringList targetOS: qbs.targetOS
property string llvmConfig property string llvmConfig
property string llvmVersion property string llvmVersion
property string llvmIncludeDir property string llvmIncludeDir
@@ -21,12 +24,12 @@ Module {
property string llvmBuildMode property string llvmBuildMode
configure: { configure: {
llvmConfig = ClangFunctions.llvmConfig(qbs, QtcFunctions); llvmConfig = ClangFunctions.llvmConfig(hostOS, QtcFunctions);
llvmVersion = ClangFunctions.version(llvmConfig); llvmVersion = ClangFunctions.version(llvmConfig);
llvmIncludeDir = ClangFunctions.includeDir(llvmConfig); llvmIncludeDir = ClangFunctions.includeDir(llvmConfig);
llvmLibDir = ClangFunctions.libDir(llvmConfig); llvmLibDir = ClangFunctions.libDir(llvmConfig);
llvmLibs = ClangFunctions.libraries(qbs.targetOS); llvmLibs = ClangFunctions.libraries(targetOS);
llvmToolingLibs = ClangFunctions.toolingLibs(llvmConfig, qbs.targetOS); llvmToolingLibs = ClangFunctions.toolingLibs(llvmConfig, targetOS);
llvmBuildMode = ClangFunctions.buildMode(llvmConfig); llvmBuildMode = ClangFunctions.buildMode(llvmConfig);
var toolingParams = ClangFunctions.toolingParameters(llvmConfig); var toolingParams = ClangFunctions.toolingParameters(llvmConfig);
llvmToolingDefines = toolingParams.defines; llvmToolingDefines = toolingParams.defines;

View File

@@ -10840,7 +10840,7 @@ Dies ist unabhängig vom Wert der Eigenschaft &quot;visible&quot; in QML.</trans
<name>TextEditor</name> <name>TextEditor</name>
<message> <message>
<source>Text Editor</source> <source>Text Editor</source>
<translation>Text Editor</translation> <translation>Texteditor</translation>
</message> </message>
</context> </context>
<context> <context>
@@ -43079,7 +43079,7 @@ Bitte aktualisieren Sie Ihr Kit oder wählen Sie eine mkspec für qmake, die bes
</message> </message>
<message> <message>
<source>Text Editor</source> <source>Text Editor</source>
<translation>Text Editor</translation> <translation>Texteditor</translation>
</message> </message>
</context> </context>
<context> <context>

View File

@@ -569,6 +569,8 @@ AST *Parser::parse(int startToken)
action = nt_action(_stateStack[_tos], lhs[ruleno] - TERMINAL_COUNT); action = nt_action(_stateStack[_tos], lhs[ruleno] - TERMINAL_COUNT);
} else if (action == 0) { } else if (action == 0) {
++recoveryAttempts; ++recoveryAttempts;
if (recoveryAttempts > 10)
break;
const int line = _tokens[yyloc].line + 1; const int line = _tokens[yyloc].line + 1;
QString message = QLatin1String("Syntax error"); QString message = QLatin1String("Syntax error");
if (yytoken != -1) { if (yytoken != -1) {

File diff suppressed because it is too large Load Diff

View File

@@ -1,26 +1,31 @@
/**************************************************************************** /****************************************************************************
** **
** Copyright (C) 2016 The Qt Company Ltd. ** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/ ** Contact: http://www.qt.io/licensing/
** **
** This file is part of the Qt Toolkit. ** This file is part of the Qt Toolkit.
** **
** $QT_BEGIN_LICENSE:GPL-EXCEPT$ ** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage ** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in ** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the ** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in ** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms ** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further ** and conditions see http://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us. ** information use the contact form at http://www.qt.io/contact-us.
** **
** GNU General Public License Usage ** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU ** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 3 as published by the Free Software ** General Public License version 2.1 or version 3 as published by the Free
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT ** Software Foundation and appearing in the file LICENSE.LGPLv21 and
** included in the packaging of this file. Please review the following ** LICENSE.LGPLv3 included in the packaging of this file. Please review the
** information to ensure the GNU General Public License requirements will ** following information to ensure the GNU Lesser General Public License
** be met: https://www.gnu.org/licenses/gpl-3.0.html. ** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** As a special exception, The Qt Company gives you certain additional
** rights. These rights are described in The Qt Company LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
** **
** $QT_END_LICENSE$ ** $QT_END_LICENSE$
** **
@@ -49,8 +54,7 @@ const char *const GLSLParserTable::spell [] = {
"-=", "switch", "~", "type_name", "uint", "uniform", "usampler1D", "usampler1DArray", "usampler2D", "usampler2DArray", "-=", "switch", "~", "type_name", "uint", "uniform", "usampler1D", "usampler1DArray", "usampler2D", "usampler2DArray",
"usampler2DMS", "usampler2DMSarray", "usampler2DRect", "usampler3D", "usamplerBuffer", "usamplerCube", "usamplerCubeArray", "uvec2", "uvec3", "uvec4", "usampler2DMS", "usampler2DMSarray", "usampler2DRect", "usampler3D", "usamplerBuffer", "usamplerCube", "usamplerCubeArray", "uvec2", "uvec3", "uvec4",
"varying", "vec2", "vec3", "vec4", "|", "void", "while", "^=", "^^", "true", "varying", "vec2", "vec3", "vec4", "|", "void", "while", "^=", "^^", "true",
"false", "preprocessor directive", "comment", "error", "reserved word" "false", "preprocessor directive", "comment", "error", "reserved word"};
};
const short GLSLParserTable::lhs [] = { const short GLSLParserTable::lhs [] = {
176, 177, 177, 177, 177, 177, 179, 179, 179, 179, 176, 177, 177, 177, 177, 177, 179, 179, 179, 179,
@@ -84,8 +88,7 @@ const short GLSLParserTable::lhs [] = {
240, 241, 249, 249, 250, 250, 242, 251, 251, 243, 240, 241, 249, 249, 250, 250, 242, 251, 251, 243,
243, 244, 244, 244, 252, 252, 254, 254, 253, 253, 243, 244, 244, 244, 252, 252, 254, 254, 253, 253,
245, 245, 245, 245, 245, 255, 256, 256, 257, 257, 245, 245, 245, 245, 245, 255, 256, 256, 257, 257,
257, 258, 222, 175, 175, 259 257, 258, 222, 175, 175, 259};
};
const short GLSLParserTable::rhs [] = { const short GLSLParserTable::rhs [] = {
1, 1, 1, 1, 1, 3, 1, 4, 1, 3, 1, 1, 1, 1, 1, 3, 1, 4, 1, 3,
@@ -119,8 +122,7 @@ const short GLSLParserTable::rhs [] = {
2, 5, 3, 1, 1, 4, 7, 1, 1, 3, 2, 5, 3, 1, 1, 4, 7, 1, 1, 3,
2, 5, 7, 6, 1, 1, 1, 1, 2, 3, 2, 5, 7, 6, 1, 1, 1, 1, 2, 3,
2, 2, 2, 3, 2, 1, 1, 2, 1, 1, 2, 2, 2, 3, 2, 1, 1, 2, 1, 1,
1, 2, 0, 2, 2, 2 1, 2, 0, 2, 2, 2};
};
const short GLSLParserTable::action_default [] = { const short GLSLParserTable::action_default [] = {
0, 0, 0, 0, 32, 165, 172, 173, 174, 31, 0, 0, 0, 0, 32, 165, 172, 173, 174, 31,
@@ -169,8 +171,7 @@ const short GLSLParserTable::action_default [] = {
0, 0, 292, 281, 277, 0, 83, 108, 0, 0, 0, 0, 292, 281, 277, 0, 83, 108, 0, 0,
113, 109, 0, 0, 111, 110, 0, 112, 0, 89, 113, 109, 0, 0, 111, 110, 0, 112, 0, 89,
0, 0, 0, 0, 85, 0, 86, 0, 0, 87, 0, 0, 0, 0, 85, 0, 86, 0, 0, 87,
0, 88, 316 0, 88, 316};
};
const short GLSLParserTable::goto_default [] = { const short GLSLParserTable::goto_default [] = {
3, 135, 126, 362, 124, 263, 112, 117, 113, 116, 3, 135, 126, 362, 124, 263, 112, 117, 113, 116,
@@ -181,8 +182,7 @@ const short GLSLParserTable::goto_default [] = {
160, 159, 161, 173, 172, 162, 132, 129, 163, 203, 160, 159, 161, 173, 172, 162, 132, 129, 163, 203,
192, 361, 369, 359, 368, 363, 367, 371, 358, 365, 192, 361, 369, 359, 368, 363, 367, 371, 358, 365,
366, 370, 402, 400, 410, 390, 427, 388, 394, 391, 366, 370, 402, 400, 410, 390, 427, 388, 394, 391,
298, 289, 288, 292, 0 298, 289, 288, 292, 0};
};
const short GLSLParserTable::action_index [] = { const short GLSLParserTable::action_index [] = {
86, 1180, 3189, 58, -175, -175, -175, -175, -175, -175, 86, 1180, 3189, 58, -175, -175, -175, -175, -175, -175,
@@ -279,8 +279,7 @@ const short GLSLParserTable::action_index [] = {
-85, 100, -85, -85, -85, -85, -85, -85, 36, 138, -85, 100, -85, -85, -85, -85, -85, -85, 36, 138,
-85, -85, -85, 31, -85, -85, 28, -85, -85, -85, -85, -85, -85, 31, -85, -85, 28, -85, -85, -85,
97, 105, -85, -85, -85, 98, -85, -85, -85, -85, 97, 105, -85, -85, -85, 98, -85, -85, -85, -85,
-85, -85, -85 -85, -85, -85};
};
const short GLSLParserTable::action_info [] = { const short GLSLParserTable::action_info [] = {
-25, 332, 446, 246, 339, 306, 450, 319, 428, 251, -25, 332, 446, 246, 339, 306, 450, 319, 428, 251,
@@ -785,8 +784,7 @@ const short GLSLParserTable::action_info [] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 430, 0, 0, 0, 0, 0, 0, 0, 0, 0, 430, 0,
0, 0, 0, 0, 0, 0, 0, 0 0, 0, 0, 0, 0, 0, 0, 0};
};
const short GLSLParserTable::action_check [] = { const short GLSLParserTable::action_check [] = {
79, 77, 45, 6, 18, 52, 76, 114, 111, 168, 79, 77, 45, 6, 18, 52, 76, 114, 111, 168,
@@ -1291,7 +1289,6 @@ const short GLSLParserTable::action_check [] = {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 75, -1, -1, -1, -1, -1, -1, -1, -1, -1, 75, -1,
-1, -1, -1, -1, -1, -1, -1, -1 -1, -1, -1, -1, -1, -1, -1, -1};
};
QT_END_NAMESPACE QT_END_NAMESPACE

View File

@@ -1,26 +1,31 @@
/**************************************************************************** /****************************************************************************
** **
** Copyright (C) 2016 The Qt Company Ltd. ** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/ ** Contact: http://www.qt.io/licensing/
** **
** This file is part of the Qt Toolkit. ** This file is part of the Qt Toolkit.
** **
** $QT_BEGIN_LICENSE:GPL-EXCEPT$ ** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage ** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in ** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the ** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in ** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms ** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further ** and conditions see http://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us. ** information use the contact form at http://www.qt.io/contact-us.
** **
** GNU General Public License Usage ** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU ** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 3 as published by the Free Software ** General Public License version 2.1 or version 3 as published by the Free
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT ** Software Foundation and appearing in the file LICENSE.LGPLv21 and
** included in the packaging of this file. Please review the following ** LICENSE.LGPLv3 included in the packaging of this file. Please review the
** information to ensure the GNU General Public License requirements will ** following information to ensure the GNU Lesser General Public License
** be met: https://www.gnu.org/licenses/gpl-3.0.html. ** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** As a special exception, The Qt Company gives you certain additional
** rights. These rights are described in The Qt Company LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
** **
** $QT_END_LICENSE$ ** $QT_END_LICENSE$
** **