mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 22:18:10 +00:00
* initial fuzzer proto * visibility change * use newer protocol buffer version which has the defs.bzl bug fixed * Adjusted fix_cc_deps to work with protobuf external repo * explicitly load rules_cc to avoid a frozenset bug in the version loaded by protobuf * use explit deps, use llvm's zlib * restored cxx settings * deps change * Cleaned up WORKSPACE and changed the test to read carbon sources from testdata * updated comment * adapted to new ErrorOr return value * proto buffer 3.19.2 -> 3.19.4 * changed comment * Apply suggestions from code review Co-authored-by: Jon Meow <jperkins@google.com> * Apply suggestions from code review Co-authored-by: Jon Meow <jperkins@google.com> * Update executable_semantics/fuzzing/BUILD Co-authored-by: Jon Meow <jperkins@google.com> * addressed review comments * updated Unimplemented error message * Addressed review comments * more review comments * switched to loading protobuf via rules_proto() * Ignore protobuf headers in fix_cc_deps.py until the script supports alias rules * renamed repeated proto fields to be plural * added @zlib to check_non_test_cc_deps * Update common/fuzzing/BUILD Co-authored-by: Jon Meow <jperkins@google.com> * review comments * set is_omitted_expression for return value Co-authored-by: Jon Meow <jperkins@google.com>
39 lines
1.2 KiB
Python
39 lines
1.2 KiB
Python
# 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
|
|
|
|
cc_library(
|
|
name = "ast_to_proto_lib",
|
|
srcs = ["ast_to_proto.cpp"],
|
|
hdrs = ["ast_to_proto.h"],
|
|
deps = [
|
|
"//common/fuzzing:carbon_cc_proto",
|
|
"//executable_semantics/ast",
|
|
"//executable_semantics/ast:declaration",
|
|
"//executable_semantics/ast:expression",
|
|
"//executable_semantics/ast:generic_binding",
|
|
"@llvm-project//llvm:Support",
|
|
],
|
|
)
|
|
|
|
cc_test(
|
|
name = "ast_to_proto_test",
|
|
srcs = ["ast_to_proto_test.cpp"],
|
|
args = [
|
|
"$(location //executable_semantics:data/prelude.carbon)",
|
|
"$(locations //executable_semantics/testdata:carbon_files)",
|
|
],
|
|
data = [
|
|
"//executable_semantics:data/prelude.carbon",
|
|
"//executable_semantics/testdata:carbon_files",
|
|
],
|
|
deps = [
|
|
":ast_to_proto_lib",
|
|
"//common/fuzzing:carbon_cc_proto",
|
|
"//executable_semantics/syntax",
|
|
"@com_google_googletest//:gtest",
|
|
"@com_google_protobuf//:protobuf_headers",
|
|
"@llvm-project//llvm:Support",
|
|
],
|
|
)
|