Skip to content

Commit b0ea368

Browse files
ben-claytonDawn LUCI CQ
authored andcommitted
[tint] Add _test suffix to spv_dump.[h|cc]
These are test-only code. Change-Id: I290bd78f93eaf5557662d9d71332c8bd9f85f4ec Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/146901 Reviewed-by: Dan Sinclair <[email protected]> Commit-Queue: Dan Sinclair <[email protected]> Kokoro: Kokoro <[email protected]> Auto-Submit: Ben Clayton <[email protected]>
1 parent a87e5d6 commit b0ea368

31 files changed

+35
-35
lines changed

src/tint/BUILD.gn

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2056,8 +2056,8 @@ if (tint_build_unittests) {
20562056
"lang/spirv/writer/common/instruction_test.cc",
20572057
"lang/spirv/writer/common/module_test.cc",
20582058
"lang/spirv/writer/common/operand_test.cc",
2059-
"lang/spirv/writer/common/spv_dump.cc",
2060-
"lang/spirv/writer/common/spv_dump.h",
2059+
"lang/spirv/writer/common/spv_dump_test.cc",
2060+
"lang/spirv/writer/common/spv_dump_test.h",
20612061
]
20622062

20632063
deps = [

src/tint/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,8 +1389,8 @@ if(TINT_BUILD_TESTS)
13891389
lang/spirv/writer/common/instruction_test.cc
13901390
lang/spirv/writer/common/module_test.cc
13911391
lang/spirv/writer/common/operand_test.cc
1392-
lang/spirv/writer/common/spv_dump.cc
1393-
lang/spirv/writer/common/spv_dump.h
1392+
lang/spirv/writer/common/spv_dump_test.cc
1393+
lang/spirv/writer/common/spv_dump_test.h
13941394
)
13951395

13961396
if(${TINT_BUILD_IR})

src/tint/lang/spirv/writer/ast_printer/accessor_expression_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
#include "src/tint/lang/spirv/writer/ast_printer/helper_test.h"
16-
#include "src/tint/lang/spirv/writer/common/spv_dump.h"
16+
#include "src/tint/lang/spirv/writer/common/spv_dump_test.h"
1717

1818
namespace tint::spirv::writer {
1919
namespace {

src/tint/lang/spirv/writer/ast_printer/assign_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "gmock/gmock.h"
1616
#include "gtest/gtest-spi.h"
1717
#include "src/tint/lang/spirv/writer/ast_printer/helper_test.h"
18-
#include "src/tint/lang/spirv/writer/common/spv_dump.h"
18+
#include "src/tint/lang/spirv/writer/common/spv_dump_test.h"
1919

2020
namespace tint::spirv::writer {
2121
namespace {

src/tint/lang/spirv/writer/ast_printer/ast_builtin_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "src/tint/lang/core/type/depth_texture.h"
1616
#include "src/tint/lang/core/type/texture_dimension.h"
1717
#include "src/tint/lang/spirv/writer/ast_printer/helper_test.h"
18-
#include "src/tint/lang/spirv/writer/common/spv_dump.h"
18+
#include "src/tint/lang/spirv/writer/common/spv_dump_test.h"
1919
#include "src/tint/lang/wgsl/ast/call_statement.h"
2020
#include "src/tint/lang/wgsl/ast/stage_attribute.h"
2121
#include "src/tint/utils/text/string.h"

src/tint/lang/spirv/writer/ast_printer/ast_discard_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
#include "src/tint/lang/spirv/writer/ast_printer/helper_test.h"
16-
#include "src/tint/lang/spirv/writer/common/spv_dump.h"
16+
#include "src/tint/lang/spirv/writer/common/spv_dump_test.h"
1717

1818
namespace tint::spirv::writer {
1919
namespace {

src/tint/lang/spirv/writer/ast_printer/ast_function_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
#include "src/tint/lang/spirv/writer/ast_printer/helper_test.h"
16-
#include "src/tint/lang/spirv/writer/common/spv_dump.h"
16+
#include "src/tint/lang/spirv/writer/common/spv_dump_test.h"
1717
#include "src/tint/lang/wgsl/ast/stage_attribute.h"
1818

1919
using namespace tint::core::number_suffixes; // NOLINT

src/tint/lang/spirv/writer/ast_printer/ast_if_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "gmock/gmock.h"
1616
#include "gtest/gtest-spi.h"
1717
#include "src/tint/lang/spirv/writer/ast_printer/helper_test.h"
18-
#include "src/tint/lang/spirv/writer/common/spv_dump.h"
18+
#include "src/tint/lang/spirv/writer/common/spv_dump_test.h"
1919

2020
using namespace tint::core::number_suffixes; // NOLINT
2121

src/tint/lang/spirv/writer/ast_printer/ast_loop_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
#include "src/tint/lang/spirv/writer/ast_printer/helper_test.h"
16-
#include "src/tint/lang/spirv/writer/common/spv_dump.h"
16+
#include "src/tint/lang/spirv/writer/common/spv_dump_test.h"
1717

1818
using namespace tint::core::number_suffixes; // NOLINT
1919

src/tint/lang/spirv/writer/ast_printer/ast_switch_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
#include "src/tint/lang/spirv/writer/ast_printer/helper_test.h"
16-
#include "src/tint/lang/spirv/writer/common/spv_dump.h"
16+
#include "src/tint/lang/spirv/writer/common/spv_dump_test.h"
1717

1818
using namespace tint::core::number_suffixes; // NOLINT
1919

0 commit comments

Comments
 (0)