summaryrefslogtreecommitdiffstats
path: root/libcxx/include/experimental/filesystem
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-04-04 01:05:59 +0000
committerEric Fiselier <eric@efcs.ca>2017-04-04 01:05:59 +0000
commit3896bf7453f2c807f2fb3de55b978da433fa5aec (patch)
tree68ce756b40dd32874329dde77ff92f1fe534e29d /libcxx/include/experimental/filesystem
parent13fc411e390dcfbb65be20551ee78b6143d121a1 (diff)
downloadbcm5719-llvm-3896bf7453f2c807f2fb3de55b978da433fa5aec.tar.gz
bcm5719-llvm-3896bf7453f2c807f2fb3de55b978da433fa5aec.zip
Work around recent -Wshadow changes in Clang
llvm-svn: 299407
Diffstat (limited to 'libcxx/include/experimental/filesystem')
-rw-r--r--libcxx/include/experimental/filesystem11
1 files changed, 11 insertions, 0 deletions
diff --git a/libcxx/include/experimental/filesystem b/libcxx/include/experimental/filesystem
index cf62ca27ab8..04180d1792e 100644
--- a/libcxx/include/experimental/filesystem
+++ b/libcxx/include/experimental/filesystem
@@ -1091,7 +1091,18 @@ class _LIBCPP_TYPE_VIS path::iterator
{
public:
typedef bidirectional_iterator_tag iterator_category;
+
+ // FIXME: As of 3/April/2017 Clang warns on `value_type` shadowing the
+ // definition in path. Clang should be fixed and this should be removed.
+#if defined(__clang__)
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wshadow"
+#endif
typedef path value_type;
+#if defined(__clang__)
+#pragma clang diagnostic pop
+#endif
+
typedef std::ptrdiff_t difference_type;
typedef const path* pointer;
typedef const path& reference;
OpenPOWER on IntegriCloud