add missing includes for the build with use_libcxx_modules
This is to fix build error when we set use_libcxx_modules=true in
chromium build.
Bug: 40440396
Change-Id: I7a9959bd27347b6268af8350658acea9f6caf505
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/218794
Commit-Queue: dan sinclair <dsinclair@chromium.org>
Auto-Submit: Takuto Ikuta <tikuta@google.com>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
diff --git a/src/dawn/common/RefBase.h b/src/dawn/common/RefBase.h
index 57abaac..7f45644 100644
--- a/src/dawn/common/RefBase.h
+++ b/src/dawn/common/RefBase.h
@@ -28,6 +28,7 @@
#ifndef SRC_DAWN_COMMON_REFBASE_H_
#define SRC_DAWN_COMMON_REFBASE_H_
+#include <cstddef>
#include <type_traits>
#include <utility>
diff --git a/src/tint/lang/wgsl/reader/parser/lexer.cc b/src/tint/lang/wgsl/reader/parser/lexer.cc
index b12c0ec..5215977 100644
--- a/src/tint/lang/wgsl/reader/parser/lexer.cc
+++ b/src/tint/lang/wgsl/reader/parser/lexer.cc
@@ -34,6 +34,7 @@
#include <limits>
#include <optional>
#include <string>
+#include <system_error>
#include <tuple>
#include <utility>
diff --git a/src/tint/utils/math/hash.h b/src/tint/utils/math/hash.h
index a148f2c..b0ec823 100644
--- a/src/tint/utils/math/hash.h
+++ b/src/tint/utils/math/hash.h
@@ -29,10 +29,12 @@
#define SRC_TINT_UTILS_MATH_HASH_H_
#include <stdint.h>
+
#include <cstdio>
#include <functional>
#include <string>
#include <tuple>
+#include <type_traits>
#include <utility>
#include <variant>
#include <vector>
diff --git a/src/tint/utils/socket.h b/src/tint/utils/socket.h
index d4e321c..0e183b2 100644
--- a/src/tint/utils/socket.h
+++ b/src/tint/utils/socket.h
@@ -28,6 +28,9 @@
#ifndef SRC_TINT_UTILS_SOCKET_H_
#define SRC_TINT_UTILS_SOCKET_H_
+#include <stddef.h>
+#include <stdint.h>
+
#include <memory>
namespace tint::socket {
diff --git a/src/tint/utils/text/string_stream.h b/src/tint/utils/text/string_stream.h
index 45aaaab..9b3e20c 100644
--- a/src/tint/utils/text/string_stream.h
+++ b/src/tint/utils/text/string_stream.h
@@ -28,12 +28,14 @@
#ifndef SRC_TINT_UTILS_TEXT_STRING_STREAM_H_
#define SRC_TINT_UTILS_TEXT_STRING_STREAM_H_
+#include <algorithm>
#include <functional>
#include <iomanip>
#include <iterator>
#include <limits>
#include <sstream>
#include <string>
+#include <type_traits>
#include <utility>
#include "src/tint/utils/text/unicode.h"