Bug 185176 - Use more C++17
Summary: Use more C++17
Status: RESOLVED DUPLICATE of bug 197131
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on: 185135
Blocks:
  Show dependency treegraph
 
Reported: 2018-05-01 17:06 PDT by JF Bastien
Modified: 2020-03-10 20:43 PDT (History)
23 users (show)

See Also:


Attachments
WIP (30.60 KB, patch)
2018-05-01 17:08 PDT, JF Bastien
jfbastien: commit-queue-
Details | Formatted Diff | Diff
WIP (30.46 KB, patch)
2018-05-01 17:15 PDT, JF Bastien
no flags Details | Formatted Diff | Diff
Patch (20.24 KB, patch)
2018-05-16 11:18 PDT, Yusuke Suzuki
no flags Details | Formatted Diff | Diff
Trial #2 (23.02 KB, patch)
2018-05-16 11:34 PDT, Yusuke Suzuki
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews202 for win-future (12.85 MB, application/zip)
2018-05-16 23:28 PDT, EWS Watchlist
no flags Details
Patch for landing (27.30 KB, patch)
2018-05-17 11:29 PDT, Yusuke Suzuki
no flags Details | Formatted Diff | Diff
Patch for landing (28.57 KB, patch)
2018-05-17 12:29 PDT, Yusuke Suzuki
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews202 for win-future (12.89 MB, application/zip)
2018-05-18 08:14 PDT, EWS Watchlist
no flags Details
Patch (29.68 KB, patch)
2018-05-21 10:15 PDT, Yusuke Suzuki
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description JF Bastien 2018-05-01 17:06:47 PDT
Move the Xcode builds to C++17.
Comment 1 JF Bastien 2018-05-01 17:08:06 PDT
Created attachment 339244 [details]
WIP

WIP, contains changes from https://bugs.webkit.org/show_bug.cgi?id=185159
Comment 2 EWS Watchlist 2018-05-01 17:09:26 PDT
Attachment 339244 [details] did not pass style-queue:


