Files
carbon-lang/migrate_cpp/BUILD
T
Jon Ross-Perkins a3b1c433be Remove legacy repo_name settings (#3772)
I'd kept these in to separate the bazel module update from the BUILD
file changes, then forgot about it. I think all of these can be cleanly
removed now. I think it's something we should clean up for consistency
with the bazel central repository names; I think it's best to reduce
that divergence.

llvm_zlib and llvm_zstd remain because of how llvm depends on the
particular names.
2024-03-13 22:58:56 +00:00

61 lines
1.5 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
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
load("@rules_python//python:defs.bzl", "py_binary")
py_binary(
name = "migrate_cpp",
srcs = ["migrate_cpp.py"],
data = [
":clang_tidy.yaml",
"//migrate_cpp/cpp_refactoring",
],
python_version = "PY3",
)
cc_library(
name = "output_segment",
hdrs = ["output_segment.h"],
deps = [
"//common:check",
"@llvm-project//clang:ast",
],
)
cc_library(
name = "rewriter",
srcs = ["rewriter.cpp"],
hdrs = ["rewriter.h"],
visibility = [
# For dependency checking. Remove once it has a binary using it.
"//bazel/check_deps:__pkg__",
],
deps = [
":output_segment",
"//common:check",
"@llvm-project//clang:ast",
"@llvm-project//clang:basic",
"@llvm-project//clang:frontend",
"@llvm-project//clang:lex",
"@llvm-project//clang:tooling",
"@llvm-project//clang:tooling_core",
"@llvm-project//llvm:Support",
],
)
cc_test(
name = "rewriter_test",
size = "small",
srcs = ["rewriter_test.cpp"],
deps = [
":rewriter",
"//testing/base:gtest_main",
"@googletest//:gtest",
"@llvm-project//clang:ast",
"@llvm-project//clang:frontend",
"@llvm-project//clang:tooling",
],
)