Configure clang plugin to check raw pointers in containers Configure Clang's raw-ptr-plugin to detect raw pointer types stored inside container member fields (such as std::vector<T*>, absl::flat_hash_set<T*>, etc.) to expand MiraclePtr coverage. - Add clang_raw_ptr_plugin_config_file to default GN args pointing to //src/utils/raw_ptr_plugin_config.yaml. - Add src/utils/raw_ptr_plugin_config.yaml defining included container types (base::flat_tree, std::vector, std::deque, std::set, absl::flat_hash_set, etc.). - Update the clang_plugin template in src/utils/BUILD.gn to forward inputs, cflags, and configs. - Update raw_ptr_check in src/utils/BUILD.gn to pass config-path to the plugin when enable_check_container_fields is true, and register the config file as a target input. Bug:b/551978862 Change-Id: I31f959a9d15ab6b7a64ac73fa24603772a900ec2 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/339495 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Daniel Angulo <angdaniel@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.