From f18fc40a32258a40893ef33b5bfbeed4b7ac20e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20K=C3=B6ppe?= Date: Wed, 28 May 2025 23:48:20 +0100 Subject: [PATCH] Add missing standard library header inclusions (#5486) Discovered by clang-tidy. See also #5316. --- common/check_test.cpp | 2 ++ common/command_line_test.cpp | 2 ++ common/struct_reflection_test.cpp | 2 ++ common/template_string_test.cpp | 2 ++ toolchain/check/check_unit.cpp | 1 + toolchain/check/generic.cpp | 2 ++ toolchain/check/thunk.cpp | 2 ++ toolchain/sem_ir/import_ir.cpp | 2 ++ 8 files changed, 15 insertions(+) diff --git a/common/check_test.cpp b/common/check_test.cpp index 203bf0db3e4e..ae103d967122 100644 --- a/common/check_test.cpp +++ b/common/check_test.cpp @@ -6,6 +6,8 @@ #include +#include + namespace Carbon { namespace { diff --git a/common/command_line_test.cpp b/common/command_line_test.cpp index b2c7b2e57a21..593fd3f4ab9e 100644 --- a/common/command_line_test.cpp +++ b/common/command_line_test.cpp @@ -7,6 +7,8 @@ #include #include +#include + #include "common/error_test_helpers.h" #include "common/raw_string_ostream.h" #include "llvm/Support/FormatVariadic.h" diff --git a/common/struct_reflection_test.cpp b/common/struct_reflection_test.cpp index 8ea54a59866c..39b58d410a75 100644 --- a/common/struct_reflection_test.cpp +++ b/common/struct_reflection_test.cpp @@ -6,6 +6,8 @@ #include +#include + namespace Carbon::StructReflection { namespace { diff --git a/common/template_string_test.cpp b/common/template_string_test.cpp index 542fa00c2311..746f85828eb6 100644 --- a/common/template_string_test.cpp +++ b/common/template_string_test.cpp @@ -7,6 +7,8 @@ #include #include +#include + namespace Carbon { namespace { diff --git a/toolchain/check/check_unit.cpp b/toolchain/check/check_unit.cpp index f762c2fa145d..7ba395fec7c7 100644 --- a/toolchain/check/check_unit.cpp +++ b/toolchain/check/check_unit.cpp @@ -4,6 +4,7 @@ #include "toolchain/check/check_unit.h" +#include #include #include #include diff --git a/toolchain/check/generic.cpp b/toolchain/check/generic.cpp index 00cf5c5b3a89..d29cd5cee78d 100644 --- a/toolchain/check/generic.cpp +++ b/toolchain/check/generic.cpp @@ -4,6 +4,8 @@ #include "toolchain/check/generic.h" +#include + #include "toolchain/base/kind_switch.h" #include "toolchain/check/diagnostic_helpers.h" #include "toolchain/check/eval.h" diff --git a/toolchain/check/thunk.cpp b/toolchain/check/thunk.cpp index 68444d254048..c91dafde9083 100644 --- a/toolchain/check/thunk.cpp +++ b/toolchain/check/thunk.cpp @@ -4,6 +4,8 @@ #include "toolchain/check/thunk.h" +#include + #include "toolchain/base/kind_switch.h" #include "toolchain/check/call.h" #include "toolchain/check/convert.h" diff --git a/toolchain/sem_ir/import_ir.cpp b/toolchain/sem_ir/import_ir.cpp index 321d95535df6..5289bea51180 100644 --- a/toolchain/sem_ir/import_ir.cpp +++ b/toolchain/sem_ir/import_ir.cpp @@ -4,6 +4,8 @@ #include "toolchain/sem_ir/import_ir.h" +#include + #include "toolchain/sem_ir/file.h" namespace Carbon::SemIR {