summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-11-27 13:52:31 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-11-27 13:52:37 (GMT)
commit784e429d1fa4635bad640d69b8207bfcb1750eb7 (patch)
tree24e599bea0ec983ba85da6f49ff0a577492f4342
parent08f66764b320efb6b023febb3e2e4787f2e6c976 (diff)
parente5fdbcc9da3855f5301f62d2d7ba39ad039ce7d4 (diff)
downloadCMake-784e429d1fa4635bad640d69b8207bfcb1750eb7.zip
CMake-784e429d1fa4635bad640d69b8207bfcb1750eb7.tar.gz
CMake-784e429d1fa4635bad640d69b8207bfcb1750eb7.tar.bz2
Merge topic 'iwyu-workaround'
e5fdbcc9 IWYU: Add more mappings for std::__decay_and_strip Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1516
-rw-r--r--Utilities/IWYU/mapping.imp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Utilities/IWYU/mapping.imp b/Utilities/IWYU/mapping.imp
index 3240edf..6477d59 100644
--- a/Utilities/IWYU/mapping.imp
+++ b/Utilities/IWYU/mapping.imp
@@ -52,11 +52,13 @@
# __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.
+ # Use '-Xiwyu -v7' to see the fully qualified names that need this.
# TODO: Can this be simplified with an @-expression?
#{ symbol: [ "@std::__decay_and_strip<.*>::__type", private, "\"cmConfigure.h\"", public ] },
{ symbol: [ "std::__decay_and_strip<cmCommand *&>::__type", private, "\"cmConfigure.h\"", public ] },
{ symbol: [ "std::__decay_and_strip<cmGeneratorTarget *&>::__type", private, "\"cmConfigure.h\"", public ] },
{ symbol: [ "std::__decay_and_strip<cmFindCommon::PathLabel &>::__type", private, "\"cmConfigure.h\"", public ] },
+ { symbol: [ "std::__decay_and_strip<cmSearchPath>::__type", private, "\"cmConfigure.h\"", public ] },
{ symbol: [ "std::__decay_and_strip<std::basic_string<char> &>::__type", private, "\"cmConfigure.h\"", public ] },
{ symbol: [ "std::__decay_and_strip<const std::basic_string<char> &>::__type", private, "\"cmConfigure.h\"", public ] },
{ symbol: [ "std::__decay_and_strip<cmFindPackageCommand::PathLabel &>::__type", private, "\"cmConfigure.h\"", public ] },