From 1d804f037c302280d3d89ac408056ea3cfe7989f Mon Sep 17 00:00:00 2001 From: Yedidya Feldblum Date: Thu, 16 Feb 2017 14:45:30 -0800 Subject: [PATCH] Drop support for Clang < 3.9 Summary: [Folly] Drop support for Clang < 3.9. Reviewed By: igorsugak Differential Revision: D4567233 fbshipit-source-id: cd94c711f0390d249b6736ab292721a477022b02 --- folly/Range.h | 2 -- folly/test/ExpectedTest.cpp | 5 ++--- folly/test/OptionalTest.cpp | 5 ++--- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/folly/Range.h b/folly/Range.h index eb53f937..d2077bdb 100644 --- a/folly/Range.h +++ b/folly/Range.h @@ -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 ::type = 0> constexpr /* implicit */ Range(Iter str) diff --git a/folly/test/ExpectedTest.cpp b/folly/test/ExpectedTest.cpp index d8291d0f..da2ede70 100644 --- a/folly/test/ExpectedTest.cpp +++ b/folly/test/ExpectedTest.cpp @@ -15,7 +15,6 @@ */ #include -#include #include #include @@ -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 diff --git a/folly/test/OptionalTest.cpp b/folly/test/OptionalTest.cpp index 3968040f..b7484dfa 100644 --- a/folly/test/OptionalTest.cpp +++ b/folly/test/OptionalTest.cpp @@ -15,7 +15,6 @@ */ #include -#include #include #include @@ -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 -- 2.34.1