From e8efcbec8c7e66e6e7ab45354189b9fc4166938e Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 15 May 2023 16:50:13 -0400 Subject: iwyu: ignore `std::remove_reference` requirements This removes some includes from some existing files. --- Source/cmCMakeHostSystemInformationCommand.cxx | 1 - Source/cmString.cxx | 1 - Tests/CMakeLib/testStringAlgorithms.cxx | 3 +-- Utilities/IWYU/mapping.imp | 1 + 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/cmCMakeHostSystemInformationCommand.cxx b/Source/cmCMakeHostSystemInformationCommand.cxx index 8bfd7c8..1c00f15 100644 --- a/Source/cmCMakeHostSystemInformationCommand.cxx +++ b/Source/cmCMakeHostSystemInformationCommand.cxx @@ -8,7 +8,6 @@ #include #include #include -#include #include #include diff --git a/Source/cmString.cxx b/Source/cmString.cxx index aefaa64..f7f6293 100644 --- a/Source/cmString.cxx +++ b/Source/cmString.cxx @@ -9,7 +9,6 @@ #include #include #include -#include namespace cm { diff --git a/Tests/CMakeLib/testStringAlgorithms.cxx b/Tests/CMakeLib/testStringAlgorithms.cxx index 1bb23df..78442ba 100644 --- a/Tests/CMakeLib/testStringAlgorithms.cxx +++ b/Tests/CMakeLib/testStringAlgorithms.cxx @@ -1,12 +1,11 @@ /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying file Copyright.txt or https://cmake.org/licensing for details. */ -#include // IWYU pragma: keep +#include "cmConfigure.h" // IWYU pragma: keep #include #include #include -#include #include #include diff --git a/Utilities/IWYU/mapping.imp b/Utilities/IWYU/mapping.imp index 6443632..366c517 100644 --- a/Utilities/IWYU/mapping.imp +++ b/Utilities/IWYU/mapping.imp @@ -99,6 +99,7 @@ { symbol: [ "std::enable_if > >::type", private, "\"cmConfigure.h\"", public ] }, { symbol: [ "std::enable_if > >::type", private, "\"cmConfigure.h\"", public ] }, { symbol: [ "__gnu_cxx::__enable_if::__type", private, "\"cmConfigure.h\"", public ] }, + { symbol: [ "std::remove_reference, std::allocator > &>::type", private, "\"cmConfigure.h\"", public ] }, { symbol: [ "std::remove_reference::type", private, "\"cmConfigure.h\"", public ] }, # Wrappers for 3rd-party libraries -- cgit v0.12