Jelajahi Sumber

Remove trailing whitespaces - NFC

Diego Novillo 2 minggu lalu
induk
melakukan
15b727afdd

+ 1 - 1
Test/struct_name_as_array_member.frag

@@ -11,4 +11,4 @@ struct K
     float A[2], B[3]; // This should work - struct name B is used as an array member name.
 };
 
-void main(){} 
+void main(){}

+ 2 - 2
Test/struct_name_as_struct_member.frag

@@ -1,7 +1,7 @@
 #version 400
 
 // Original bug report from: https://github.com/KhronosGroup/glslang/issues/3931
-// Error was: "syntax error, unexpected TYPE_NAME, expecting IDENTIFIER" 
+// Error was: "syntax error, unexpected TYPE_NAME, expecting IDENTIFIER"
 // when defining a struct field with the same name as a previously defined
 // struct.
 struct B
@@ -17,4 +17,4 @@ struct K
 
 void main(){
   int x, B, y, K;
-} 
+}

+ 2 - 2
glslang/MachineIndependent/Scan.cpp

@@ -837,14 +837,14 @@ int TScanContext::tokenize(TPpContext* pp, TParserToken& token)
         parserToken->sType.lex.loc = loc;
         switch (token) {
         case ';':  afterType = false; afterBuffer = false; inDeclaratorList = false; afterDeclarator = false; angleBracketDepth = 0; squareBracketDepth = 0; return SEMICOLON;
-        case ',':  
+        case ',':
             // If we just processed a declarator (identifier after a type), this comma
             // indicates that we're in a declarator list. Note that 'afterDeclarator' is
             // only set when we are not inside a template parameter list or array expression.
             if (afterDeclarator) {
                 inDeclaratorList = true;
             }
-            afterType = false; 
+            afterType = false;
             afterDeclarator = false;
             return COMMA;
         case ':':                       return COLON;