From 06c0d59c172abd699d48c3ddf883ccc6f723ae9c Mon Sep 17 00:00:00 2001 From: Kyle Edwards Date: Mon, 5 Oct 2020 14:34:25 -0400 Subject: IWYU: Map <*> headers to headers For headers which exclusively contain things that were not present in C++11. --- Tests/CMakeLib/testCMFilesystemPath.cxx | 1 - Utilities/IWYU/mapping.imp | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Tests/CMakeLib/testCMFilesystemPath.cxx b/Tests/CMakeLib/testCMFilesystemPath.cxx index ee0ef0b..579ba99 100644 --- a/Tests/CMakeLib/testCMFilesystemPath.cxx +++ b/Tests/CMakeLib/testCMFilesystemPath.cxx @@ -8,7 +8,6 @@ #include #include -#include namespace { diff --git a/Utilities/IWYU/mapping.imp b/Utilities/IWYU/mapping.imp index 66cb282..c2aced5 100644 --- a/Utilities/IWYU/mapping.imp +++ b/Utilities/IWYU/mapping.imp @@ -27,7 +27,7 @@ { include: [ "", private, "", public ] }, { include: [ "", private, "", public ] }, { include: [ "", private, "", public ] }, - { include: [ "", private, "", public ] }, + { include: [ "", private, "", private ] }, { include: [ "", private, "", public ] }, { include: [ "", private, "", public ] }, { include: [ "", private, "", public ] }, @@ -116,6 +116,11 @@ { include: [ "", public, "\"cmsys/FStream.hxx\"", public ] }, { include: [ "", public, "\"cmsys/FStream.hxx\"", public ] }, + { include: [ "", private, "", public ] }, + { include: [ "", private, "", public ] }, + { include: [ "", private, "", public ] }, + { include: [ "", private, "", public ] }, + # major and minor are used as macro arguments. Those are false matches. { symbol: [ "major", private, "\"cmVersion.h\"", public ] }, { symbol: [ "minor", private, "\"cmVersion.h\"", public ] }, -- cgit v0.12