⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 244653 in webkit


Ignore:
Timestamp:
Apr 25, 2019, 10:41:29 AM (7 years ago)
Author:
achristensen@apple.com
Message:

Start using C++17
https://bugs.webkit.org/show_bug.cgi?id=197131

.:

Reviewed by Darin Adler.

  • Source/cmake/OptionsMSVC.cmake:
  • Source/cmake/WebKitCompilerFlags.cmake:

Source/bmalloc:

Reviewed by Darin Adler.

  • Configurations/Base.xcconfig:

Source/JavaScriptCore:

Reviewed by Darin Alder.

  • Configurations/Base.xcconfig:

Source/ThirdParty:

Reviewed by Darin Adler.

  • gtest/xcode/Config/General.xcconfig:

Source/ThirdParty/ANGLE:

Reviewed by Darin Adler.

  • Configurations/Base.xcconfig:

Source/ThirdParty/libwebrtc:

Reviewed by Darin Adler.

  • Configurations/Base.xcconfig:

Source/WebCore:

Reviewed by Darin Adler.

  • Configurations/Base.xcconfig:
  • DerivedSources.make:

Source/WebCore/PAL:

Reviewed by Darin Adler.

  • Configurations/Base.xcconfig:

Source/WebInspectorUI:

Reviewed by Darin Adler.

  • Configurations/Base.xcconfig:

Source/WebKit:

Reviewed by Darin Adler.

  • Configurations/Base.xcconfig:
  • DerivedSources.make:

Source/WebKitLegacy/mac:

Reviewed by Darin Adler.

  • Configurations/Base.xcconfig:

Source/WTF:

Reviewed by Darin Adler.

  • Configurations/Base.xcconfig:
  • wtf/CMakeLists.txt:
  • wtf/Variant.h:

(WTF::switchOn):

Tools:

Reviewed by Darin Adler.

  • DumpRenderTree/mac/Configurations/Base.xcconfig:
  • MiniBrowser/Configurations/Base.xcconfig:
  • MobileMiniBrowser/Configurations/Base.xcconfig:
  • TestWebKitAPI/Configurations/Base.xcconfig:
  • WebKitTestRunner/Configurations/Base.xcconfig:
