ast_to_proto.h 572 B

123456789101112131415161718
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. #ifndef CARBON_EXPLORER_FUZZING_AST_TO_PROTO_H_
  5. #define CARBON_EXPLORER_FUZZING_AST_TO_PROTO_H_
  6. #include "explorer/ast/ast.h"
  7. #include "testing/fuzzing/carbon.pb.h"
  8. namespace Carbon::Testing {
  9. // Builds a protobuf representation of `ast`.
  10. auto AstToProto(const AST& ast) -> Fuzzing::Carbon;
  11. } // namespace Carbon::Testing
  12. #endif // CARBON_EXPLORER_FUZZING_AST_TO_PROTO_H_