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:
Alastair Donaldson 2022-04-06 15:59:44 +00:00 committed by Tint LUCI CQ
parent a730eb738e
commit 28674d7c50
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ namespace fuzzers {
namespace ast_fuzzer {
namespace {
const size_t kMaxExpressionSize = 100;
const size_t kMaxExpressionSize = 50;
} // namespace
MutationList MutationFinderWrapUnaryOperators::FindMutations(