diff --git a/Source/cmCMakeHostSystemInformationCommand.cxx b/Source/cmCMakeHostSystemInformationCommand.cxx index 8bfd7c87c7..1c00f15435 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 aefaa6465e..f7f62932ce 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 1bb23df1f8..78442ba3fe 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 6443632511..366c5175f0 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