AST fuzzer: reduce depth for unary wrapping
Reduces the extent to which programs with unparsable expressions are generated by limiting the recursion depth allowed for wrapping unary operators. Also updates some nested namespaces to use more modern C++. Change-Id: I4637c20c9c72c6b315c04c9322d069f0e35859b3 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/85580 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Antonio Maiorano <amaiorano@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Alastair Donaldson <afdx@google.com> Auto-Submit: Alastair Donaldson <afdx@google.com>
This commit is contained in:
parent
a730eb738e
commit
28674d7c50
|
@ -28,7 +28,7 @@ namespace fuzzers {
|
|||
namespace ast_fuzzer {
|
||||
|
||||
namespace {
|
||||
const size_t kMaxExpressionSize = 100;
|
||||
const size_t kMaxExpressionSize = 50;
|
||||
} // namespace
|
||||
|
||||
MutationList MutationFinderWrapUnaryOperators::FindMutations(
|
||||
|
|
Loading…
Reference in New Issue