summaryrefslogtreecommitdiff
path: root/Utilities/IWYU
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-10-05 14:34:25 -0400
committerKyle Edwards <kyle.edwards@kitware.com>2020-10-08 13:40:21 -0400
commit06c0d59c172abd699d48c3ddf883ccc6f723ae9c (patch)
treef18377e8eb231d4a7bd2ae14c9b7066443410a19 /Utilities/IWYU
parent8c4c658ab062f2920448a02fe3a5d42fe3d48876 (diff)
downloadcmake-06c0d59c172abd699d48c3ddf883ccc6f723ae9c.tar.gz
IWYU: Map <*> headers to <cm/*> headers
For headers which exclusively contain things that were not present in C++11.
Diffstat (limited to 'Utilities/IWYU')
-rw-r--r--Utilities/IWYU/mapping.imp7
1 files changed, 6 insertions, 1 deletions
diff --git a/Utilities/IWYU/mapping.imp b/Utilities/IWYU/mapping.imp
index 66cb28263a..c2aced594c 100644
--- a/Utilities/IWYU/mapping.imp
+++ b/Utilities/IWYU/mapping.imp
@@ -27,7 +27,7 @@
{ include: [ "<bits/std_abs.h>", private, "<stdlib.h>", public ] },
{ include: [ "<bits/stdint-intn.h>", private, "<stdint.h>", public ] },
{ include: [ "<bits/stdint-uintn.h>", private, "<stdint.h>", public ] },
- { include: [ "<bits/string_view.tcc>", private, "<string_view>", public ] },
+ { include: [ "<bits/string_view.tcc>", private, "<string_view>", private ] },
{ include: [ "<bits/time.h>", private, "<time.h>", public ] },
{ include: [ "<bits/types/clock_t.h>", private, "<time.h>", public ] },
{ include: [ "<bits/types/mbstate_t.h>", private, "<wchar.h>", public ] },
@@ -116,6 +116,11 @@
{ include: [ "<ostream>", public, "\"cmsys/FStream.hxx\"", public ] },
{ include: [ "<fstream>", public, "\"cmsys/FStream.hxx\"", public ] },
+ { include: [ "<filesystem>", private, "<cm/filesystem>", public ] },
+ { include: [ "<optional>", private, "<cm/optional>", public ] },
+ { include: [ "<shared_mutex>", private, "<cm/shared_mutex>", public ] },
+ { include: [ "<string_view>", private, "<cm/string_view>", 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 ] },