Location:
trunk
Files:
36 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r244635 r244653  
     12019-04-25  Alex Christensen  <achristensen@webkit.org>
     2
     3        Start using C++17
     4        https://bugs.webkit.org/show_bug.cgi?id=197131
     5
     6        Reviewed by Darin Adler.
     7
     8        * Source/cmake/OptionsMSVC.cmake:
     9        * Source/cmake/WebKitCompilerFlags.cmake:
     10
    1112019-04-24  Carlos Garcia Campos  <cgarcia@igalia.com>
    212
  • trunk/Source/JavaScriptCore/ChangeLog

    r244652 r244653  
     12019-04-25  Alex Christensen  <achristensen@webkit.org>
     2
     3        Start using C++17
     4        https://bugs.webkit.org/show_bug.cgi?id=197131
     5
     6        Reviewed by Darin Alder.
     7
     8        * Configurations/Base.xcconfig:
     9
    1102019-04-25  Alex Christensen  <achristensen@webkit.org>
    211
  • trunk/Source/JavaScriptCore/Configurations/Base.xcconfig

    r243396 r244653  
    3434ALWAYS_SEARCH_USER_PATHS = NO;
    3535
    36 CLANG_CXX_LANGUAGE_STANDARD = gnu++14;
     36CLANG_CXX_LANGUAGE_STANDARD = gnu++17;
    3737CLANG_CXX_LIBRARY = libc++;
    3838CLANG_ENABLE_OBJC_WEAK = YES;
  • trunk/Source/ThirdParty/ANGLE/ChangeLog

    r243396 r244653  
     12019-04-25  Alex Christensen  <achristensen@webkit.org>
     2
     3        Start using C++17
     4        https://bugs.webkit.org/show_bug.cgi?id=197131
     5
     6        Reviewed by Darin Adler.
     7
     8        * Configurations/Base.xcconfig:
     9
    1102019-03-22  Keith Rollin  <krollin@apple.com>
    211
  • trunk/Source/ThirdParty/ANGLE/Configurations/Base.xcconfig

    r243396 r244653  
    1111ALWAYS_SEARCH_USER_PATHS = NO;
    1212
    13 CLANG_CXX_LANGUAGE_STANDARD = gnu++14;
     13CLANG_CXX_LANGUAGE_STANDARD = gnu++17;
    1414CLANG_CXX_LIBRARY = libc++;
    1515CLANG_ENABLE_OBJC_WEAK = YES;
  • trunk/Source/ThirdParty/ChangeLog

    r237621 r244653  
     12019-04-25  Alex Christensen  <achristensen@webkit.org>
     2
     3        Start using C++17
     4        https://bugs.webkit.org/show_bug.cgi?id=197131
     5
     6        Reviewed by Darin Adler.
     7
     8        * gtest/xcode/Config/General.xcconfig:
     9
    1102018-10-30  Don Olmstead  <don.olmstead@sony.com>
    211
  • trunk/Source/ThirdParty/gtest/xcode/Config/General.xcconfig

    r235613 r244653  
    5252
    5353// Force C++14
    54 CLANG_CXX_LANGUAGE_STANDARD = gnu++14;
     54CLANG_CXX_LANGUAGE_STANDARD = gnu++17;
    5555
    5656// not sure why apple defaults this on, but it's pretty risky
  • trunk/Source/ThirdParty/libwebrtc/ChangeLog

    r244568 r244653  
     12019-04-25  Alex Christensen  <achristensen@webkit.org>
     2
     3        Start using C++17
     4        https://bugs.webkit.org/show_bug.cgi?id=197131
     5
     6        Reviewed by Darin Adler.
     7
     8        * Configurations/Base.xcconfig:
     9
    1102019-04-23  Alex Christensen  <achristensen@webkit.org>
    211
  • trunk/Source/ThirdParty/libwebrtc/Configurations/Base.xcconfig

    r243396 r244653  
    1313ALWAYS_SEARCH_USER_PATHS = NO;
    1414
    15 CLANG_CXX_LANGUAGE_STANDARD = gnu++14;
     15CLANG_CXX_LANGUAGE_STANDARD = gnu++17;
    1616CLANG_CXX_LIBRARY = libc++;
    1717CLANG_ENABLE_OBJC_ARC = YES;
  • trunk/Source/WTF/ChangeLog

    r244652 r244653  
     12019-04-25  Alex Christensen  <achristensen@webkit.org>
     2
     3        Start using C++17
     4        https://bugs.webkit.org/show_bug.cgi?id=197131
     5
     6        Reviewed by Darin Adler.
     7
     8        * Configurations/Base.xcconfig:
     9        * wtf/CMakeLists.txt:
     10        * wtf/Variant.h:
     11        (WTF::switchOn):
     12
    1132019-04-25  Alex Christensen  <achristensen@webkit.org>
    214
  • trunk/Source/WTF/Configurations/Base.xcconfig

    r243396 r244653  
    3434ALWAYS_SEARCH_USER_PATHS = NO;
    3535
    36 CLANG_CXX_LANGUAGE_STANDARD = gnu++14;
     36CLANG_CXX_LANGUAGE_STANDARD = gnu++17;
    3737CLANG_CXX_LIBRARY = libc++;
    3838CLANG_ENABLE_OBJC_ARC = YES;
  • trunk/Source/WTF/wtf/Variant.h

    r237429 r244653  
    20452045
    20462046template<class V, class... F>
    2047 auto switchOn(V&& v, F&&... f) -> decltype(visit(makeVisitor(std::forward<F>(f)...), std::forward<V>(v)))
     2047auto switchOn(V&& v, F&&... f) -> decltype(WTF::visit(makeVisitor(std::forward<F>(f)...), std::forward<V>(v)))
    20482048{
    2049     return visit(makeVisitor(std::forward<F>(f)...), std::forward<V>(v));
     2049    return WTF::visit(makeVisitor(std::forward<F>(f)...), std::forward<V>(v));
    20502050}
    20512051
  • trunk/Source/WebCore/ChangeLog

    r244644 r244653  
     12019-04-25  Alex Christensen  <achristensen@webkit.org>
     2
     3        Start using C++17
     4        https://bugs.webkit.org/show_bug.cgi?id=197131
     5
     6        Reviewed by Darin Adler.
     7
     8        * Configurations/Base.xcconfig:
     9        * DerivedSources.make:
     10
    1112019-04-25  Commit Queue  <commit-queue@webkit.org>
    212
  • trunk/Source/WebCore/Configurations/Base.xcconfig

    r243396 r244653  
    3434ALWAYS_SEARCH_USER_PATHS = NO;
    3535
    36 CLANG_CXX_LANGUAGE_STANDARD = gnu++14;
     36CLANG_CXX_LANGUAGE_STANDARD = gnu++17;
    3737CLANG_CXX_LIBRARY = libc++;
    3838CLANG_ENABLE_OBJC_WEAK = YES;
  • trunk/Source/WebCore/DerivedSources.make

    r244582 r244653  
    11161116endif
    11171117
    1118 ifeq ($(shell $(CC) -std=gnu++14 -x c++ -E -P -dM $(SDK_FLAGS) $(TARGET_TRIPLE_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep ' WTF_PLATFORM_IOS_FAMILY ' | cut -d' ' -f3), 1)
     1118ifeq ($(shell $(CC) -std=gnu++17 -x c++ -E -P -dM $(SDK_FLAGS) $(TARGET_TRIPLE_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep ' WTF_PLATFORM_IOS_FAMILY ' | cut -d' ' -f3), 1)
    11191119    WTF_PLATFORM_IOS_FAMILY = 1
    11201120else
     
    11221122endif
    11231123
    1124 ifeq ($(shell $(CC) -std=gnu++14 -x c++ -E -P -dM $(SDK_FLAGS) $(TARGET_TRIPLE_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep ' WTF_PLATFORM_MAC ' | cut -d' ' -f3), 1)
     1124ifeq ($(shell $(CC) -std=gnu++17 -x c++ -E -P -dM $(SDK_FLAGS) $(TARGET_TRIPLE_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep ' WTF_PLATFORM_MAC ' | cut -d' ' -f3), 1)
    11251125    WTF_PLATFORM_MAC = 1
    11261126else
     
    11281128endif
    11291129
    1130 ifeq ($(shell $(CC) -std=gnu++14 -x c++ -E -P -dM $(SDK_FLAGS) $(TARGET_TRIPLE_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep USE_APPLE_INTERNAL_SDK | cut -d' ' -f3), 1)
     1130ifeq ($(shell $(CC) -std=gnu++17 -x c++ -E -P -dM $(SDK_FLAGS) $(TARGET_TRIPLE_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep USE_APPLE_INTERNAL_SDK | cut -d' ' -f3), 1)
    11311131    USE_APPLE_INTERNAL_SDK = 1
    11321132else
     
    11341134endif
    11351135
    1136 ifeq ($(shell $(CC) -std=gnu++14 -x c++ -E -P -dM $(SDK_FLAGS) $(TARGET_TRIPLE_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep HAVE_OS_DARK_MODE_SUPPORT | cut -d' ' -f3), 1)
     1136ifeq ($(shell $(CC) -std=gnu++17 -x c++ -E -P -dM $(SDK_FLAGS) $(TARGET_TRIPLE_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep HAVE_OS_DARK_MODE_SUPPORT | cut -d' ' -f3), 1)
    11371137    HAVE_OS_DARK_MODE_SUPPORT = 1
    11381138else
     
    11401140endif
    11411141
    1142 ifeq ($(shell $(CC) -std=gnu++14 -x c++ -E -P -dM $(SDK_FLAGS) $(TARGET_TRIPLE_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep ENABLE_ORIENTATION_EVENTS | cut -d' ' -f3), 1)
     1142ifeq ($(shell $(CC) -std=gnu++17 -x c++ -E -P -dM $(SDK_FLAGS) $(TARGET_TRIPLE_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep ENABLE_ORIENTATION_EVENTS | cut -d' ' -f3), 1)
    11431143    ENABLE_ORIENTATION_EVENTS = 1
    11441144endif
    11451145
    1146 ifeq ($(shell $(CC) -std=gnu++14 -x c++ -E -P -dM $(SDK_FLAGS) $(TARGET_TRIPLE_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep ENABLE_MEDIA_SOURCE | cut -d' ' -f3), 1)
     1146ifeq ($(shell $(CC) -std=gnu++17 -x c++ -E -P -dM $(SDK_FLAGS) $(TARGET_TRIPLE_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep ENABLE_MEDIA_SOURCE | cut -d' ' -f3), 1)
    11471147        ENABLE_MEDIA_SOURCE = 1
    11481148endif
  • trunk/Source/WebCore/PAL/ChangeLog

    r244644 r244653  
     12019-04-25  Alex Christensen  <achristensen@webkit.org>
     2
     3        Start using C++17
     4        https://bugs.webkit.org/show_bug.cgi?id=197131
     5
     6        Reviewed by Darin Adler.
     7
     8        * Configurations/Base.xcconfig:
     9
    1102019-04-25  Commit Queue  <commit-queue@webkit.org>
    211
  • trunk/Source/WebCore/PAL/Configurations/Base.xcconfig

    r243396 r244653  
    3434ALWAYS_SEARCH_USER_PATHS = NO;
    3535
    36 CLANG_CXX_LANGUAGE_STANDARD = gnu++14;
     36CLANG_CXX_LANGUAGE_STANDARD = gnu++17;
    3737CLANG_CXX_LIBRARY = libc++;
    3838CLANG_ENABLE_OBJC_WEAK = YES;
  • trunk/Source/WebCore/platform/ios/LegacyTileGrid.mm

    r243895 r244653  
    132132        toRemove.append(std::make_pair(distance, index));
    133133        ALLOW_DEPRECATED_DECLARATIONS_BEGIN
    134         std::push_heap(toRemove.begin(), toRemove.end(), std::ptr_fun(isFartherAway<TileIndex>));
     134        std::push_heap(toRemove.begin(), toRemove.end(), isFartherAway<TileIndex>);
    135135        if (toRemove.size() > tilesToRemoveCount) {
    136             std::pop_heap(toRemove.begin(), toRemove.end(), std::ptr_fun(isFartherAway<TileIndex>));
     136            std::pop_heap(toRemove.begin(), toRemove.end(), isFartherAway<TileIndex>);
    137137            toRemove.removeLast();
    138138        }
  • trunk/Source/WebInspectorUI/ChangeLog

    r244616 r244653  
     12019-04-25  Alex Christensen  <achristensen@webkit.org>
     2
     3        Start using C++17
     4        https://bugs.webkit.org/show_bug.cgi?id=197131
     5
     6        Reviewed by Darin Adler.
     7
     8        * Configurations/Base.xcconfig:
     9
    1102019-04-24  Nikita Vasilyev  <nvasilyev@apple.com>
    211
  • trunk/Source/WebInspectorUI/Configurations/Base.xcconfig

    r243396 r244653  
    1818FRAMEWORK_SEARCH_PATHS = $(WK_QUOTED_OVERRIDE_FRAMEWORKS_DIR) $(SYSTEM_LIBRARY_DIR)/PrivateFrameworks $(inherited);
    1919
    20 CLANG_CXX_LANGUAGE_STANDARD = gnu++14;
     20CLANG_CXX_LANGUAGE_STANDARD = gnu++17;
    2121CLANG_CXX_LIBRARY = libc++;
    2222CLANG_ENABLE_OBJC_WEAK = YES;
  • trunk/Source/WebKit/ChangeLog

    r244649 r244653  
     12019-04-25  Alex Christensen  <achristensen@webkit.org>
     2
     3        Start using C++17
     4        https://bugs.webkit.org/show_bug.cgi?id=197131
     5
     6        Reviewed by Darin Adler.
     7
     8        * Configurations/Base.xcconfig:
     9        * DerivedSources.make:
     10
    1112019-04-25  Alexander Mikhaylenko  <exalm7659@gmail.com>
    212
  • trunk/Source/WebKit/Configurations/Base.xcconfig

    r243396 r244653  
    3232ALWAYS_SEARCH_USER_PATHS = NO;
    3333
    34 CLANG_CXX_LANGUAGE_STANDARD = gnu++14;
     34CLANG_CXX_LANGUAGE_STANDARD = gnu++17;
    3535CLANG_CXX_LIBRARY = libc++;
    3636CLANG_ENABLE_OBJC_WEAK = YES;
  • trunk/Source/WebKit/DerivedSources.make

    r243671 r244653  
    270270
    271271ifeq ($(OS),MACOS)
    272 ifeq ($(shell $(CC) -std=gnu++14 -x c++ -E -P -dM $(SDK_FLAGS) $(TARGET_TRIPLE_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep ' WTF_PLATFORM_IOS_FAMILY ' | cut -d' ' -f3), 1)
     272ifeq ($(shell $(CC) -std=gnu++17 -x c++ -E -P -dM $(SDK_FLAGS) $(TARGET_TRIPLE_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep ' WTF_PLATFORM_IOS_FAMILY ' | cut -d' ' -f3), 1)
    273273        AUTOMATION_BACKEND_PLATFORM_ARGUMENTS = --platform iOS
    274274else
  • trunk/Source/WebKitLegacy/mac/ChangeLog

    r244644 r244653  
     12019-04-25  Alex Christensen  <achristensen@webkit.org>
     2
     3        Start using C++17
     4        https://bugs.webkit.org/show_bug.cgi?id=197131
     5
     6        Reviewed by Darin Adler.
     7
     8        * Configurations/Base.xcconfig:
     9
    1102019-04-25  Commit Queue  <commit-queue@webkit.org>
    211
  • trunk/Source/WebKitLegacy/mac/Configurations/Base.xcconfig

    r243396 r244653  
    3434ALWAYS_SEARCH_USER_PATHS = NO;
    3535
    36 CLANG_CXX_LANGUAGE_STANDARD = gnu++14;
     36CLANG_CXX_LANGUAGE_STANDARD = gnu++17;
    3737CLANG_CXX_LIBRARY = libc++;
    3838CLANG_ENABLE_OBJC_WEAK = YES;
  • trunk/Source/bmalloc/ChangeLog

    r244634 r244653  
     12019-04-25  Alex Christensen  <achristensen@webkit.org>
     2
     3        Start using C++17
     4        https://bugs.webkit.org/show_bug.cgi?id=197131
     5
     6        Reviewed by Darin Adler.
     7
     8        * Configurations/Base.xcconfig:
     9
    1102019-04-24  Yusuke Suzuki  <ysuzuki@apple.com>
    211
  • trunk/Source/bmalloc/Configurations/Base.xcconfig

    r243396 r244653  
    3232ALWAYS_SEARCH_USER_PATHS = NO;
    3333
    34 CLANG_CXX_LANGUAGE_STANDARD = gnu++14;
     34CLANG_CXX_LANGUAGE_STANDARD = gnu++17;
    3535CLANG_CXX_LIBRARY = libc++;
    3636CLANG_ENABLE_OBJC_ARC = YES;
  • trunk/Source/cmake/OptionsMSVC.cmake

    r237789 r244653  
    2727endif ()
    2828
    29 # Enable C++14
     29# Enable C++17
    3030# https://docs.microsoft.com/en-us/cpp/build/reference/std-specify-language-standard-version
    31 add_compile_options(/std:c++14)
     31add_compile_options(/std:c++17)
    3232
    3333# Specify the source code encoding
  • trunk/Source/cmake/WebKitCompilerFlags.cmake

    r243179 r244653  
    105105        WEBKIT_APPEND_GLOBAL_CXX_FLAGS(-fno-rtti)
    106106
    107         check_cxx_compiler_flag("-std=c++14" CXX_COMPILER_SUPPORTS_CXX14)
    108         if (CXX_COMPILER_SUPPORTS_CXX14)
    109             WEBKIT_APPEND_GLOBAL_CXX_FLAGS(-std=c++14)
     107        check_cxx_compiler_flag("-std=c++17" CXX_COMPILER_SUPPORTS_CXX17)
     108        if (CXX_COMPILER_SUPPORTS_CXX17)
     109            WEBKIT_APPEND_GLOBAL_CXX_FLAGS(-std=c++17)
    110110        else ()
    111             message(FATAL_ERROR "Compiler with C++14 support is required")
     111            message(FATAL_ERROR "Compiler with C++17 support is required")
    112112        endif ()
    113113
  • trunk/Tools/ChangeLog

    r244644 r244653  
     12019-04-25  Alex Christensen  <achristensen@webkit.org>
     2
     3        Start using C++17
     4        https://bugs.webkit.org/show_bug.cgi?id=197131
     5
     6        Reviewed by Darin Adler.
     7
     8        * DumpRenderTree/mac/Configurations/Base.xcconfig:
     9        * MiniBrowser/Configurations/Base.xcconfig:
     10        * MobileMiniBrowser/Configurations/Base.xcconfig:
     11        * TestWebKitAPI/Configurations/Base.xcconfig:
     12        * WebKitTestRunner/Configurations/Base.xcconfig:
     13
    1142019-04-25  Commit Queue  <commit-queue@webkit.org>
    215
  • trunk/Tools/DumpRenderTree/mac/Configurations/Base.xcconfig

    r241990 r244653  
    3636FRAMEWORK_SEARCH_PATHS[sdk=iphone*] = $(WK_PRIVATE_FRAMEWORK_STUBS_DIR);
    3737
    38 CLANG_CXX_LANGUAGE_STANDARD = gnu++14;
     38CLANG_CXX_LANGUAGE_STANDARD = gnu++17;
    3939CLANG_CXX_LIBRARY = libc++;
    4040CLANG_ENABLE_OBJC_WEAK = YES;
  • trunk/Tools/MiniBrowser/Configurations/Base.xcconfig

    r241990 r244653  
    3232GCC_PREPROCESSOR_DEFINITIONS = DISABLE_LEGACY_WEBKIT_DEPRECATIONS $(inherited);
    3333
    34 CLANG_CXX_LANGUAGE_STANDARD = gnu++14;
     34CLANG_CXX_LANGUAGE_STANDARD = gnu++17;
    3535CLANG_CXX_LIBRARY = libc++;
    3636CLANG_ENABLE_OBJC_WEAK = YES;
  • trunk/Tools/MobileMiniBrowser/Configurations/Base.xcconfig

    r240176 r244653  
    3232ALWAYS_SEARCH_USER_PATHS = NO;
    3333CLANG_ANALYZER_NONNULL = YES;
    34 CLANG_CXX_LANGUAGE_STANDARD = gnu++14;
     34CLANG_CXX_LANGUAGE_STANDARD = gnu++17;
    3535CLANG_CXX_LIBRARY = libc++;
    3636CLANG_ENABLE_MODULES = YES;
  • trunk/Tools/TestWebKitAPI/Configurations/Base.xcconfig

    r241990 r244653  
    3030USE_INTERNAL_SDK_Release = $(HAVE_INTERNAL_SDK);
    3131
    32 CLANG_CXX_LANGUAGE_STANDARD = gnu++14;
     32CLANG_CXX_LANGUAGE_STANDARD = gnu++17;
    3333CLANG_CXX_LIBRARY = libc++;
    3434CLANG_ENABLE_OBJC_WEAK = YES;
  • trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/Proxy.mm

    r244594 r244653  
    2828#import "TCPServer.h"
    2929#import "Utilities.h"
     30#import <WebKit/WKProcessPoolPrivate.h>
    3031#import <WebKit/WKWebsiteDataStorePrivate.h>
    3132#import <WebKit/WebKit.h>
     33#import <WebKit/_WKProcessPoolConfiguration.h>
    3234#import <WebKit/_WKWebsiteDataStoreConfiguration.h>
    3335#import <wtf/RetainPtr.h>
     
    6567        const char* reply = ""
    6668        "HTTP/1.1 200 OK\r\n"
     69        "Strict-Transport-Security: max-age=16070400; includeSubDomains\r\n"
    6770        "Content-Length: 34\r\n\r\n"
    6871        "<script>alert('success!')</script>";
     
    7174    });
    7275
     76    RetainPtr<NSString> tempDir = NSTemporaryDirectory();
     77    WTFLogAlways("ORIGINAL TEMP DIR %@", tempDir.get());
     78    if ([tempDir hasSuffix:@"/"])
     79        tempDir = [tempDir substringWithRange:NSMakeRange(0, [tempDir length] - 1)];
     80   
     81    WTFLogAlways("TEMP DIR %@", tempDir.get());
     82    auto poolConfiguration = adoptNS([_WKProcessPoolConfiguration new]);
     83    [poolConfiguration setHSTSStorageDirectory:tempDir.get()];
    7384    auto storeConfiguration = adoptNS([_WKWebsiteDataStoreConfiguration new]);
    7485    [storeConfiguration setHTTPSProxy:[NSURL URLWithString:[NSString stringWithFormat:@"https://127.0.0.1:%d/", server.port()]]];
    7586    auto viewConfiguration = adoptNS([WKWebViewConfiguration new]);
    7687    [viewConfiguration setWebsiteDataStore:[[[WKWebsiteDataStore alloc] _initWithConfiguration:storeConfiguration.get()] autorelease]];
     88    [viewConfiguration setProcessPool:[[[WKProcessPool alloc] _initWithConfiguration:poolConfiguration.get()] autorelease]];
    7789    auto webView = adoptNS([[WKWebView alloc] initWithFrame:CGRectMake(0, 0, 100, 100) configuration:viewConfiguration.get()]);
    7890    auto delegate = adoptNS([ProxyDelegate new]);
     
    8294    [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://example.com/"]]];
    8395    TestWebKitAPI::Util::run(&receivedAlert);
     96   
     97    RetainPtr<NSString> filePath = [tempDir stringByAppendingPathComponent:@"HSTS.plist"];
     98    WTFLogAlways("WAITING FOR FILE TO BE WRITTEN TO %@", filePath.get());
     99    while (![[NSFileManager defaultManager] fileExistsAtPath:filePath.get()])
     100        TestWebKitAPI::Util::spinRunLoop();
     101    [[NSFileManager defaultManager] removeItemAtPath:filePath.get() error:nil];
     102    WTFLogAlways("DONE");
    84103}
    85104
  • trunk/Tools/WebKitTestRunner/Configurations/Base.xcconfig

    r241990 r244653  
    3030USE_INTERNAL_SDK_Release = $(HAVE_INTERNAL_SDK);
    3131
    32 CLANG_CXX_LANGUAGE_STANDARD = gnu++14;
     32CLANG_CXX_LANGUAGE_STANDARD = gnu++17;
    3333CLANG_CXX_LIBRARY = libc++;
    3434CLANG_ENABLE_OBJC_WEAK = YES;
Note: See TracChangeset for help on using the changeset viewer.