dawn-cmake/fuzzers/tint_ast_fuzzer
Shiyu Liu 0c22b1aaea Update node_id_map & FindMutators structure
Added function in node_id_map to check a given id is valid and fresh.

Currently, the structure of FindMutators declares node_id_map as const, which causes issues when we want to call `GetFreshId` from the argument that is passed by reference. A simple work around is to pass a non-const node_id_map as argument directly. That way `GetFreshId` function in node_id_map can continue to be non-const and conveniently update next fresh id whenever a fresh id has been taken.

Change-Id: Ia7e1d247cf92dfefd2ef7e7c1b4bf32363d9ce3f
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/61100
Reviewed-by: Paul Thomson <paulthomson@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Paul Thomson <paulthomson@google.com>
2021-08-10 16:43:15 +00:00
..
mutation_finders Update node_id_map & FindMutators structure 2021-08-10 16:43:15 +00:00
mutations fuzzers: Switch AST fuzzers to new generator API 2021-07-14 12:49:32 +00:00
protobufs fuzzers: Disable clang warning for clang 12 2021-07-13 20:04:51 +00:00
BUILD.gn Add gn build support for spirv-tools + AST fuzzers 2021-07-16 20:56:55 +00:00
CMakeLists.txt Implement AST fuzzer 2021-07-13 12:01:25 +00:00
cli.cc Fix AST fuzzer message serialization 2021-07-16 17:50:04 +00:00
cli.h Fix AST fuzzer message serialization 2021-07-16 17:50:04 +00:00
fuzzer.cc Fix null char in AST fuzzer 2021-07-26 11:25:17 +00:00
mt_rng.cc Implement AST fuzzer 2021-07-13 12:01:25 +00:00
mt_rng.h Implement AST fuzzer 2021-07-13 12:01:25 +00:00
mutation.cc fuzzers: Fix function not returning a value warning 2021-07-19 09:35:19 +00:00
mutation.h Implement AST fuzzer 2021-07-13 12:01:25 +00:00
mutation_finder.cc Implement AST fuzzer 2021-07-13 12:01:25 +00:00
mutation_finder.h Update node_id_map & FindMutators structure 2021-08-10 16:43:15 +00:00
mutator.cc Update node_id_map & FindMutators structure 2021-08-10 16:43:15 +00:00
mutator.h Implement AST fuzzer 2021-07-13 12:01:25 +00:00
node_id_map.cc Update node_id_map & FindMutators structure 2021-08-10 16:43:15 +00:00
node_id_map.h Update node_id_map & FindMutators structure 2021-08-10 16:43:15 +00:00
probability_context.cc Implement AST fuzzer 2021-07-13 12:01:25 +00:00
probability_context.h Implement AST fuzzer 2021-07-13 12:01:25 +00:00
random_number_generator.cc Implement AST fuzzer 2021-07-13 12:01:25 +00:00
random_number_generator.h Implement AST fuzzer 2021-07-13 12:01:25 +00:00
util.h Fix infinite loop 2021-08-07 17:33:20 +00:00