mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-01 20:55:58 +01:00
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.
15 lines
504 B
C++
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());
|
|
}
|