[validation] make validator directory

Change-Id: Ia5caea84b48b37f0bee9582ee4c8514da4ee3978
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/31981
Commit-Queue: David Neto <dneto@google.com>
Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
Sarah Mashayekhi 2020-11-06 17:31:15 +00:00 committed by Commit Bot service account
parent cc2305dd95
commit 34f90a0097
13 changed files with 42 additions and 42 deletions

View File

@ -410,12 +410,12 @@ source_set("libtint_core_src") {
"src/type_determiner.h",
"src/type_manager.cc",
"src/type_manager.h",
"src/validator.cc",
"src/validator.h",
"src/validator_impl.cc",
"src/validator_impl.h",
"src/validator_test_helper.cc",
"src/validator_test_helper.h",
"src/validator/validator.cc",
"src/validator/validator.h",
"src/validator/validator_impl.cc",
"src/validator/validator_impl.h",
"src/validator/validator_test_helper.cc",
"src/validator/validator_test_helper.h",
"src/writer/text.cc",
"src/writer/text.h",
"src/writer/text_generator.cc",
@ -738,8 +738,8 @@ source_set("tint_unittests_core_src") {
"src/ast/case_statement_test.cc",
"src/ast/constant_id_decoration_test.cc",
"src/ast/continue_statement_test.cc",
"src/ast/decoration_test.cc",
"src/ast/decorated_variable_test.cc",
"src/ast/decoration_test.cc",
"src/ast/discard_statement_test.cc",
"src/ast/else_statement_test.cc",
"src/ast/expression_test.cc",
@ -794,9 +794,9 @@ source_set("tint_unittests_core_src") {
"src/transform/vertex_pulling_transform_test.cc",
"src/type_determiner_test.cc",
"src/type_manager_test.cc",
"src/validator_control_block_test.cc",
"src/validator_function_test.cc",
"src/validator_test.cc",
"src/validator/validator_control_block_test.cc",
"src/validator/validator_function_test.cc",
"src/validator/validator_test.cc",
]
configs += [

View File

@ -28,7 +28,7 @@
#include "src/transform/vertex_pulling_transform.h"
#include "src/type_determiner.h"
#include "src/type_manager.h"
#include "src/validator.h"
#include "src/validator/validator.h"
#include "src/writer/writer.h"
#if TINT_BUILD_SPV_READER

View File

@ -231,12 +231,12 @@ set(TINT_LIB_SRCS
type_determiner.h
type_manager.cc
type_manager.h
validator.cc
validator.h
validator_impl.cc
validator_impl.h
validator_test_helper.cc
validator_test_helper.h
validator/validator.cc
validator/validator.h
validator/validator_impl.cc
validator/validator_impl.h
validator/validator_test_helper.cc
validator/validator_test_helper.h
writer/text.cc
writer/text.h
writer/text_generator.cc
@ -404,9 +404,9 @@ set(TINT_TEST_SRCS
transform/vertex_pulling_transform_test.cc
type_determiner_test.cc
type_manager_test.cc
validator_control_block_test.cc
validator_function_test.cc
validator_test.cc
validator/validator_control_block_test.cc
validator/validator_function_test.cc
validator/validator_test.cc
)
## Tint library

View File

@ -26,7 +26,7 @@
#include "src/ast/type/i32_type.h"
#include "src/ast/type/void_type.h"
#include "src/type_determiner.h"
#include "src/validator.h"
#include "src/validator/validator.h"
namespace tint {
namespace transform {

View File

@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/validator.h"
#include "src/validator/validator.h"
#include "src/validator_impl.h"
#include "src/validator/validator_impl.h"
namespace tint {

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_VALIDATOR_H_
#define SRC_VALIDATOR_H_
#ifndef SRC_VALIDATOR_VALIDATOR_H_
#define SRC_VALIDATOR_VALIDATOR_H_
#include <memory>
#include <string>
@ -22,7 +22,7 @@
#include "src/ast/expression.h"
#include "src/ast/module.h"
#include "src/ast/statement.h"
#include "src/validator_impl.h"
#include "src/validator/validator_impl.h"
namespace tint {
@ -55,4 +55,4 @@ class Validator {
} // namespace tint
#endif // SRC_VALIDATOR_H_
#endif // SRC_VALIDATOR_VALIDATOR_H_

View File

@ -28,8 +28,8 @@
#include "src/ast/variable.h"
#include "src/ast/variable_decl_statement.h"
#include "src/type_determiner.h"
#include "src/validator_impl.h"
#include "src/validator_test_helper.h"
#include "src/validator/validator_impl.h"
#include "src/validator/validator_test_helper.h"
namespace tint {
namespace {

View File

@ -26,8 +26,8 @@
#include "src/ast/variable.h"
#include "src/ast/variable_decl_statement.h"
#include "src/type_determiner.h"
#include "src/validator_impl.h"
#include "src/validator_test_helper.h"
#include "src/validator/validator_impl.h"
#include "src/validator/validator_test_helper.h"
namespace tint {
namespace {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/validator_impl.h"
#include "src/validator/validator_impl.h"
#include <cassert>
#include <unordered_set>

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_VALIDATOR_IMPL_H_
#define SRC_VALIDATOR_IMPL_H_
#ifndef SRC_VALIDATOR_VALIDATOR_IMPL_H_
#define SRC_VALIDATOR_VALIDATOR_IMPL_H_
#include <string>
#include <unordered_map>
@ -123,4 +123,4 @@ class ValidatorImpl {
} // namespace tint
#endif // SRC_VALIDATOR_IMPL_H_
#endif // SRC_VALIDATOR_VALIDATOR_IMPL_H_

View File

@ -52,8 +52,8 @@
#include "src/ast/variable.h"
#include "src/ast/variable_decl_statement.h"
#include "src/type_determiner.h"
#include "src/validator_impl.h"
#include "src/validator_test_helper.h"
#include "src/validator/validator_impl.h"
#include "src/validator/validator_test_helper.h"
namespace tint {
namespace {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/validator_test_helper.h"
#include "src/validator/validator_test_helper.h"
#include <memory>

View File

@ -12,14 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_VALIDATOR_TEST_HELPER_H_
#define SRC_VALIDATOR_TEST_HELPER_H_
#ifndef SRC_VALIDATOR_VALIDATOR_TEST_HELPER_H_
#define SRC_VALIDATOR_VALIDATOR_TEST_HELPER_H_
#include <memory>
#include "src/ast/type/void_type.h"
#include "src/type_determiner.h"
#include "src/validator_impl.h"
#include "src/validator/validator_impl.h"
namespace tint {
@ -50,4 +50,4 @@ class ValidatorTestHelper {
} // namespace tint
#endif // SRC_VALIDATOR_TEST_HELPER_H_
#endif // SRC_VALIDATOR_VALIDATOR_TEST_HELPER_H_