Non-functional: Make whitespace/braces consistent for a recent commit.
authorJohn Kessenich <cepheus@frii.com>
Fri, 30 Aug 2019 15:51:06 +0000 (09:51 -0600)
committerJohn Kessenich <cepheus@frii.com>
Fri, 30 Aug 2019 15:51:06 +0000 (09:51 -0600)
glslang/MachineIndependent/ParseHelper.cpp
glslang/MachineIndependent/glslang.m4

index bb6ab24..0b0f94c 100644 (file)
@@ -7083,7 +7083,6 @@ TIntermTyped* TParseContext::constructBuiltIn(const TType& type, TOperator op, T
                 assert(0);
                 break;
             case EbtInt:
-            {
                 switch (node->getType().getBasicType()) {
                     case EbtFloat:   op = EOpConvFloatToInt;    break;
                     case EbtFloat16: op = EOpConvFloat16ToInt;  break;
@@ -7092,26 +7091,19 @@ TIntermTyped* TParseContext::constructBuiltIn(const TType& type, TOperator op, T
                     case EbtUint:    op = EOpConvUintToInt;     break;
                     default: assert(0);
                 }
-
-            }
                 break;
             case EbtUint:
-            {
                 switch (node->getType().getBasicType()) {
                     case EbtFloat:   op = EOpConvFloatToUint;    break;
                     case EbtFloat16: op = EOpConvFloat16ToUint;  break;
                     case EbtUint8:   op = EOpConvUint8ToUint;    break;
-                    case EbtInt8:    op = EOpConvInt8ToUint;    break;
+                    case EbtInt8:    op = EOpConvInt8ToUint;     break;
                     case EbtInt:     op = EOpConvIntToUint;      break;
                     case EbtUint:    op = EOpConvUintToInt8;     break;
                     default: assert(0);
                 }
-
-            }
                 break;
-
             case EbtInt8:
-            {
                 switch (node->getType().getBasicType()) {
                     case EbtFloat:   op = EOpConvFloatToInt8;    break;
                     case EbtFloat16: op = EOpConvFloat16ToInt8;  break;
@@ -7120,10 +7112,8 @@ TIntermTyped* TParseContext::constructBuiltIn(const TType& type, TOperator op, T
                     case EbtUint:    op = EOpConvUintToInt8;     break;
                     default: assert(0);
                 }
-
-            }
                 break;
-            case EbtUint8: {
+            case EbtUint8:
                 switch (node->getType().getBasicType()) {
                     case EbtFloat:   op = EOpConvFloatToUint8;   break;
                     case EbtFloat16: op = EOpConvFloat16ToUint8; break;
@@ -7132,10 +7122,8 @@ TIntermTyped* TParseContext::constructBuiltIn(const TType& type, TOperator op, T
                     case EbtUint:    op = EOpConvUintToUint8;    break;
                     default: assert(0);
                 }
-            }
                 break;
             case EbtFloat:
-            {
                 switch (node->getType().getBasicType()) {
                     case EbtFloat16: op = EOpConvFloat16ToFloat;  break;
                     case EbtInt8:    op = EOpConvInt8ToFloat;     break;
@@ -7144,10 +7132,8 @@ TIntermTyped* TParseContext::constructBuiltIn(const TType& type, TOperator op, T
                     case EbtUint:    op = EOpConvUintToFloat;     break;
                     default: assert(0);
                 }
-            }
                 break;
             case EbtFloat16:
-            {
                 switch (node->getType().getBasicType()) {
                     case EbtFloat:  op = EOpConvFloatToFloat16;  break;
                     case EbtInt8:   op = EOpConvInt8ToFloat16;   break;
@@ -7156,7 +7142,6 @@ TIntermTyped* TParseContext::constructBuiltIn(const TType& type, TOperator op, T
                     case EbtUint:   op = EOpConvUintToFloat16;   break;
                     default: assert(0);
                 }
-            }
                 break;
             }
 
index cbddef1..6ace038 100644 (file)
@@ -3183,18 +3183,18 @@ GLSLANG_WEB_EXCLUDE_ON
         $$.basicType = EbtFloat;
         $$.coopmat = true;
     }
-    | ICOOPMATNV {\r
-        parseContext.intcoopmatCheck($1.loc, "icoopmatNV", parseContext.symbolTable.atBuiltInLevel());\r
-        $$.init($1.loc, parseContext.symbolTable.atGlobalLevel());\r
-        $$.basicType = EbtInt;\r
-        $$.coopmat = true;\r
-    }\r
-    | UCOOPMATNV {\r
-        parseContext.intcoopmatCheck($1.loc, "ucoopmatNV", parseContext.symbolTable.atBuiltInLevel());\r
-        $$.init($1.loc, parseContext.symbolTable.atGlobalLevel());\r
-        $$.basicType = EbtUint;\r
-        $$.coopmat = true;\r
-    }\r
+    | ICOOPMATNV {
+        parseContext.intcoopmatCheck($1.loc, "icoopmatNV", parseContext.symbolTable.atBuiltInLevel());
+        $$.init($1.loc, parseContext.symbolTable.atGlobalLevel());
+        $$.basicType = EbtInt;
+        $$.coopmat = true;
+    }
+    | UCOOPMATNV {
+        parseContext.intcoopmatCheck($1.loc, "ucoopmatNV", parseContext.symbolTable.atBuiltInLevel());
+        $$.init($1.loc, parseContext.symbolTable.atGlobalLevel());
+        $$.basicType = EbtUint;
+        $$.coopmat = true;
+    }
 GLSLANG_WEB_EXCLUDE_OFF
     | struct_specifier {
         $$ = $1;