summaryrefslogtreecommitdiffstats
path: root/Utilities/IWYU
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-01-22 14:50:37 (GMT)
committerBrad King <brad.king@kitware.com>2018-01-22 14:56:30 (GMT)
commite720a34399f6613bf89321977646871d15c91a1f (patch)
tree629814f25cd779b30d1f1f1ba58b10cfff3732d0 /Utilities/IWYU
parent5c3c70201d225359e235e53132788e6f75c2661b (diff)
downloadCMake-e720a34399f6613bf89321977646871d15c91a1f.zip
CMake-e720a34399f6613bf89321977646871d15c91a1f.tar.gz
CMake-e720a34399f6613bf89321977646871d15c91a1f.tar.bz2
IWYU: Add more workaround mappings for internal bits
Extend our hack section of mappings to work around IWYU incorrectly requiring: * bits/stdint-uintn.h for stdint.h * bits/stdint-intn.h for stdint.h * bits/types/mbstate_t.h for wchar.h
Diffstat (limited to 'Utilities/IWYU')
-rw-r--r--Utilities/IWYU/mapping.imp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Utilities/IWYU/mapping.imp b/Utilities/IWYU/mapping.imp
index 5408402..892cdcb 100644
--- a/Utilities/IWYU/mapping.imp
+++ b/Utilities/IWYU/mapping.imp
@@ -23,8 +23,11 @@
# HACK: check whether this can be removed with next iwyu release.
{ include: [ "<bits/shared_ptr.h>", private, "<memory>", public ] },
{ include: [ "<bits/std_function.h>", private, "<functional>", public ] },
+ { include: [ "<bits/stdint-intn.h>", private, "<stdint.h>", public ] },
+ { include: [ "<bits/stdint-uintn.h>", private, "<stdint.h>", public ] },
{ 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 ] },
{ include: [ "<bits/types/struct_timespec.h>", private, "<time.h>", public ] },
{ include: [ "<bits/types/struct_timeval.h>", private, "<time.h>", public ] },
{ include: [ "<bits/types/struct_tm.h>", private, "<time.h>", public ] },