From 6a91ee026547b2c9e2906a42c03fc49656470beb Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Fri, 5 May 2017 23:21:39 +0200 Subject: IWYU: add mapping for cm::auto_ptr --- Utilities/IWYU/mapping.imp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Utilities/IWYU/mapping.imp b/Utilities/IWYU/mapping.imp index cfa90cc..31313e5 100644 --- a/Utilities/IWYU/mapping.imp +++ b/Utilities/IWYU/mapping.imp @@ -47,6 +47,12 @@ #{ symbol: [ "std::pair", private, "", public ] }, #{ symbol: [ "std::pair", private, "", public ] }, + # IWYU wrongly suggests to include "cm_auto_ptr.hxx" in some places. This + # might be a misinterpretation of a template specialization in . + # As a workaround, map the symbol auto_ptr to "cmConfigure.h". + # This will still correctly require "cm_auto_ptr.hxx" for CM_AUTO_PTR. + { symbol: [ "cm::auto_ptr", 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