mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 19:18:11 +00:00
Continuing with #3070. Just a dir and file rename (only prefix change is lexer_file_test). Everything in the lex dir should be marked as a move. Note, I think this closes #3070. There may still be further cleanup later, but the organizational changes suggested there are being completed. --------- Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
82 lines
1.9 KiB
Python
82 lines
1.9 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")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
cc_library(
|
|
name = "builtin_kind",
|
|
srcs = ["builtin_kind.cpp"],
|
|
hdrs = ["builtin_kind.h"],
|
|
textual_hdrs = ["builtin_kind.def"],
|
|
deps = ["//common:enum_base"],
|
|
)
|
|
|
|
cc_library(
|
|
name = "node_kind",
|
|
srcs = ["node_kind.cpp"],
|
|
hdrs = ["node_kind.h"],
|
|
textual_hdrs = ["node_kind.def"],
|
|
deps = [
|
|
"//common:enum_base",
|
|
"@llvm-project//llvm:Support",
|
|
],
|
|
)
|
|
|
|
cc_library(
|
|
name = "node",
|
|
srcs = ["node.cpp"],
|
|
hdrs = ["node.h"],
|
|
deps = [
|
|
"//common:check",
|
|
"//common:ostream",
|
|
"//toolchain/base:index_base",
|
|
"//toolchain/parse:tree",
|
|
"//toolchain/sem_ir:builtin_kind",
|
|
"//toolchain/sem_ir:node_kind",
|
|
"@llvm-project//llvm:Support",
|
|
],
|
|
)
|
|
|
|
cc_library(
|
|
name = "file",
|
|
srcs = ["file.cpp"],
|
|
hdrs = ["file.h"],
|
|
deps = [
|
|
"//common:check",
|
|
"//toolchain/sem_ir:builtin_kind",
|
|
"//toolchain/sem_ir:node",
|
|
"//toolchain/sem_ir:node_kind",
|
|
"@llvm-project//llvm:Support",
|
|
],
|
|
)
|
|
|
|
cc_library(
|
|
name = "formatter",
|
|
srcs = ["formatter.cpp"],
|
|
hdrs = ["formatter.h"],
|
|
deps = [
|
|
"//toolchain/lex:tokenized_buffer",
|
|
"//toolchain/parse:tree",
|
|
"//toolchain/sem_ir:file",
|
|
"//toolchain/sem_ir:node_kind",
|
|
"@llvm-project//llvm:Support",
|
|
],
|
|
)
|
|
|
|
cc_test(
|
|
name = "file_test",
|
|
size = "small",
|
|
srcs = ["file_test.cpp"],
|
|
deps = [
|
|
"//testing/base:gtest_main",
|
|
"//testing/base:test_raw_ostream",
|
|
"//toolchain/base:yaml_test_helpers",
|
|
"//toolchain/driver",
|
|
"@com_google_googletest//:gtest",
|
|
"@llvm-project//llvm:Support",
|
|
],
|
|
)
|