diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-11-08 15:54:26 +0100 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-11-14 14:23:05 +0100 |
commit | 3f24fdd9606fde402a585c57073147037378f6d1 (patch) | |
tree | 2001afd643761c7fd83c144790a922e8ca62c8a0 /src/buildtool/file_system/file_root.hpp | |
parent | 8c990dbbfa1e2db1f72b54f6bbfe52c1f2c019b8 (diff) | |
download | justbuild-3f24fdd9606fde402a585c57073147037378f6d1.tar.gz |
file_system: Implement IWYU suggestions
Diffstat (limited to 'src/buildtool/file_system/file_root.hpp')
-rw-r--r-- | src/buildtool/file_system/file_root.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/buildtool/file_system/file_root.hpp b/src/buildtool/file_system/file_root.hpp index f9085f52..4fb587c2 100644 --- a/src/buildtool/file_system/file_root.hpp +++ b/src/buildtool/file_system/file_root.hpp @@ -15,14 +15,20 @@ #ifndef INCLUDED_SRC_BUILDTOOL_FILE_SYSTEM_FILE_ROOT_HPP #define INCLUDED_SRC_BUILDTOOL_FILE_SYSTEM_FILE_ROOT_HPP +#include <algorithm> +#include <cstddef> +#include <exception> #include <filesystem> +#include <functional> #include <iterator> #include <memory> +#include <optional> #include <string> #include <unordered_map> #include <utility> #include <variant> +#include "fmt/core.h" #include "gsl/gsl" #include "nlohmann/json.hpp" #include "src/buildtool/common/artifact_description.hpp" @@ -32,11 +38,15 @@ #include "src/buildtool/common/protocol_traits.hpp" #include "src/buildtool/crypto/hash_function.hpp" #include "src/buildtool/file_system/file_system_manager.hpp" +#include "src/buildtool/file_system/git_cas.hpp" #include "src/buildtool/file_system/git_tree.hpp" +#include "src/buildtool/file_system/object_type.hpp" #include "src/buildtool/logging/log_level.hpp" #include "src/buildtool/logging/logger.hpp" #include "src/utils/cpp/concepts.hpp" -#include "src/utils/cpp/json.hpp" +#include "src/utils/cpp/expected.hpp" +// Keep it to ensure fmt::format works on JSON objects +#include "src/utils/cpp/json.hpp" // IWYU pragma: keep /// FilteredIterator is an helper class to allow for iteration over /// directory-only or file-only entries stored inside the class |