summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-11-07 15:27:18 +0100
committerMaksim Denisov <denisov.maksim@huawei.com>2024-11-14 14:23:05 +0100
commit5ffc62e1df6a85cc4e2874e80fe73919ef75b0df (patch)
tree78c0ee517fba81088c323980a1b08df1f9af285d
parentfaba5b7d385311f08d421ee99511912b55f7582f (diff)
downloadjustbuild-5ffc62e1df6a85cc4e2874e80fe73919ef75b0df.tar.gz
auth: Implement IWYU suggestions
-rw-r--r--src/buildtool/auth/TARGETS2
-rw-r--r--src/buildtool/auth/authentication.hpp9
2 files changed, 6 insertions, 5 deletions
diff --git a/src/buildtool/auth/TARGETS b/src/buildtool/auth/TARGETS
index a66aae44..f54b3cc2 100644
--- a/src/buildtool/auth/TARGETS
+++ b/src/buildtool/auth/TARGETS
@@ -3,7 +3,7 @@
, "name": ["auth"]
, "hdrs": ["authentication.hpp"]
, "deps":
- [ ["@", "gsl", "", "gsl"]
+ [ ["@", "fmt", "", "fmt"]
, ["src/buildtool/logging", "log_level"]
, ["src/buildtool/logging", "logging"]
, ["src/utils/cpp", "expected"]
diff --git a/src/buildtool/auth/authentication.hpp b/src/buildtool/auth/authentication.hpp
index ace2e60d..24c0cf93 100644
--- a/src/buildtool/auth/authentication.hpp
+++ b/src/buildtool/auth/authentication.hpp
@@ -15,17 +15,18 @@
#ifndef INCLUDED_SRC_BUILDTOOL_AUTH_AUTHENTICATION_HPP
#define INCLUDED_SRC_BUILDTOOL_AUTH_AUTHENTICATION_HPP
-#include <cerrno> // for errno
-#include <cstdint>
+#include <cerrno> // for errno
#include <cstring> // for strerror()
+#include <exception>
#include <filesystem>
#include <fstream>
+#include <iterator>
#include <optional>
-#include <streambuf>
#include <string>
#include <utility>
+#include <variant>
-#include "gsl/gsl"
+#include "fmt/core.h"
#include "src/buildtool/logging/log_level.hpp"
#include "src/buildtool/logging/logger.hpp"
#include "src/utils/cpp/expected.hpp"