mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 10:54:49 +01:00
Refactor Matcher code to reduce per-Matcher boilerplate (#615)
This is in part to eliminate the "sm" and "lang_opts" variables that received comment, but also cuts back on the use of auto.
This commit is contained in:
@@ -19,7 +19,10 @@ cc_binary(
|
||||
cc_library(
|
||||
name = "matcher",
|
||||
srcs = ["matcher.cpp"],
|
||||
hdrs = ["matcher.h"],
|
||||
hdrs = [
|
||||
"matcher.h",
|
||||
"matcher_manager.h",
|
||||
],
|
||||
deps = [
|
||||
"@llvm-project//clang:ast_matchers",
|
||||
"@llvm-project//clang:tooling_core",
|
||||
@@ -29,9 +32,9 @@ cc_library(
|
||||
cc_library(
|
||||
name = "matcher_test_base",
|
||||
testonly = 1,
|
||||
srcs = ["matcher_test_base.cpp"],
|
||||
hdrs = ["matcher_test_base.h"],
|
||||
deps = [
|
||||
":matcher",
|
||||
"@llvm-project//clang:ast_matchers",
|
||||
"@llvm-project//clang:tooling",
|
||||
"@llvm-project//llvm:gmock",
|
||||
|
||||
Reference in New Issue
Block a user