Files
carbon-lang/explorer/fuzzing/ast_to_proto.h
T
Jon Ross-Perkins 60c9b202f6 Relocate fuzzer files and the explorer_fuzzer rule. (#3017)
Putting fuzzer files under //testing to emphasize the testonly aspect
(consolidates bazel and common subdirectories). The attributes on
explorer_fuzzer are also a little skewed from what's desirable; it's
been working okay, but this should still be a refinement.
2023-07-25 13:27:56 +00:00

19 lines
572 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
#ifndef CARBON_EXPLORER_FUZZING_AST_TO_PROTO_H_
#define CARBON_EXPLORER_FUZZING_AST_TO_PROTO_H_
#include "explorer/ast/ast.h"
#include "testing/fuzzing/carbon.pb.h"
namespace Carbon::Testing {
// Builds a protobuf representation of `ast`.
auto AstToProto(const AST& ast) -> Fuzzing::Carbon;
} // namespace Carbon::Testing
#endif // CARBON_EXPLORER_FUZZING_AST_TO_PROTO_H_