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

Changeset 278616 in webkit


Ignore:
Timestamp:
Jun 8, 2021, 9:54:34 AM (5 years ago)
Author:
weinig@apple.com
Message:

Add copy of std::span so that we can use it pre-moving to c++20
https://bugs.webkit.org/show_bug.cgi?id=226351

Reviewed by Alex Christensen.

Source/WTF:

Imports a copy of Tristan Brindle's Boost licensed implementation of std::span
from 5d8d366eca918d0ed3d2d196cbeae6abfd874736 of https://github.com/tcbrindle/span.

It has been further modified to rename tcb::span to WTF::Span.

  • LICENSE_1_0-Boost.txt: Added.
  • WTF.xcodeproj/project.pbxproj:
  • wtf/CMakeLists.txt:
  • wtf/Span.h: Added.

Tools:

Add basic WTF::Span test to make sure things compile and work.

  • TestWebKitAPI/CMakeLists.txt:
  • TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
  • TestWebKitAPI/Tests/WTF/Span.cpp: Added.
Location:
trunk
Files:
3 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r278590 r278616  
     12021-06-08  Sam Weinig  <weinig@apple.com>
     2
     3        Add copy of std::span so that we can use it pre-moving to c++20
     4        https://bugs.webkit.org/show_bug.cgi?id=226351
     5
     6        Reviewed by Alex Christensen.
     7
     8        Imports a copy of Tristan Brindle's Boost licensed implementation of std::span
     9        from 5d8d366eca918d0ed3d2d196cbeae6abfd874736 of https://github.com/tcbrindle/span.
     10
     11        It has been further modified to rename tcb::span to WTF::Span.
     12
     13        * LICENSE_1_0-Boost.txt: Added.
     14        * WTF.xcodeproj/project.pbxproj:
     15        * wtf/CMakeLists.txt:
     16        * wtf/Span.h: Added.
     17
    1182021-06-07  Alex Christensen  <achristensen@webkit.org>
    219
  • trunk/Source/WTF/WTF.xcodeproj/project.pbxproj

    r278543 r278616  
    692692                ADF2CE641E39F106006889DB /* MemoryFootprint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MemoryFootprint.h; sourceTree = "<group>"; };
    693693                ADF2CE651E39F106006889DB /* MemoryFootprintCocoa.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MemoryFootprintCocoa.cpp; sourceTree = "<group>"; };
     694                BCA30C7F266D3034000D230C /* Span.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Span.h; sourceTree = "<group>"; };
    694695                C2BCFC3E1F61D13000C9222C /* Language.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Language.cpp; sourceTree = "<group>"; };
    695696                C2BCFC3F1F61D13000C9222C /* Language.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Language.h; sourceTree = "<group>"; };
     
    12581259                                93156C8D262C982200EAE27B /* SortedArrayMap.h */,
    12591260                                79038E05224B05A7004C0738 /* SpanningTree.h */,
     1261                                BCA30C7F266D3034000D230C /* Span.h */,
    12601262                                A8A4730D151A825B004123FF /* Spectrum.h */,
    12611263                                A8A4730E151A825B004123FF /* StackBounds.cpp */,
  • trunk/Source/WTF/wtf/CMakeLists.txt

    r278543 r278616  
    241241    SoftLinking.h
    242242    SortedArrayMap.h
     243    Span.h
    243244    SpanningTree.h
    244245    Spectrum.h
  • trunk/Tools/ChangeLog

    r278611 r278616  
     12021-06-08  Sam Weinig  <weinig@apple.com>
     2
     3        Add copy of std::span so that we can use it pre-moving to c++20
     4        https://bugs.webkit.org/show_bug.cgi?id=226351
     5
     6        Reviewed by Alex Christensen.
     7
     8        Add basic WTF::Span test to make sure things compile and work.
     9
     10        * TestWebKitAPI/CMakeLists.txt:
     11        * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
     12        * TestWebKitAPI/Tests/WTF/Span.cpp: Added.
     13
    1142021-06-08  Sam Weinig  <weinig@apple.com>
    215
  • trunk/Tools/TestWebKitAPI/CMakeLists.txt

    r278035 r278616  
    8585    Tests/WTF/ScopedLambda.cpp
    8686    Tests/WTF/SetForScope.cpp
     87    Tests/WTF/Span.cpp
    8788    Tests/WTF/StdLibExtras.cpp
    8889    Tests/WTF/StringBuilder.cpp
  • trunk/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj

    r278344 r278616  
    982982                BC575BE0126F590D006F0F12 /* PlatformUtilitiesMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = BC131884117114B600B69727 /* PlatformUtilitiesMac.mm */; };
    983983                BC909784125571CF00083756 /* simple.html in Copy Resources */ = {isa = PBXBuildFile; fileRef = BC909778125571AB00083756 /* simple.html */; };
     984                BCA30C7E266D2F43000D230C /* Span.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCA30C7D266D2F43000D230C /* Span.cpp */; };
    984985                BCAA485614A0444C0088FAC4 /* simple-tall.html in Copy Resources */ = {isa = PBXBuildFile; fileRef = BCAA485514A021640088FAC4 /* simple-tall.html */; };
    985986                BCB68042126FBFF100642A61 /* DocumentStartUserScriptAlertCrash_Bundle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCB68041126FBFF100642A61 /* DocumentStartUserScriptAlertCrash_Bundle.cpp */; };
     
    27482749                BC90995D12567BC100083756 /* WKString.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WKString.cpp; sourceTree = "<group>"; };
    27492750                BC9099931256ACF100083756 /* WKStringJSString.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WKStringJSString.cpp; sourceTree = "<group>"; };
     2751                BCA30C7D266D2F43000D230C /* Span.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Span.cpp; sourceTree = "<group>"; };
    27502752                BCAA485514A021640088FAC4 /* simple-tall.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = "simple-tall.html"; sourceTree = "<group>"; };
    27512753                BCAA485714A044D40088FAC4 /* EditorCommands.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = EditorCommands.mm; sourceTree = "<group>"; };
     
    44854487                                33C2C9C02651F5B900E407F6 /* SmallSet.cpp */,
    44864488                                93FCDB33263631560046DD7D /* SortedArrayMap.cpp */,
     4489                                BCA30C7D266D2F43000D230C /* Span.cpp */,
    44874490                                FE2BCDC62470FC7000DEC33B /* StdLibExtras.cpp */,
    44884491                                81B50192140F232300D9EB58 /* StringBuilder.cpp */,
     
    51935196                                A310827221F296FF00C28B97 /* FileSystem.cpp in Sources */,
    51945197                                E3210519261979F300157C67 /* FixedVector.cpp in Sources */,
     5198                                BCA30C7E266D2F43000D230C /* Span.cpp in Sources */,
    51955199                                9310CD381EF708FB0050FFE0 /* Function.cpp in Sources */,
    51965200                                6BFD294C1D5E6C1D008EC968 /* HashCountedSet.cpp in Sources */,
Note: See TracChangeset for help on using the changeset viewer.