dawn-cmake/src/validator
Ben Clayton 6b4924fb0e Add TINT_UNREACHABLE() and TINT_ICE() helper macros
Appends an error message with the tint compiler source location to the
provided diagnositic list, and then calls the global error handler if
one is set.
Tests and the sample app now register an error handler to print the
diagnostic list to stderr and abort when NDEBUG is not defined.

All uses of assert(false) have been fixed up to use these macros.

Change-Id: I2f63e51ed86ac23883301d280070bd1a357c6cb2
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/41620
Commit-Queue: dan sinclair <dsinclair@chromium.org>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
2021-02-17 20:13:34 +00:00
..
validator.cc Migrate from using ast::Module to Program 2021-01-26 16:57:10 +00:00
validator.h Migrate from using ast::Module to Program 2021-01-26 16:57:10 +00:00
validator_builtins_test.cc ProgramBuilder: Remove storage parameter from [Global]Const() 2021-02-17 00:26:52 +00:00
validator_control_block_test.cc ProgramBuilder: Remove storage parameter from [Global]Const() 2021-02-17 00:26:52 +00:00
validator_function_test.cc ProgramBuilder: Remove storage parameter from [Global]Const() 2021-02-17 00:26:52 +00:00
validator_impl.cc Add TINT_UNREACHABLE() and TINT_ICE() helper macros 2021-02-17 20:13:34 +00:00
validator_impl.h [validation] Validate globals in declared order 2021-02-09 23:22:32 +00:00
validator_test.cc Add TINT_UNREACHABLE() and TINT_ICE() helper macros 2021-02-17 20:13:34 +00:00
validator_test_helper.cc Split Program into Program and ProgramBuilder 2021-01-26 16:57:10 +00:00
validator_test_helper.h Validation tests: Check the Program is valid 2021-02-10 21:47:04 +00:00
validator_type_test.cc ProgramBuilder: Remove storage parameter from [Global]Const() 2021-02-17 00:26:52 +00:00