Update ir::builder includes.
Several of the includes in the ir/builder aren't used directly. These
includes aren't removed, but marked as exports for include-what-you-use
because may of the consumers of the builders will need to create those
types.
Change-Id: I9a4967d0f022f3bd831d2393b8a3cf279ea8e85c
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/190940
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
diff --git a/.clang-tidy b/.clang-tidy
index 229bbe4..5c446be 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -162,3 +162,7 @@
-readability-uppercase-literal-suffix,\
-readability-use-anyofallof
"
+
+CheckOptions:
+ - key: cppcoreguidelines-avoid-do-while.IgnoreMacros
+ value: true
diff --git a/src/tint/lang/core/ir/builder.h b/src/tint/lang/core/ir/builder.h
index 48cad54..9e4f75e 100644
--- a/src/tint/lang/core/ir/builder.h
+++ b/src/tint/lang/core/ir/builder.h
@@ -30,9 +30,8 @@
#include <utility>
-#include "src/tint/lang/core/constant/composite.h"
-#include "src/tint/lang/core/constant/scalar.h"
-#include "src/tint/lang/core/constant/splat.h"
+#include "src/tint/lang/core/constant/scalar.h" // IWYU pragma: export
+#include "src/tint/lang/core/constant/splat.h" // IWYU pragma: export
#include "src/tint/lang/core/ir/access.h"
#include "src/tint/lang/core/ir/bitcast.h"
#include "src/tint/lang/core/ir/block_param.h"
@@ -69,16 +68,17 @@
#include "src/tint/lang/core/ir/user_call.h"
#include "src/tint/lang/core/ir/value.h"
#include "src/tint/lang/core/ir/var.h"
-#include "src/tint/lang/core/type/array.h"
-#include "src/tint/lang/core/type/bool.h"
-#include "src/tint/lang/core/type/f16.h"
-#include "src/tint/lang/core/type/f32.h"
-#include "src/tint/lang/core/type/i32.h"
+#include "src/tint/lang/core/type/array.h" // IWYU pragma: export
+#include "src/tint/lang/core/type/bool.h" // IWYU pragma: export
+#include "src/tint/lang/core/type/f16.h" // IWYU pragma: export
+#include "src/tint/lang/core/type/f32.h" // IWYU pragma: export
+#include "src/tint/lang/core/type/i32.h" // IWYU pragma: export
#include "src/tint/lang/core/type/matrix.h"
-#include "src/tint/lang/core/type/pointer.h"
-#include "src/tint/lang/core/type/u32.h"
+#include "src/tint/lang/core/type/memory_view.h"
+#include "src/tint/lang/core/type/pointer.h" // IWYU pragma: export
+#include "src/tint/lang/core/type/u32.h" // IWYU pragma: export
#include "src/tint/lang/core/type/vector.h"
-#include "src/tint/lang/core/type/void.h"
+#include "src/tint/lang/core/type/void.h" // IWYU pragma: export
#include "src/tint/utils/ice/ice.h"
#include "src/tint/utils/macros/scoped_assignment.h"
#include "src/tint/utils/rtti/switch.h"
diff --git a/src/tint/lang/core/ir/load_test.cc b/src/tint/lang/core/ir/load_test.cc
index 62977b3..5cf8a63 100644
--- a/src/tint/lang/core/ir/load_test.cc
+++ b/src/tint/lang/core/ir/load_test.cc
@@ -27,7 +27,6 @@
#include "gmock/gmock.h"
#include "src/tint/lang/core/ir/builder.h"
-#include "src/tint/lang/core/ir/instruction.h"
#include "src/tint/lang/core/ir/ir_helper_test.h"
namespace tint::core::ir {