Files
carbon-lang/explorer/fuzzing/explorer_fuzzer.cpp
T
Jon Ross-Perkins b07f9295d7 Stop printing per-input results in fuzzer (#2780)
Right now, running the fuzzer in fuzzing mode is pretty noisy due to this output; it makes it hard to see the fuzzer's own progress output. It's also not really needed: users can run explorer on inputs more directly, without using this tool (albeit with fuzzverter), if they want to see detailed results.
2023-04-19 11:55:47 -07:00

15 lines
504 B
C++

// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include <libfuzzer/libfuzzer_macro.h>
#include "common/error.h"
#include "explorer/fuzzing/fuzzer_util.h"
#include "llvm/Support/raw_ostream.h"
DEFINE_TEXT_PROTO_FUZZER(const Carbon::Fuzzing::Carbon& input) {
// Only verifying it doesn't crash.
(void)Carbon::ParseAndExecute(input.compilation_unit());
}