mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-12 06:45:16 +00:00
validator: add IsStorable helper function
Bug: tint:419 Change-Id: Ib15aa819a032d8412fb3bc162b29a02c331f56b8 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/37960 Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: David Neto <dneto@google.com> Auto-Submit: David Neto <dneto@google.com>
This commit is contained in:
committed by
Commit Bot service account
parent
d7335fa974
commit
20f4d1daca
@@ -17,6 +17,7 @@
|
||||
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
#include <vector>
|
||||
|
||||
#include "src/ast/assignment_statement.h"
|
||||
@@ -147,6 +148,12 @@ class ValidatorImpl {
|
||||
bool ValidateConstructedTypes(
|
||||
const std::vector<ast::type::Type*>& constructed_types);
|
||||
|
||||
/// Returns true if the given type is storable. This uses and
|
||||
/// updates `storable_` and `not_storable_`.
|
||||
/// @param type the given type
|
||||
/// @returns true if the given type is storable.
|
||||
bool IsStorable(ast::type::Type* type);
|
||||
|
||||
private:
|
||||
const ast::Module& module_;
|
||||
diag::List diags_;
|
||||
|
||||
Reference in New Issue
Block a user