From 60afab9e44db242afe915afd73fb6f4924d69069 Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Thu, 25 May 2017 00:55:31 +0200 Subject: IWYU: add mapping for std::__decay_and_strip --- Utilities/IWYU/mapping.imp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Utilities/IWYU/mapping.imp b/Utilities/IWYU/mapping.imp index a732c9c..3604c0d 100644 --- a/Utilities/IWYU/mapping.imp +++ b/Utilities/IWYU/mapping.imp @@ -53,6 +53,19 @@ # This will still correctly require "cm_auto_ptr.hxx" for CM_AUTO_PTR. { symbol: [ "cm::auto_ptr", private, "\"cmConfigure.h\"", public ] }, + # __decay_and_strip is used internally in the C++11 standard library. + # IWYU does not classify it as internal and suggests to add . + # To ignore it, we simply map it to a file that is included anyway. + # TODO: Can this be simplified with an @-expression? + #{ symbol: [ "@std::__decay_and_strip<.*>::__type", private, "\"cmConfigure.h\"", public ] }, + { symbol: [ "std::__decay_and_strip::__type", private, "\"cmConfigure.h\"", public ] }, + { symbol: [ "std::__decay_and_strip::__type", private, "\"cmConfigure.h\"", public ] }, + { symbol: [ "std::__decay_and_strip::__type", private, "\"cmConfigure.h\"", public ] }, + { symbol: [ "std::__decay_and_strip &>::__type", private, "\"cmConfigure.h\"", public ] }, + { symbol: [ "std::__decay_and_strip &>::__type", private, "\"cmConfigure.h\"", public ] }, + { symbol: [ "std::__decay_and_strip::__type", private, "\"cmConfigure.h\"", public ] }, + { symbol: [ "std::__decay_and_strip<__gnu_cxx::__normal_iterator > > &>::__type", private, "\"cmConfigure.h\"", public ] }, + # Wrappers for headers added in TR1 / C++11 # { include: [ "", public, "\"cm_array.hxx\"", public ] }, # { include: [ "", public, "\"cm_functional.hxx\"", public ] }, -- cgit v0.12