mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 08:27:05 +00:00
diag: Add System enumerator to all diagnostics
Describes what Tint system raised the diagnostic. Use this information in the fuzzers to distinguish between expected and unexpected failure cases in the Transform fuzzer tests. Fixed: chromium:1206407 Fixed: chromium:1207154 Change-Id: I3b807acafe384a2fc363d2a4165a29693450b3cf Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/55254 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
committed by
Tint LUCI CQ
parent
261643bb9f
commit
ffd28e2e1a
File diff suppressed because it is too large
Load Diff
@@ -409,6 +409,21 @@ class Resolver {
|
||||
/// @param node the AST node.
|
||||
void Mark(const ast::Node* node);
|
||||
|
||||
/// Adds the given error message to the diagnostics
|
||||
/// [DEPRECATED] Remove all codes
|
||||
void AddError(const char* code,
|
||||
const std::string& msg,
|
||||
const Source& source) const;
|
||||
|
||||
/// Adds the given error message to the diagnostics
|
||||
void AddError(const std::string& msg, const Source& source) const;
|
||||
|
||||
/// Adds the given warning message to the diagnostics
|
||||
void AddWarning(const std::string& msg, const Source& source) const;
|
||||
|
||||
/// Adds the given note message to the diagnostics
|
||||
void AddNote(const std::string& msg, const Source& source) const;
|
||||
|
||||
template <typename CALLBACK>
|
||||
void TraverseCallChain(FunctionInfo* from,
|
||||
FunctionInfo* to,
|
||||
|
||||
Reference in New Issue
Block a user