mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 18:40:16 +01:00
Add missing standard library header inclusions (#5316)
Discovered by clang-tidy.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
||||
#include "common/ostream.h"
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include <cstdlib>
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <system_error>
|
||||
|
||||
namespace Carbon::Testing {
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "testing/base/global_exe_path.h"
|
||||
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
||||
#include "common/check.h"
|
||||
|
||||
@@ -4,7 +4,11 @@
|
||||
|
||||
#include "testing/base/source_gen.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <numeric>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "common/raw_string_ostream.h"
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
// Exceptions. See /LICENSE for license information.
|
||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
|
||||
#include <optional>
|
||||
#include <system_error>
|
||||
|
||||
#include "common/bazel_working_dir.h"
|
||||
#include "common/command_line.h"
|
||||
#include "common/init_llvm.h"
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
#include <gmock/gmock.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "common/set.h"
|
||||
#include "testing/base/global_exe_path.h"
|
||||
#include "toolchain/driver/driver.h"
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
#include "testing/file_test/autoupdate.h"
|
||||
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "absl/strings/str_replace.h"
|
||||
#include "absl/strings/string_view.h"
|
||||
|
||||
@@ -21,9 +21,16 @@
|
||||
|
||||
#include "testing/file_test/file_test_base.h"
|
||||
|
||||
#include <atomic>
|
||||
#include <cstdlib>
|
||||
#include <filesystem>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <system_error>
|
||||
#include <utility>
|
||||
|
||||
#include "absl/flags/flag.h"
|
||||
|
||||
@@ -7,6 +7,11 @@
|
||||
#include <gmock/gmock.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
||||
#include "common/ostream.h"
|
||||
#include "llvm/ADT/StringExtras.h"
|
||||
#include "llvm/ADT/StringSwitch.h"
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
#include "testing/file_test/manifest.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
// The test manifest, produced by `manifest_as_cpp`.
|
||||
// NOLINTNEXTLINE(readability-identifier-naming): Constant in practice.
|
||||
extern const char* CarbonFileTestManifest[];
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "llvm/ADT/ScopeExit.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/ADT/StringMap.h"
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
#include "testing/file_test/test_file.h"
|
||||
|
||||
#include <fstream>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "common/check.h"
|
||||
#include "common/error.h"
|
||||
|
||||
Reference in New Issue
Block a user