diff options
author | Brad King <brad.king@kitware.com> | 2019-01-15 14:59:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-15 15:00:50 (GMT) |
commit | cd0881be61149346649f3aef9b69d58bd7a2549a (patch) | |
tree | c61c16ad2cc901cba8b0a9be49693268c7ceea41 /Utilities | |
parent | 2033c1e56fd3d9367fc4eb9a2595c3c592575d54 (diff) | |
download | CMake-cd0881be61149346649f3aef9b69d58bd7a2549a.zip CMake-cd0881be61149346649f3aef9b69d58bd7a2549a.tar.gz CMake-cd0881be61149346649f3aef9b69d58bd7a2549a.tar.bz2 |
IWYU: Update CMake code for IWYU built with Clang 6
IWYU now correctly requires `<utility>` for `std::move`. It also
requires a container header when used via a range-based for loop.
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/IWYU/mapping.imp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Utilities/IWYU/mapping.imp b/Utilities/IWYU/mapping.imp index c5231bb..aee8a69 100644 --- a/Utilities/IWYU/mapping.imp +++ b/Utilities/IWYU/mapping.imp @@ -55,6 +55,9 @@ # HACK: iwyu wrongly thinks that <system_error> is needed for std::hash { symbol: [ "std::hash", private, "<functional>", public ] }, + # HACK: iwyu thinks we use a libstdc++ private type + { symbol: [ "__gnu_cxx::size_t", private, "<cstddef>", public ] }, + # __decay_and_strip is used internally in the C++11 standard library. # IWYU does not classify it as internal and suggests to add <type_traits>. # To ignore it, we simply map it to a file that is included anyway. |