From 850b4d990c1bf15b70cc5dab9794066ab0f1d948 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 5 Apr 2023 16:09:12 -0400 Subject: IWYU: Add mapping for 'std::remove_reference::type' IWYU sometimes thinks that `cmCMakeLanguageCommand.cxx` mentions this type and suggests including `` for it. The type is only used internally by standard library functions. Work around the problem by mapping the offending name to a file that we always include. --- Utilities/IWYU/mapping.imp | 1 + 1 file changed, 1 insertion(+) (limited to 'Utilities') diff --git a/Utilities/IWYU/mapping.imp b/Utilities/IWYU/mapping.imp index 1afad43a64..6443632511 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::type", private, "\"cmConfigure.h\"", public ] }, # Wrappers for 3rd-party libraries { include: [ "@<.*curl/curlver.h>", private, "", public ] }, -- cgit v1.2.1