Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@StephanTLavavej
Copy link
Contributor

@StephanTLavavej StephanTLavavej commented Nov 22, 2024

cf74749

Include <chrono> for chrono_literals.

Reviewed by Fujii Hironori.

The C++ Standard requires the <chrono> header to be included before
using the user-defined literals in the chrono_literals namespace.
WorkQueue.cpp was incorrectly assuming that including <thread>
would drag in these chrono UDLs, but this assumption will be broken
by an upcoming update of Microsoft Visual C++ (expected to ship in
VS 2022 17.13). Including <chrono> is portable and backwards-compatible.

No tests added - this is purely a compile-time fix, and if the code
builds, it's good.

* WebKit/Tools/TestWebKitAPI/Tests/WTF/WorkQueue.cpp: Include <chrono>.

Canonical link: https://commits.webkit.org/287203@main

fbef012

Misc iOS, visionOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 win
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug ✅ 🧪 wpe-wk2 ✅ 🧪 win-tests
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ✅ 🧪 api-wpe
✅ 🧪 ios-wk2-wpt ✅ 🧪 mac-wk1 ✅ 🛠 wpe-cairo
✅ 🧪 api-ios ✅ 🧪 mac-wk2 ✅ 🛠 gtk
✅ 🛠 vision ❌ 🧪 mac-AS-debug-wk2 ✅ 🧪 gtk-wk2
✅ 🛠 vision-sim ✅ 🧪 mac-wk2-stress ✅ 🧪 api-gtk
✅ 🧪 vision-wk2 ✅ 🧪 mac-intel-wk2
✅ 🛠 🧪 unsafe-merge ✅ 🛠 tv
✅ 🛠 tv-sim
✅ 🛠 watch
✅ 🛠 watch-sim

@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Nov 23, 2024
@Constellation
Copy link
Member

Hi! Can you follow to the instructions in https://webkit.org/contributing-code/ ? WebKit requires specific format in commit message.

@StephanTLavavej
Copy link
Contributor Author

I've amended my commit message to try to follow the conventions.

@fujii fujii added unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing and removed merging-blocked Applied to prevent a change from being merged labels Dec 2, 2024
Reviewed by Fujii Hironori.

The C++ Standard requires the <chrono> header to be included before
using the user-defined literals in the chrono_literals namespace.
WorkQueue.cpp was incorrectly assuming that including <thread>
would drag in these chrono UDLs, but this assumption will be broken
by an upcoming update of Microsoft Visual C++ (expected to ship in
VS 2022 17.13). Including <chrono> is portable and backwards-compatible.

No tests added - this is purely a compile-time fix, and if the code
builds, it's good.

* WebKit/Tools/TestWebKitAPI/Tests/WTF/WorkQueue.cpp: Include <chrono>.

Canonical link: https://commits.webkit.org/287203@main
@webkit-commit-queue webkit-commit-queue changed the title Include <chrono> for chrono_literals Include <chrono> for chrono_literals. Dec 2, 2024
@webkit-commit-queue
Copy link
Collaborator

Committed 287203@main (cf74749): https://commits.webkit.org/287203@main

Reviewed commits have been landed. Closing PR #37058 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit cf74749 into WebKit:main Dec 2, 2024
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Dec 2, 2024
@StephanTLavavej StephanTLavavej deleted the include-chrono branch December 2, 2024 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants