Commit 1d804f03 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Drop support for Clang < 3.9

Summary: [Folly] Drop support for Clang < 3.9.

Reviewed By: igorsugak

Differential Revision: D4567233

fbshipit-source-id: cd94c711f0390d249b6736ab292721a477022b02
parent 1a8db4b8
......@@ -205,9 +205,7 @@ public:
constexpr Range(Iter start, size_t size)
: b_(start), e_(start + size) { }
# if !__clang__ || __CLANG_PREREQ(3, 7) // Clang 3.6 crashes on this line
/* implicit */ Range(std::nullptr_t) = delete;
# endif
template <class T = Iter, typename detail::IsCharPointer<T>::type = 0>
constexpr /* implicit */ Range(Iter str)
......
......@@ -15,7 +15,6 @@
*/
#include <folly/Expected.h>
#include <folly/Portability.h>
#include <folly/portability/GTest.h>
#include <algorithm>
......@@ -453,7 +452,7 @@ TEST(Expected, MakeOptional) {
EXPECT_EQ(**exIntPtr, 3);
}
#if __CLANG_PREREQ(3, 6)
#if __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wself-move"
#endif
......@@ -468,7 +467,7 @@ TEST(Expected, SelfAssignment) {
ASSERT_TRUE(b.hasValue() && b.value() == "23333333");
}
#if __CLANG_PREREQ(3, 6)
#if __clang__
#pragma clang diagnostic pop
#endif
......
......@@ -15,7 +15,6 @@
*/
#include <folly/Optional.h>
#include <folly/Portability.h>
#include <folly/portability/GTest.h>
#include <algorithm>
......@@ -460,7 +459,7 @@ TEST(Optional, MakeOptional) {
EXPECT_EQ(**optIntPtr, 3);
}
#if __CLANG_PREREQ(3, 6)
#if __clang__
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wself-move"
#endif
......@@ -475,7 +474,7 @@ TEST(Optional, SelfAssignment) {
ASSERT_TRUE(b.hasValue() && b.value() == 23333333);
}
#if __CLANG_PREREQ(3, 6)
#if __clang__
# pragma clang diagnostic pop
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment