Remove all unnecessary includes
All includes from .cc to .h are preserved, even when transitively included. It's clear that there are far too many includes in header files, and we should be more aggressive with forward declarations. tint:532 will continue to track this work. There are, however, plenty of includes that have accumulated over time which are no longer required directly or transitively, so this change starts with a clean slate of *required* includes. Bug: tint:532 Change-Id: Ie1718dad565f8309fa180ef91bcf3920e76dba18 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/44042 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
parent
5f0ea11365
commit
5b36d2c612
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/access_decoration.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::AccessDecoration);
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
#ifndef SRC_AST_ACCESS_DECORATION_H_
|
||||
#define SRC_AST_ACCESS_DECORATION_H_
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include "src/ast/access_control.h"
|
||||
#include "src/ast/type_decoration.h"
|
||||
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
|
||||
#include "src/ast/access_decoration.h"
|
||||
|
||||
#include <sstream>
|
||||
|
||||
#include "src/ast/test_helper.h"
|
||||
|
||||
namespace tint {
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/array_accessor_expression.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::ArrayAccessorExpression);
|
||||
|
|
|
@ -15,11 +15,7 @@
|
|||
#ifndef SRC_AST_ARRAY_ACCESSOR_EXPRESSION_H_
|
||||
#define SRC_AST_ARRAY_ACCESSOR_EXPRESSION_H_
|
||||
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "src/ast/expression.h"
|
||||
#include "src/ast/literal.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -12,9 +12,6 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "src/ast/array_accessor_expression.h"
|
||||
|
||||
#include "src/ast/identifier_expression.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
|
||||
namespace tint {
|
||||
|
|
|
@ -14,10 +14,6 @@
|
|||
|
||||
#include "src/ast/array_decoration.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "src/ast/stride_decoration.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::ArrayDecoration);
|
||||
|
||||
namespace tint {
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/assignment_statement.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::AssignmentStatement);
|
||||
|
|
|
@ -15,11 +15,7 @@
|
|||
#ifndef SRC_AST_ASSIGNMENT_STATEMENT_H_
|
||||
#define SRC_AST_ASSIGNMENT_STATEMENT_H_
|
||||
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "src/ast/expression.h"
|
||||
#include "src/ast/literal.h"
|
||||
#include "src/ast/statement.h"
|
||||
|
||||
namespace tint {
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/assignment_statement.h"
|
||||
|
||||
#include "src/ast/identifier_expression.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
|
||||
namespace tint {
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/binary_expression.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::BinaryExpression);
|
||||
|
|
|
@ -15,11 +15,7 @@
|
|||
#ifndef SRC_AST_BINARY_EXPRESSION_H_
|
||||
#define SRC_AST_BINARY_EXPRESSION_H_
|
||||
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "src/ast/expression.h"
|
||||
#include "src/ast/literal.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -12,11 +12,6 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "src/ast/binary_expression.h"
|
||||
|
||||
#include <sstream>
|
||||
|
||||
#include "src/ast/identifier_expression.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
|
||||
namespace tint {
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/binding_decoration.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::BindingDecoration);
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
#ifndef SRC_AST_BINDING_DECORATION_H_
|
||||
#define SRC_AST_BINDING_DECORATION_H_
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include "src/ast/variable_decoration.h"
|
||||
|
||||
namespace tint {
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "src/ast/binding_decoration.h"
|
||||
|
||||
#include "src/ast/constant_id_decoration.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/bitcast_expression.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::BitcastExpression);
|
||||
|
|
|
@ -15,12 +15,7 @@
|
|||
#ifndef SRC_AST_BITCAST_EXPRESSION_H_
|
||||
#define SRC_AST_BITCAST_EXPRESSION_H_
|
||||
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "src/ast/expression.h"
|
||||
#include "src/ast/literal.h"
|
||||
#include "src/type/type.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -14,9 +14,7 @@
|
|||
|
||||
#include "src/ast/bitcast_expression.h"
|
||||
|
||||
#include "src/ast/identifier_expression.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
#include "src/type/f32_type.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/block_statement.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::BlockStatement);
|
||||
|
|
|
@ -15,9 +15,7 @@
|
|||
#ifndef SRC_AST_BLOCK_STATEMENT_H_
|
||||
#define SRC_AST_BLOCK_STATEMENT_H_
|
||||
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "src/ast/statement.h"
|
||||
|
||||
|
|
|
@ -12,11 +12,6 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "src/ast/block_statement.h"
|
||||
|
||||
#include <memory>
|
||||
#include <sstream>
|
||||
|
||||
#include "src/ast/discard_statement.h"
|
||||
#include "src/ast/if_statement.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/bool_literal.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::BoolLiteral);
|
||||
|
|
|
@ -12,14 +12,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "src/ast/bool_literal.h"
|
||||
|
||||
#include "src/ast/float_literal.h"
|
||||
#include "src/ast/null_literal.h"
|
||||
#include "src/ast/sint_literal.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
#include "src/ast/uint_literal.h"
|
||||
#include "src/type/bool_type.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/break_statement.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::BreakStatement);
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/builtin_decoration.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::BuiltinDecoration);
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "src/ast/builtin_decoration.h"
|
||||
|
||||
#include "src/ast/constant_id_decoration.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/call_expression.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::CallExpression);
|
||||
|
|
|
@ -15,11 +15,7 @@
|
|||
#ifndef SRC_AST_CALL_EXPRESSION_H_
|
||||
#define SRC_AST_CALL_EXPRESSION_H_
|
||||
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "src/ast/expression.h"
|
||||
#include "src/ast/literal.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -12,9 +12,6 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "src/ast/call_expression.h"
|
||||
|
||||
#include "src/ast/identifier_expression.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
|
||||
namespace tint {
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
|
||||
#include "src/ast/call_statement.h"
|
||||
|
||||
#include "src/ast/call_expression.h"
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::CallStatement);
|
||||
|
|
|
@ -15,9 +15,6 @@
|
|||
#ifndef SRC_AST_CALL_STATEMENT_H_
|
||||
#define SRC_AST_CALL_STATEMENT_H_
|
||||
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "src/ast/call_expression.h"
|
||||
#include "src/ast/statement.h"
|
||||
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
|
||||
#include "src/ast/call_statement.h"
|
||||
|
||||
#include "src/ast/call_expression.h"
|
||||
#include "src/ast/identifier_expression.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
|
||||
namespace tint {
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/case_statement.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::CaseStatement);
|
||||
|
|
|
@ -15,14 +15,10 @@
|
|||
#ifndef SRC_AST_CASE_STATEMENT_H_
|
||||
#define SRC_AST_CASE_STATEMENT_H_
|
||||
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "src/ast/block_statement.h"
|
||||
#include "src/ast/expression.h"
|
||||
#include "src/ast/int_literal.h"
|
||||
#include "src/ast/statement.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -16,11 +16,7 @@
|
|||
|
||||
#include "src/ast/discard_statement.h"
|
||||
#include "src/ast/if_statement.h"
|
||||
#include "src/ast/sint_literal.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
#include "src/ast/uint_literal.h"
|
||||
#include "src/type/i32_type.h"
|
||||
#include "src/type/u32_type.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/constant_id_decoration.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::ConstantIdDecoration);
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
#ifndef SRC_AST_CONSTANT_ID_DECORATION_H_
|
||||
#define SRC_AST_CONSTANT_ID_DECORATION_H_
|
||||
|
||||
#include "src/ast/builtin.h"
|
||||
#include "src/ast/variable_decoration.h"
|
||||
|
||||
namespace tint {
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
|
||||
#include "src/ast/constructor_expression.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::ConstructorExpression);
|
||||
|
||||
namespace tint {
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/continue_statement.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::ContinueStatement);
|
||||
|
|
|
@ -15,9 +15,6 @@
|
|||
#ifndef SRC_AST_CONTINUE_STATEMENT_H_
|
||||
#define SRC_AST_CONTINUE_STATEMENT_H_
|
||||
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "src/ast/statement.h"
|
||||
|
||||
namespace tint {
|
||||
|
|
|
@ -15,12 +15,9 @@
|
|||
#ifndef SRC_AST_DECORATION_H_
|
||||
#define SRC_AST_DECORATION_H_
|
||||
|
||||
#include <memory>
|
||||
#include <ostream>
|
||||
#include <vector>
|
||||
|
||||
#include "src/ast/node.h"
|
||||
#include "src/source.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -12,28 +12,10 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "src/ast/decoration.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
#include <utility>
|
||||
|
||||
#include "src/ast/access_decoration.h"
|
||||
#include "src/ast/array_decoration.h"
|
||||
#include "src/ast/binding_decoration.h"
|
||||
#include "src/ast/builtin_decoration.h"
|
||||
#include "src/ast/constant_id_decoration.h"
|
||||
#include "src/ast/function_decoration.h"
|
||||
#include "src/ast/location_decoration.h"
|
||||
#include "src/ast/stage_decoration.h"
|
||||
#include "src/ast/stride_decoration.h"
|
||||
#include "src/ast/struct_decoration.h"
|
||||
#include "src/ast/struct_member_decoration.h"
|
||||
#include "src/ast/struct_member_offset_decoration.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
#include "src/ast/type_decoration.h"
|
||||
#include "src/ast/variable_decoration.h"
|
||||
#include "src/ast/workgroup_decoration.h"
|
||||
|
||||
namespace tint {
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/discard_statement.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::DiscardStatement);
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
|
||||
#include "src/ast/discard_statement.h"
|
||||
|
||||
#include <sstream>
|
||||
|
||||
#include "src/ast/test_helper.h"
|
||||
|
||||
namespace tint {
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/else_statement.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::ElseStatement);
|
||||
|
|
|
@ -15,13 +15,10 @@
|
|||
#ifndef SRC_AST_ELSE_STATEMENT_H_
|
||||
#define SRC_AST_ELSE_STATEMENT_H_
|
||||
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "src/ast/block_statement.h"
|
||||
#include "src/ast/expression.h"
|
||||
#include "src/ast/statement.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -12,14 +12,9 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "src/ast/else_statement.h"
|
||||
|
||||
#include "src/ast/bool_literal.h"
|
||||
#include "src/ast/discard_statement.h"
|
||||
#include "src/ast/if_statement.h"
|
||||
#include "src/ast/scalar_constructor_expression.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
#include "src/type/bool_type.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
#ifndef SRC_AST_EXPRESSION_H_
|
||||
#define SRC_AST_EXPRESSION_H_
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/fallthrough_statement.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::FallthroughStatement);
|
||||
|
|
|
@ -15,9 +15,7 @@
|
|||
#include "src/ast/float_literal.h"
|
||||
|
||||
#include <limits>
|
||||
#include <sstream>
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::FloatLiteral);
|
||||
|
|
|
@ -12,14 +12,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "src/ast/float_literal.h"
|
||||
|
||||
#include "src/ast/bool_literal.h"
|
||||
#include "src/ast/null_literal.h"
|
||||
#include "src/ast/sint_literal.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
#include "src/ast/uint_literal.h"
|
||||
#include "src/type/f32_type.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -14,16 +14,9 @@
|
|||
|
||||
#include "src/ast/function.h"
|
||||
|
||||
#include <sstream>
|
||||
|
||||
#include "src/ast/stage_decoration.h"
|
||||
#include "src/ast/variable.h"
|
||||
#include "src/ast/workgroup_decoration.h"
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
#include "src/type/multisampled_texture_type.h"
|
||||
#include "src/type/sampled_texture_type.h"
|
||||
#include "src/type/texture_type.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::Function);
|
||||
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
#ifndef SRC_AST_FUNCTION_H_
|
||||
#define SRC_AST_FUNCTION_H_
|
||||
|
||||
#include <memory>
|
||||
#include <ostream>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
#include <utility>
|
||||
|
@ -25,17 +23,11 @@
|
|||
#include "src/ast/binding_decoration.h"
|
||||
#include "src/ast/block_statement.h"
|
||||
#include "src/ast/builtin_decoration.h"
|
||||
#include "src/ast/expression.h"
|
||||
#include "src/ast/function_decoration.h"
|
||||
#include "src/ast/group_decoration.h"
|
||||
#include "src/ast/location_decoration.h"
|
||||
#include "src/ast/node.h"
|
||||
#include "src/ast/pipeline_stage.h"
|
||||
#include "src/ast/statement.h"
|
||||
#include "src/ast/variable.h"
|
||||
#include "src/symbol.h"
|
||||
#include "src/type/sampler_type.h"
|
||||
#include "src/type/type.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
#ifndef SRC_AST_FUNCTION_DECORATION_H_
|
||||
#define SRC_AST_FUNCTION_DECORATION_H_
|
||||
|
||||
#include <memory>
|
||||
#include <ostream>
|
||||
#include <vector>
|
||||
|
||||
#include "src/ast/decoration.h"
|
||||
|
|
|
@ -12,15 +12,9 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "src/ast/function.h"
|
||||
|
||||
#include "src/ast/builtin_decoration.h"
|
||||
#include "src/ast/discard_statement.h"
|
||||
#include "src/ast/location_decoration.h"
|
||||
#include "src/ast/pipeline_stage.h"
|
||||
#include "src/ast/stage_decoration.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
#include "src/ast/variable.h"
|
||||
#include "src/ast/workgroup_decoration.h"
|
||||
|
||||
namespace tint {
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/group_decoration.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::GroupDecoration);
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
#ifndef SRC_AST_GROUP_DECORATION_H_
|
||||
#define SRC_AST_GROUP_DECORATION_H_
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include "src/ast/variable_decoration.h"
|
||||
|
||||
namespace tint {
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "src/ast/group_decoration.h"
|
||||
|
||||
#include "src/ast/constant_id_decoration.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/identifier_expression.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::IdentifierExpression);
|
||||
|
|
|
@ -15,12 +15,8 @@
|
|||
#ifndef SRC_AST_IDENTIFIER_EXPRESSION_H_
|
||||
#define SRC_AST_IDENTIFIER_EXPRESSION_H_
|
||||
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "src/ast/expression.h"
|
||||
#include "src/semantic/intrinsic.h"
|
||||
#include "src/symbol.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "src/ast/identifier_expression.h"
|
||||
|
||||
#include "src/ast/test_helper.h"
|
||||
|
||||
namespace tint {
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
|
||||
#include "src/ast/if_statement.h"
|
||||
|
||||
#include "src/ast/else_statement.h"
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::IfStatement);
|
||||
|
|
|
@ -15,13 +15,9 @@
|
|||
#ifndef SRC_AST_IF_STATEMENT_H_
|
||||
#define SRC_AST_IF_STATEMENT_H_
|
||||
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "src/ast/block_statement.h"
|
||||
#include "src/ast/else_statement.h"
|
||||
#include "src/ast/expression.h"
|
||||
#include "src/ast/statement.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
#include "src/ast/if_statement.h"
|
||||
|
||||
#include "src/ast/discard_statement.h"
|
||||
#include "src/ast/identifier_expression.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
|
||||
namespace tint {
|
||||
|
|
|
@ -12,16 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "src/ast/int_literal.h"
|
||||
|
||||
#include "src/ast/bool_literal.h"
|
||||
#include "src/ast/float_literal.h"
|
||||
#include "src/ast/null_literal.h"
|
||||
#include "src/ast/sint_literal.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
#include "src/ast/uint_literal.h"
|
||||
#include "src/type/i32_type.h"
|
||||
#include "src/type/u32_type.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -14,14 +14,10 @@
|
|||
|
||||
#include "src/ast/intrinsic_texture_helper_test.h"
|
||||
|
||||
#include "src/ast/type_constructor_expression.h"
|
||||
#include "src/debug.h"
|
||||
#include "src/program_builder.h"
|
||||
#include "src/type/access_control_type.h"
|
||||
#include "src/type/depth_texture_type.h"
|
||||
#include "src/type/multisampled_texture_type.h"
|
||||
#include "src/type/sampled_texture_type.h"
|
||||
#include "src/type/storage_texture_type.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -15,14 +15,11 @@
|
|||
#ifndef SRC_AST_INTRINSIC_TEXTURE_HELPER_TEST_H_
|
||||
#define SRC_AST_INTRINSIC_TEXTURE_HELPER_TEST_H_
|
||||
|
||||
#include <functional>
|
||||
#include <vector>
|
||||
|
||||
#include "src/ast/access_control.h"
|
||||
#include "src/program_builder.h"
|
||||
#include "src/type/sampler_type.h"
|
||||
#include "src/type/storage_texture_type.h"
|
||||
#include "src/type/texture_type.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
#include <string>
|
||||
|
||||
#include "src/ast/node.h"
|
||||
#include "src/type/type.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/location_decoration.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::LocationDecoration);
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
#ifndef SRC_AST_LOCATION_DECORATION_H_
|
||||
#define SRC_AST_LOCATION_DECORATION_H_
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include "src/ast/variable_decoration.h"
|
||||
|
||||
namespace tint {
|
||||
|
|
|
@ -12,10 +12,6 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "src/ast/location_decoration.h"
|
||||
|
||||
#include <sstream>
|
||||
|
||||
#include "src/ast/constant_id_decoration.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/loop_statement.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::LoopStatement);
|
||||
|
|
|
@ -15,11 +15,7 @@
|
|||
#ifndef SRC_AST_LOOP_STATEMENT_H_
|
||||
#define SRC_AST_LOOP_STATEMENT_H_
|
||||
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "src/ast/block_statement.h"
|
||||
#include "src/ast/statement.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -14,9 +14,6 @@
|
|||
|
||||
#include "src/ast/loop_statement.h"
|
||||
|
||||
#include <memory>
|
||||
#include <sstream>
|
||||
|
||||
#include "src/ast/discard_statement.h"
|
||||
#include "src/ast/if_statement.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/member_accessor_expression.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::MemberAccessorExpression);
|
||||
|
|
|
@ -15,12 +15,7 @@
|
|||
#ifndef SRC_AST_MEMBER_ACCESSOR_EXPRESSION_H_
|
||||
#define SRC_AST_MEMBER_ACCESSOR_EXPRESSION_H_
|
||||
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "src/ast/expression.h"
|
||||
#include "src/ast/identifier_expression.h"
|
||||
#include "src/ast/literal.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -12,11 +12,6 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "src/ast/member_accessor_expression.h"
|
||||
|
||||
#include <sstream>
|
||||
|
||||
#include "src/ast/identifier_expression.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
|
||||
namespace tint {
|
||||
|
|
|
@ -14,14 +14,9 @@
|
|||
|
||||
#include "src/ast/module.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "src/debug.h"
|
||||
#include "src/program_builder.h"
|
||||
#include "src/type/alias_type.h"
|
||||
#include "src/type/struct_type.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::Module);
|
||||
|
||||
|
|
|
@ -19,9 +19,6 @@
|
|||
#include <vector>
|
||||
|
||||
#include "src/ast/function.h"
|
||||
#include "src/ast/node.h"
|
||||
#include "src/ast/variable.h"
|
||||
#include "src/type/type.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -15,10 +15,6 @@
|
|||
#include <unordered_set>
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
#include "src/ast/case_statement.h"
|
||||
#include "src/ast/module.h"
|
||||
#include "src/program.h"
|
||||
#include "src/program_builder.h"
|
||||
#include "src/reader/wgsl/parser.h"
|
||||
#include "src/writer/wgsl/generator.h"
|
||||
|
||||
|
|
|
@ -12,18 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "src/ast/module.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <utility>
|
||||
|
||||
#include "gmock/gmock.h"
|
||||
#include "src/ast/function.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
#include "src/ast/variable.h"
|
||||
#include "src/type/alias_type.h"
|
||||
#include "src/type/f32_type.h"
|
||||
#include "src/type/struct_type.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
|
||||
#include "src/ast/node.h"
|
||||
|
||||
#include <sstream>
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::Node);
|
||||
|
||||
namespace tint {
|
||||
|
|
|
@ -15,12 +15,9 @@
|
|||
#ifndef SRC_AST_NODE_H_
|
||||
#define SRC_AST_NODE_H_
|
||||
|
||||
#include <ostream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/source.h"
|
||||
|
||||
namespace tint {
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/null_literal.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::NullLiteral);
|
||||
|
|
|
@ -14,12 +14,7 @@
|
|||
|
||||
#include "src/ast/null_literal.h"
|
||||
|
||||
#include "src/ast/bool_literal.h"
|
||||
#include "src/ast/float_literal.h"
|
||||
#include "src/ast/sint_literal.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
#include "src/ast/uint_literal.h"
|
||||
#include "src/type/i32_type.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/return_statement.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::ReturnStatement);
|
||||
|
|
|
@ -15,9 +15,6 @@
|
|||
#ifndef SRC_AST_RETURN_STATEMENT_H_
|
||||
#define SRC_AST_RETURN_STATEMENT_H_
|
||||
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "src/ast/expression.h"
|
||||
#include "src/ast/statement.h"
|
||||
|
||||
|
|
|
@ -14,9 +14,6 @@
|
|||
|
||||
#include "src/ast/return_statement.h"
|
||||
|
||||
#include <sstream>
|
||||
|
||||
#include "src/ast/identifier_expression.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
|
||||
namespace tint {
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/scalar_constructor_expression.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::ScalarConstructorExpression);
|
||||
|
|
|
@ -15,9 +15,6 @@
|
|||
#ifndef SRC_AST_SCALAR_CONSTRUCTOR_EXPRESSION_H_
|
||||
#define SRC_AST_SCALAR_CONSTRUCTOR_EXPRESSION_H_
|
||||
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "src/ast/constructor_expression.h"
|
||||
#include "src/ast/literal.h"
|
||||
|
||||
|
|
|
@ -12,11 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "src/ast/scalar_constructor_expression.h"
|
||||
|
||||
#include "src/ast/bool_literal.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
#include "src/type/bool_type.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/sint_literal.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::SintLiteral);
|
||||
|
|
|
@ -12,15 +12,8 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "src/ast/sint_literal.h"
|
||||
|
||||
#include "src/ast/bool_literal.h"
|
||||
#include "src/ast/float_literal.h"
|
||||
#include "src/ast/null_literal.h"
|
||||
#include "src/ast/test_helper.h"
|
||||
#include "src/ast/uint_literal.h"
|
||||
#include "src/type/i32_type.h"
|
||||
#include "src/type/u32_type.h"
|
||||
|
||||
namespace tint {
|
||||
namespace ast {
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/stage_decoration.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::StageDecoration);
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
|
||||
#include "src/ast/stage_decoration.h"
|
||||
|
||||
#include <sstream>
|
||||
|
||||
#include "src/ast/test_helper.h"
|
||||
#include "src/ast/workgroup_decoration.h"
|
||||
|
||||
|
|
|
@ -14,16 +14,11 @@
|
|||
|
||||
#include "src/ast/statement.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "src/ast/assignment_statement.h"
|
||||
#include "src/ast/block_statement.h"
|
||||
#include "src/ast/break_statement.h"
|
||||
#include "src/ast/call_statement.h"
|
||||
#include "src/ast/case_statement.h"
|
||||
#include "src/ast/continue_statement.h"
|
||||
#include "src/ast/discard_statement.h"
|
||||
#include "src/ast/else_statement.h"
|
||||
#include "src/ast/fallthrough_statement.h"
|
||||
#include "src/ast/if_statement.h"
|
||||
#include "src/ast/loop_statement.h"
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
#ifndef SRC_AST_STATEMENT_H_
|
||||
#define SRC_AST_STATEMENT_H_
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include "src/ast/node.h"
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
#include "src/ast/stride_decoration.h"
|
||||
|
||||
#include "src/clone_context.h"
|
||||
#include "src/program_builder.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::ast::StrideDecoration);
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
#ifndef SRC_AST_STRIDE_DECORATION_H_
|
||||
#define SRC_AST_STRIDE_DECORATION_H_
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include "src/ast/array_decoration.h"
|
||||
|
||||
namespace tint {
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue