forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.5' into 4.6
Conflicts: src/shared/qbs Change-Id: I5314559cbf188e4c339de44052c6e0c89d3c2aa6
This commit is contained in:
@@ -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,
|
||||||
cpp.minimumMacosVersion: project.minimumMacosVersion
|
// because conflicting scalar values would be reported (QBS-1225 would fix that).
|
||||||
}
|
cpp.minimumMacosVersion: project.minimumMacosVersion
|
||||||
|
|
||||||
Properties {
|
Properties {
|
||||||
condition: qbs.toolchain.contains("gcc") && !qbs.toolchain.contains("clang")
|
condition: qbs.toolchain.contains("gcc") && !qbs.toolchain.contains("clang")
|
||||||
|
@@ -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) {
|
||||||
|
@@ -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;
|
||||||
|
@@ -10840,7 +10840,7 @@ Dies ist unabhängig vom Wert der Eigenschaft "visible" 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>
|
||||||
|
@@ -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
File diff suppressed because it is too large
Load Diff
@@ -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$
|
||||||
**
|
**
|
||||||
@@ -48,221 +53,221 @@ QT_BEGIN_NAMESPACE
|
|||||||
class GLSLParserTable
|
class GLSLParserTable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum VariousConstants {
|
enum VariousConstants {
|
||||||
EOF_SYMBOL = 0,
|
EOF_SYMBOL = 0,
|
||||||
T_ADD_ASSIGN = 3,
|
T_ADD_ASSIGN = 3,
|
||||||
T_AMPERSAND = 4,
|
T_AMPERSAND = 4,
|
||||||
T_AND_ASSIGN = 5,
|
T_AND_ASSIGN = 5,
|
||||||
T_AND_OP = 6,
|
T_AND_OP = 6,
|
||||||
T_ATTRIBUTE = 7,
|
T_ATTRIBUTE = 7,
|
||||||
T_BANG = 8,
|
T_BANG = 8,
|
||||||
T_BOOL = 9,
|
T_BOOL = 9,
|
||||||
T_BREAK = 10,
|
T_BREAK = 10,
|
||||||
T_BVEC2 = 11,
|
T_BVEC2 = 11,
|
||||||
T_BVEC3 = 12,
|
T_BVEC3 = 12,
|
||||||
T_BVEC4 = 13,
|
T_BVEC4 = 13,
|
||||||
T_CARET = 14,
|
T_CARET = 14,
|
||||||
T_CASE = 15,
|
T_CASE = 15,
|
||||||
T_CENTROID = 16,
|
T_CENTROID = 16,
|
||||||
T_COLON = 17,
|
T_COLON = 17,
|
||||||
T_COMMA = 18,
|
T_COMMA = 18,
|
||||||
T_COMMENT = 172,
|
T_COMMENT = 172,
|
||||||
T_CONST = 19,
|
T_CONST = 19,
|
||||||
T_CONTINUE = 20,
|
T_CONTINUE = 20,
|
||||||
T_DASH = 21,
|
T_DASH = 21,
|
||||||
T_DEC_OP = 22,
|
T_DEC_OP = 22,
|
||||||
T_DEFAULT = 23,
|
T_DEFAULT = 23,
|
||||||
T_DISCARD = 24,
|
T_DISCARD = 24,
|
||||||
T_DIV_ASSIGN = 25,
|
T_DIV_ASSIGN = 25,
|
||||||
T_DMAT2 = 26,
|
T_DMAT2 = 26,
|
||||||
T_DMAT2X2 = 27,
|
T_DMAT2X2 = 27,
|
||||||
T_DMAT2X3 = 28,
|
T_DMAT2X3 = 28,
|
||||||
T_DMAT2X4 = 29,
|
T_DMAT2X4 = 29,
|
||||||
T_DMAT3 = 30,
|
T_DMAT3 = 30,
|
||||||
T_DMAT3X2 = 31,
|
T_DMAT3X2 = 31,
|
||||||
T_DMAT3X3 = 32,
|
T_DMAT3X3 = 32,
|
||||||
T_DMAT3X4 = 33,
|
T_DMAT3X4 = 33,
|
||||||
T_DMAT4 = 34,
|
T_DMAT4 = 34,
|
||||||
T_DMAT4X2 = 35,
|
T_DMAT4X2 = 35,
|
||||||
T_DMAT4X3 = 36,
|
T_DMAT4X3 = 36,
|
||||||
T_DMAT4X4 = 37,
|
T_DMAT4X4 = 37,
|
||||||
T_DO = 38,
|
T_DO = 38,
|
||||||
T_DOT = 39,
|
T_DOT = 39,
|
||||||
T_DOUBLE = 40,
|
T_DOUBLE = 40,
|
||||||
T_DVEC2 = 41,
|
T_DVEC2 = 41,
|
||||||
T_DVEC3 = 42,
|
T_DVEC3 = 42,
|
||||||
T_DVEC4 = 43,
|
T_DVEC4 = 43,
|
||||||
T_ELSE = 44,
|
T_ELSE = 44,
|
||||||
T_EQUAL = 45,
|
T_EQUAL = 45,
|
||||||
T_EQ_OP = 46,
|
T_EQ_OP = 46,
|
||||||
T_ERROR = 173,
|
T_ERROR = 173,
|
||||||
T_FALSE = 170,
|
T_FALSE = 170,
|
||||||
T_FEED_EXPRESSION = 2,
|
T_FEED_EXPRESSION = 2,
|
||||||
T_FEED_GLSL = 1,
|
T_FEED_GLSL = 1,
|
||||||
T_FLAT = 47,
|
T_FLAT = 47,
|
||||||
T_FLOAT = 48,
|
T_FLOAT = 48,
|
||||||
T_FOR = 49,
|
T_FOR = 49,
|
||||||
T_GE_OP = 50,
|
T_GE_OP = 50,
|
||||||
T_HIGHP = 51,
|
T_HIGHP = 51,
|
||||||
T_IDENTIFIER = 52,
|
T_IDENTIFIER = 52,
|
||||||
T_IF = 53,
|
T_IF = 53,
|
||||||
T_IN = 54,
|
T_IN = 54,
|
||||||
T_INC_OP = 55,
|
T_INC_OP = 55,
|
||||||
T_INOUT = 56,
|
T_INOUT = 56,
|
||||||
T_INT = 57,
|
T_INT = 57,
|
||||||
T_INVARIANT = 58,
|
T_INVARIANT = 58,
|
||||||
T_ISAMPLER1D = 59,
|
T_ISAMPLER1D = 59,
|
||||||
T_ISAMPLER1DARRAY = 60,
|
T_ISAMPLER1DARRAY = 60,
|
||||||
T_ISAMPLER2D = 61,
|
T_ISAMPLER2D = 61,
|
||||||
T_ISAMPLER2DARRAY = 62,
|
T_ISAMPLER2DARRAY = 62,
|
||||||
T_ISAMPLER2DMS = 63,
|
T_ISAMPLER2DMS = 63,
|
||||||
T_ISAMPLER2DMSARRAY = 64,
|
T_ISAMPLER2DMSARRAY = 64,
|
||||||
T_ISAMPLER2DRECT = 65,
|
T_ISAMPLER2DRECT = 65,
|
||||||
T_ISAMPLER3D = 66,
|
T_ISAMPLER3D = 66,
|
||||||
T_ISAMPLERBUFFER = 67,
|
T_ISAMPLERBUFFER = 67,
|
||||||
T_ISAMPLERCUBE = 68,
|
T_ISAMPLERCUBE = 68,
|
||||||
T_ISAMPLERCUBEARRAY = 69,
|
T_ISAMPLERCUBEARRAY = 69,
|
||||||
T_IVEC2 = 70,
|
T_IVEC2 = 70,
|
||||||
T_IVEC3 = 71,
|
T_IVEC3 = 71,
|
||||||
T_IVEC4 = 72,
|
T_IVEC4 = 72,
|
||||||
T_LAYOUT = 73,
|
T_LAYOUT = 73,
|
||||||
T_LEFT_ANGLE = 74,
|
T_LEFT_ANGLE = 74,
|
||||||
T_LEFT_ASSIGN = 75,
|
T_LEFT_ASSIGN = 75,
|
||||||
T_LEFT_BRACE = 76,
|
T_LEFT_BRACE = 76,
|
||||||
T_LEFT_BRACKET = 77,
|
T_LEFT_BRACKET = 77,
|
||||||
T_LEFT_OP = 78,
|
T_LEFT_OP = 78,
|
||||||
T_LEFT_PAREN = 79,
|
T_LEFT_PAREN = 79,
|
||||||
T_LE_OP = 80,
|
T_LE_OP = 80,
|
||||||
T_LOWP = 81,
|
T_LOWP = 81,
|
||||||
T_MAT2 = 82,
|
T_MAT2 = 82,
|
||||||
T_MAT2X2 = 83,
|
T_MAT2X2 = 83,
|
||||||
T_MAT2X3 = 84,
|
T_MAT2X3 = 84,
|
||||||
T_MAT2X4 = 85,
|
T_MAT2X4 = 85,
|
||||||
T_MAT3 = 86,
|
T_MAT3 = 86,
|
||||||
T_MAT3X2 = 87,
|
T_MAT3X2 = 87,
|
||||||
T_MAT3X3 = 88,
|
T_MAT3X3 = 88,
|
||||||
T_MAT3X4 = 89,
|
T_MAT3X4 = 89,
|
||||||
T_MAT4 = 90,
|
T_MAT4 = 90,
|
||||||
T_MAT4X2 = 91,
|
T_MAT4X2 = 91,
|
||||||
T_MAT4X3 = 92,
|
T_MAT4X3 = 92,
|
||||||
T_MAT4X4 = 93,
|
T_MAT4X4 = 93,
|
||||||
T_MEDIUMP = 94,
|
T_MEDIUMP = 94,
|
||||||
T_MOD_ASSIGN = 95,
|
T_MOD_ASSIGN = 95,
|
||||||
T_MUL_ASSIGN = 96,
|
T_MUL_ASSIGN = 96,
|
||||||
T_NE_OP = 97,
|
T_NE_OP = 97,
|
||||||
T_NOPERSPECTIVE = 98,
|
T_NOPERSPECTIVE = 98,
|
||||||
T_NUMBER = 99,
|
T_NUMBER = 99,
|
||||||
T_OR_ASSIGN = 100,
|
T_OR_ASSIGN = 100,
|
||||||
T_OR_OP = 101,
|
T_OR_OP = 101,
|
||||||
T_OUT = 102,
|
T_OUT = 102,
|
||||||
T_PATCH = 103,
|
T_PATCH = 103,
|
||||||
T_PERCENT = 104,
|
T_PERCENT = 104,
|
||||||
T_PLUS = 105,
|
T_PLUS = 105,
|
||||||
T_PRECISION = 106,
|
T_PRECISION = 106,
|
||||||
T_PREPROC = 171,
|
T_PREPROC = 171,
|
||||||
T_QUESTION = 107,
|
T_QUESTION = 107,
|
||||||
T_RESERVED = 174,
|
T_RESERVED = 174,
|
||||||
T_RETURN = 108,
|
T_RETURN = 108,
|
||||||
T_RIGHT_ANGLE = 109,
|
T_RIGHT_ANGLE = 109,
|
||||||
T_RIGHT_ASSIGN = 110,
|
T_RIGHT_ASSIGN = 110,
|
||||||
T_RIGHT_BRACE = 111,
|
T_RIGHT_BRACE = 111,
|
||||||
T_RIGHT_BRACKET = 112,
|
T_RIGHT_BRACKET = 112,
|
||||||
T_RIGHT_OP = 113,
|
T_RIGHT_OP = 113,
|
||||||
T_RIGHT_PAREN = 114,
|
T_RIGHT_PAREN = 114,
|
||||||
T_SAMPLE = 115,
|
T_SAMPLE = 115,
|
||||||
T_SAMPLER1D = 116,
|
T_SAMPLER1D = 116,
|
||||||
T_SAMPLER1DARRAY = 117,
|
T_SAMPLER1DARRAY = 117,
|
||||||
T_SAMPLER1DARRAYSHADOW = 118,
|
T_SAMPLER1DARRAYSHADOW = 118,
|
||||||
T_SAMPLER1DSHADOW = 119,
|
T_SAMPLER1DSHADOW = 119,
|
||||||
T_SAMPLER2D = 120,
|
T_SAMPLER2D = 120,
|
||||||
T_SAMPLER2DARRAY = 121,
|
T_SAMPLER2DARRAY = 121,
|
||||||
T_SAMPLER2DARRAYSHADOW = 122,
|
T_SAMPLER2DARRAYSHADOW = 122,
|
||||||
T_SAMPLER2DMS = 123,
|
T_SAMPLER2DMS = 123,
|
||||||
T_SAMPLER2DMSARRAY = 124,
|
T_SAMPLER2DMSARRAY = 124,
|
||||||
T_SAMPLER2DRECT = 125,
|
T_SAMPLER2DRECT = 125,
|
||||||
T_SAMPLER2DRECTSHADOW = 126,
|
T_SAMPLER2DRECTSHADOW = 126,
|
||||||
T_SAMPLER2DSHADOW = 127,
|
T_SAMPLER2DSHADOW = 127,
|
||||||
T_SAMPLER3D = 128,
|
T_SAMPLER3D = 128,
|
||||||
T_SAMPLERBUFFER = 129,
|
T_SAMPLERBUFFER = 129,
|
||||||
T_SAMPLERCUBE = 130,
|
T_SAMPLERCUBE = 130,
|
||||||
T_SAMPLERCUBEARRAY = 131,
|
T_SAMPLERCUBEARRAY = 131,
|
||||||
T_SAMPLERCUBEARRAYSHADOW = 132,
|
T_SAMPLERCUBEARRAYSHADOW = 132,
|
||||||
T_SAMPLERCUBESHADOW = 133,
|
T_SAMPLERCUBESHADOW = 133,
|
||||||
T_SEMICOLON = 134,
|
T_SEMICOLON = 134,
|
||||||
T_SLASH = 135,
|
T_SLASH = 135,
|
||||||
T_SMOOTH = 136,
|
T_SMOOTH = 136,
|
||||||
T_STAR = 137,
|
T_STAR = 137,
|
||||||
T_STRUCT = 138,
|
T_STRUCT = 138,
|
||||||
T_SUBROUTINE = 139,
|
T_SUBROUTINE = 139,
|
||||||
T_SUB_ASSIGN = 140,
|
T_SUB_ASSIGN = 140,
|
||||||
T_SWITCH = 141,
|
T_SWITCH = 141,
|
||||||
T_TILDE = 142,
|
T_TILDE = 142,
|
||||||
T_TRUE = 169,
|
T_TRUE = 169,
|
||||||
T_TYPE_NAME = 143,
|
T_TYPE_NAME = 143,
|
||||||
T_UINT = 144,
|
T_UINT = 144,
|
||||||
T_UNIFORM = 145,
|
T_UNIFORM = 145,
|
||||||
T_USAMPLER1D = 146,
|
T_USAMPLER1D = 146,
|
||||||
T_USAMPLER1DARRAY = 147,
|
T_USAMPLER1DARRAY = 147,
|
||||||
T_USAMPLER2D = 148,
|
T_USAMPLER2D = 148,
|
||||||
T_USAMPLER2DARRAY = 149,
|
T_USAMPLER2DARRAY = 149,
|
||||||
T_USAMPLER2DMS = 150,
|
T_USAMPLER2DMS = 150,
|
||||||
T_USAMPLER2DMSARRAY = 151,
|
T_USAMPLER2DMSARRAY = 151,
|
||||||
T_USAMPLER2DRECT = 152,
|
T_USAMPLER2DRECT = 152,
|
||||||
T_USAMPLER3D = 153,
|
T_USAMPLER3D = 153,
|
||||||
T_USAMPLERBUFFER = 154,
|
T_USAMPLERBUFFER = 154,
|
||||||
T_USAMPLERCUBE = 155,
|
T_USAMPLERCUBE = 155,
|
||||||
T_USAMPLERCUBEARRAY = 156,
|
T_USAMPLERCUBEARRAY = 156,
|
||||||
T_UVEC2 = 157,
|
T_UVEC2 = 157,
|
||||||
T_UVEC3 = 158,
|
T_UVEC3 = 158,
|
||||||
T_UVEC4 = 159,
|
T_UVEC4 = 159,
|
||||||
T_VARYING = 160,
|
T_VARYING = 160,
|
||||||
T_VEC2 = 161,
|
T_VEC2 = 161,
|
||||||
T_VEC3 = 162,
|
T_VEC3 = 162,
|
||||||
T_VEC4 = 163,
|
T_VEC4 = 163,
|
||||||
T_VERTICAL_BAR = 164,
|
T_VERTICAL_BAR = 164,
|
||||||
T_VOID = 165,
|
T_VOID = 165,
|
||||||
T_WHILE = 166,
|
T_WHILE = 166,
|
||||||
T_XOR_ASSIGN = 167,
|
T_XOR_ASSIGN = 167,
|
||||||
T_XOR_OP = 168,
|
T_XOR_OP = 168,
|
||||||
|
|
||||||
ACCEPT_STATE = 462,
|
ACCEPT_STATE = 462,
|
||||||
RULE_COUNT = 316,
|
RULE_COUNT = 316,
|
||||||
STATE_COUNT = 463,
|
STATE_COUNT = 463,
|
||||||
TERMINAL_COUNT = 175,
|
TERMINAL_COUNT = 175,
|
||||||
NON_TERMINAL_COUNT = 85,
|
NON_TERMINAL_COUNT = 85,
|
||||||
|
|
||||||
GOTO_INDEX_OFFSET = 463,
|
GOTO_INDEX_OFFSET = 463,
|
||||||
GOTO_INFO_OFFSET = 4708,
|
GOTO_INFO_OFFSET = 4708,
|
||||||
GOTO_CHECK_OFFSET = 4708
|
GOTO_CHECK_OFFSET = 4708
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *const spell[];
|
static const char *const spell [];
|
||||||
static const short lhs[];
|
static const short lhs [];
|
||||||
static const short rhs[];
|
static const short rhs [];
|
||||||
static const short goto_default[];
|
static const short goto_default [];
|
||||||
static const short action_default[];
|
static const short action_default [];
|
||||||
static const short action_index[];
|
static const short action_index [];
|
||||||
static const short action_info[];
|
static const short action_info [];
|
||||||
static const short action_check[];
|
static const short action_check [];
|
||||||
|
|
||||||
static inline int nt_action (int state, int nt)
|
static inline int nt_action (int state, int nt)
|
||||||
{
|
{
|
||||||
const int yyn = action_index [GOTO_INDEX_OFFSET + state] + nt;
|
const int yyn = action_index [GOTO_INDEX_OFFSET + state] + nt;
|
||||||
if (yyn < 0 || action_check [GOTO_CHECK_OFFSET + yyn] != nt)
|
if (yyn < 0 || action_check [GOTO_CHECK_OFFSET + yyn] != nt)
|
||||||
return goto_default [nt];
|
return goto_default [nt];
|
||||||
|
|
||||||
return action_info [GOTO_INFO_OFFSET + yyn];
|
return action_info [GOTO_INFO_OFFSET + yyn];
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int t_action (int state, int token)
|
static inline int t_action (int state, int token)
|
||||||
{
|
{
|
||||||
const int yyn = action_index [state] + token;
|
const int yyn = action_index [state] + token;
|
||||||
|
|
||||||
if (yyn < 0 || action_check [yyn] != token)
|
if (yyn < 0 || action_check [yyn] != token)
|
||||||
return - action_default [state];
|
return - action_default [state];
|
||||||
|
|
||||||
return action_info [yyn];
|
return action_info [yyn];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Submodule src/shared/qbs updated: 1ee4260129...d3e137c202
Reference in New Issue
Block a user