1 // 2 // Copyright (c) 2018 The ANGLE Project Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 4 // found in the LICENSE file. 5 // 6 // SeparateArrayConstructorStatements splits statements that are array constructors and drops all of 7 // their constant arguments. For example, a statement like: 8 // int[2](0, i++); 9 // Will be changed to: 10 // i++; 11 12 #ifndef COMPILER_TRANSLATOR_SEPARATEARRAYCONSTRUCTORSTATEMENTS_H_ 13 #define COMPILER_TRANSLATOR_SEPARATEARRAYCONSTRUCTORSTATEMENTS_H_ 14 15 namespace sh 16 { 17 class TIntermBlock; 18 19 void SeparateArrayConstructorStatements(TIntermBlock *root); 20 } // namespace sh 21 22 #endif // COMPILER_TRANSLATOR_SEPARATEARRAYCONSTRUCTORSTATEMENTS_H_ 23