From 0d80574a5bd6cfe21827a7e0da2ddc84773363a3 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Thu, 7 Nov 2024 15:51:08 +0100 Subject: build_engine: Implement IWYU suggestions Requires the use of a pragma to avoid wrong removal suggestion for path_hash.hpp. Co-authored-by: Maksim Denisov --- src/utils/cpp/path_hash.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/utils') diff --git a/src/utils/cpp/path_hash.hpp b/src/utils/cpp/path_hash.hpp index 2f433c30..15587be9 100644 --- a/src/utils/cpp/path_hash.hpp +++ b/src/utils/cpp/path_hash.hpp @@ -15,14 +15,17 @@ #ifndef INCLUDED_SRC_UTILS_CPP_PATH_HASH_HPP #define INCLUDED_SRC_UTILS_CPP_PATH_HASH_HPP -#include -#include +// IWYU pragma: always_keep // NOLINTNEXTLINE(cppcoreguidelines-macro-usage) #define GLIBCXX_11_4 20230528 // gcc/DATESTAMP of version 11.4 #if (defined(__GLIBCXX__) and _GLIBCXX_RELEASE < 12 and \ !(_GLIBCXX_RELEASE == 11 and __GLIBCXX__ >= GLIBCXX_11_4)) or \ (defined(_LIBCPP_VERSION) and _LIBCPP_VERSION < 16000) + +#include +#include + // std::hash is missing for // - GNU's libstdc++ < 11.4 // - LLVM's libcxx < 16 (see https://reviews.llvm.org/D125394) -- cgit v1.2.3