summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-05-05 21:21:39 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-05-05 22:03:43 (GMT)
commit6a91ee026547b2c9e2906a42c03fc49656470beb (patch)
tree773d0868b6740675a625e13f048c396c945f1292 /Utilities
parent7165065f03625df4ede55a04a7e957cc5dd15a40 (diff)
downloadCMake-6a91ee026547b2c9e2906a42c03fc49656470beb.zip
CMake-6a91ee026547b2c9e2906a42c03fc49656470beb.tar.gz
CMake-6a91ee026547b2c9e2906a42c03fc49656470beb.tar.bz2
IWYU: add mapping for cm::auto_ptr
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/IWYU/mapping.imp6
1 files changed, 6 insertions, 0 deletions
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, "<map>", public ] },
#{ symbol: [ "std::pair", private, "<set>", public ] },
+ # IWYU wrongly suggests to include "cm_auto_ptr.hxx" in some places. This
+ # might be a misinterpretation of a template specialization in <utility>.
+ # 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: [ "<array>", public, "\"cm_array.hxx\"", public ] },
# { include: [ "<functional>", public, "\"cm_functional.hxx\"", public ] },