ERROR: Source/WebKit/Shared/SandboxExtension.h:123:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
ERROR: Source/WebKit/Shared/SandboxExtension.h:123:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:61:  in_place_t is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/Optional.h:63:  Missing space before {  [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:63:  Missing space inside { }.  [whitespace/braces] [5]
ERROR: Source/WTF/wtf/Optional.h:1071:  This { should be at the end of the previous line  [whitespace/braces] [4]
Total errors found: 6 in 33 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 JF Bastien 2018-05-01 17:15:42 PDT
Created attachment 339245 [details]
WIP

Fix Linux issue.
Comment 4 EWS Watchlist 2018-05-01 17:18:24 PDT
Attachment 339245 [details] did not pass style-queue:


ERROR: Source/WTF/wtf/StdLibExtras.h:555:  in_place_t is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WTF/wtf/StdLibExtras.h:557:  Missing space before {  [whitespace/braces] [5]
ERROR: Source/WTF/wtf/StdLibExtras.h:557:  Missing space inside { }.  [whitespace/braces] [5]
ERROR: Source/WebKit/Shared/SandboxExtension.h:123:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
ERROR: Source/WebKit/Shared/SandboxExtension.h:123:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/WTF/wtf/Optional.h:1057:  This { should be at the end of the previous line  [whitespace/braces] [4]
Total errors found: 6 in 34 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Arunprasad 2018-05-02 02:22:24 PDT
@jfbastien, What is the minimum Xcode version required to build with this change?
Comment 6 Yusuke Suzuki 2018-05-16 11:18:45 PDT
Created attachment 340503 [details]
Patch
Comment 7 JF Bastien 2018-05-16 11:20:48 PDT
Comment on attachment 340503 [details]
Patch

Is that all that was missing? I had to work around `register` and other issues too. Or was that fixed in other patches?

Anyhow, lgtm if bots happy, assuming Linux also works.
Comment 8 EWS Watchlist 2018-05-16 11:21:34 PDT
Note that there are important steps to take when updating ANGLE. See http://trac.webkit.org/wiki/UpdatingANGLE
Comment 9 EWS Watchlist 2018-05-16 11:21:43 PDT
Attachment 340503 [details] did not pass style-queue:


ERROR: Source/WebCore/ChangeLog:8:  You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible.  [changelog/nonewtests] [5]
Total errors found: 1 in 33 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 10 Yusuke Suzuki 2018-05-16 11:34:03 PDT
Created attachment 340508 [details]
Trial #2
Comment 11 Yusuke Suzuki 2018-05-16 12:15:19 PDT
(In reply to JF Bastien from comment #7)
> Comment on attachment 340503 [details]
> Patch
> 
> Is that all that was missing? I had to work around `register` and other
> issues too. Or was that fixed in other patches?
> 
> Anyhow, lgtm if bots happy, assuming Linux also works.

The patch is a bit shrunk: Just enabling C++17 for Xcode.
In my local environment, it works fine. But the bot cannot use gnu++17 option...
Can we upgrade the bot's clang?
Comment 12 Yusuke Suzuki 2018-05-16 12:17:53 PDT
Currently I'm using C++14 for ANGLE and libwebrtc. libwebrtc requires a bit change to adopt C++17. The change is posted to the upstream[1].

[1]: https://webrtc-review.googlesource.com/c/src/+/77280
Comment 13 EWS Watchlist 2018-05-16 23:28:28 PDT
Comment on attachment 340503 [details]
Patch

Attachment 340503 [details] did not pass win-ews (win):
Output: http://webkit-queues.webkit.org/results/7705670

New failing tests:
http/tests/security/canvas-remote-read-remote-video-blocked-no-crossorigin.html
Comment 14 EWS Watchlist 2018-05-16 23:28:39 PDT
Created attachment 340557 [details]
Archive of layout-test-results from ews202 for win-future

The attached test failures were seen while running run-webkit-tests on the win-ews.
Bot: ews202  Port: win-future  Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Comment 15 Yusuke Suzuki 2018-05-17 11:21:43 PDT
I think the bot is using clang-4 or so. I'll change xcode option to gnu++1z to make EWS green. Please change this option once build bot is upgraded.
Comment 16 Yusuke Suzuki 2018-05-17 11:29:35 PDT
Created attachment 340611 [details]
Patch for landing
Comment 17 Yusuke Suzuki 2018-05-17 12:29:26 PDT
Created attachment 340624 [details]
Patch for landing
Comment 18 EWS Watchlist 2018-05-18 08:14:13 PDT
Comment on attachment 340611 [details]
Patch for landing

Attachment 340611 [details] did not pass win-ews (win):
Output: http://webkit-queues.webkit.org/results/7722016

New failing tests:
http/tests/security/local-video-source-from-remote.html
Comment 19 EWS Watchlist 2018-05-18 08:14:25 PDT
Created attachment 340697 [details]
Archive of layout-test-results from ews202 for win-future

The attached test failures were seen while running run-webkit-tests on the win-ews.
Bot: ews202  Port: win-future  Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Comment 20 Yusuke Suzuki 2018-05-21 10:15:38 PDT
Created attachment 340858 [details]
Patch
Comment 21 Yusuke Suzuki 2018-05-21 22:48:58 PDT
EWS becomes green, let's land it.
Comment 22 Yusuke Suzuki 2018-05-21 23:46:49 PDT
Committed r232052: <https://trac.webkit.org/changeset/232052>
Comment 23 Radar WebKit Bug Importer 2018-05-21 23:48:58 PDT
<rdar://problem/40442803>
Comment 24 Ryan Haddad 2018-05-22 10:18:03 PDT
Though this change is green on EWS and on the webkit.org bots, it causes multiple Apple internal builds to fail. I need to roll this out for now.

Jonathan is going to try to work through some of the build errors that we are seeing so that we can attempt to land this again without any unexpected breakage.
Comment 25 Ryan Haddad 2018-05-22 10:21:56 PDT
Reverted r232052 for reason:

Breaks internal builds.

Committed r232069: <https://trac.webkit.org/changeset/232069>
Comment 26 Alexey Proskuryakov 2020-03-10 20:43:52 PDT
This did happen via bug 197131.

*** This bug has been marked as a duplicate of bug 197131 ***