Move type_manager to the ast dir/namespace

First step to moving this to the `ast::Module`.

Also remove a bunch of redundant includes to `type_manager.h` as this is already included in `context.h`

Bug: tint:307
Bug: tint:337
Change-Id: Ic4baffa7b76ddefa29f56f758c25b1003ef40888
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/33665
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
Ben Clayton
2020-11-23 19:30:55 +00:00
committed by Commit Bot service account
parent 4c32dd9735
commit 3e67c5dba6
22 changed files with 25 additions and 36 deletions

View File

@@ -80,7 +80,6 @@
#include "src/reader/spirv/enum_converter.h"
#include "src/reader/spirv/function.h"
#include "src/reader/spirv/usage.h"
#include "src/type_manager.h"
namespace tint {
namespace reader {

View File

@@ -27,7 +27,6 @@
#include "src/reader/spirv/parser_impl.h"
#include "src/reader/spirv/parser_impl_test_helper.h"
#include "src/reader/spirv/spirv_tools_helpers_test.h"
#include "src/type_manager.h"
namespace tint {
namespace reader {

View File

@@ -25,7 +25,6 @@
#include "src/reader/spirv/parser_impl.h"
#include "src/reader/spirv/parser_impl_test_helper.h"
#include "src/reader/spirv/spirv_tools_helpers_test.h"
#include "src/type_manager.h"
namespace tint {
namespace reader {

View File

@@ -70,7 +70,6 @@
#include "src/ast/variable_decl_statement.h"
#include "src/ast/workgroup_decoration.h"
#include "src/reader/wgsl/lexer.h"
#include "src/type_manager.h"
namespace tint {
namespace reader {

View File

@@ -20,7 +20,6 @@
#include "src/ast/type/void_type.h"
#include "src/reader/wgsl/parser_impl.h"
#include "src/reader/wgsl/parser_impl_test_helper.h"
#include "src/type_manager.h"
namespace tint {
namespace reader {

View File

@@ -21,7 +21,6 @@
#include "src/ast/variable.h"
#include "src/reader/wgsl/parser_impl.h"
#include "src/reader/wgsl/parser_impl_test_helper.h"
#include "src/type_manager.h"
namespace tint {
namespace reader {

View File

@@ -25,7 +25,6 @@
#include "src/ast/unary_op_expression.h"
#include "src/reader/wgsl/parser_impl.h"
#include "src/reader/wgsl/parser_impl_test_helper.h"
#include "src/type_manager.h"
namespace tint {
namespace reader {

View File

@@ -16,7 +16,6 @@
#include "src/ast/type/i32_type.h"
#include "src/reader/wgsl/parser_impl.h"
#include "src/reader/wgsl/parser_impl_test_helper.h"
#include "src/type_manager.h"
namespace tint {
namespace reader {

View File

@@ -17,7 +17,6 @@
#include "src/ast/type/i32_type.h"
#include "src/reader/wgsl/parser_impl.h"
#include "src/reader/wgsl/parser_impl_test_helper.h"
#include "src/type_manager.h"
namespace tint {
namespace reader {

View File

@@ -46,7 +46,7 @@ class ParserImplTest : public testing::Test {
}
/// @returns the type manager
TypeManager* tm() { return &(ctx_.type_mgr()); }
ast::TypeManager* tm() { return &(ctx_.type_mgr()); }
private:
std::vector<std::unique_ptr<Source::File>> files_;
@@ -72,7 +72,7 @@ class ParserImplTestWithParam : public testing::TestWithParam<T> {
}
/// @returns the type manager
TypeManager* tm() { return &(ctx_.type_mgr()); }
ast::TypeManager* tm() { return &(ctx_.type_mgr()); }
private:
std::vector<std::unique_ptr<Source::File>> files_;

View File

@@ -19,7 +19,6 @@
#include "src/ast/type/struct_type.h"
#include "src/reader/wgsl/parser_impl.h"
#include "src/reader/wgsl/parser_impl_test_helper.h"
#include "src/type_manager.h"
namespace tint {
namespace reader {

View File

@@ -28,7 +28,6 @@
#include "src/ast/type/vector_type.h"
#include "src/reader/wgsl/parser_impl.h"
#include "src/reader/wgsl/parser_impl_test_helper.h"
#include "src/type_manager.h"
namespace tint {
namespace reader {