| commit | 10cbb7e35aaefc47143c7104043545d5bd0fb9e3 | [log] [tgz] |
|---|---|---|
| author | dan sinclair <dsinclair@chromium.org> | Wed Oct 22 08:00:50 2025 -0700 |
| committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Oct 22 08:00:50 2025 -0700 |
| tree | a05298c7bbc492e9876e97ee1806dc4435eb6466 | |
| parent | b094b276cd2d01266c7da75997705f2f918c0d7b [diff] |
Fix parsing of a semicolon before a break-if. When parsing a `continuing` statement we handle the `break-if` parsing specially so it doesn't collide with the general `break` parsing. To do so, we check explicitly and then if it doesn't match we hand off to the statement parsing. In the statement parsing a `;` by itself is ignored. This means we can accidentally jump over the `break-if` parsing with a `;`, land in the statement parsing and mistake the `break-if` for a break and error that the `break` is missing a `;`. Fix this by skipping `;` in the continuing code before checking if we have a `break-if`. Fixed: 453961764 Change-Id: I02b209d9994df17d5f65e8432269473bd2ef60ea Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/268038 Auto-Submit: dan sinclair <dsinclair@chromium.org> Commit-Queue: James Price <jrprice@google.com> Reviewed-by: James Price <jrprice@google.com>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h version that Dawn implements.webgpu.h.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.