[bazel] Add test targets for dataflow framework

Differential Revision: https://reviews.llvm.org/D124819
This commit is contained in:
Eric Li 2022-05-03 03:28:52 +00:00
parent 50c959b4fa
commit aaddfbf9d6
2 changed files with 27 additions and 0 deletions

View File

@ -781,6 +781,8 @@ cc_library(
cc_library(
name = "analysis",
srcs = glob([
"lib/Analysis/FlowSensitive/Models/*.cpp",
"lib/Analysis/FlowSensitive/*.cpp",
"lib/Analysis/*.cpp",
"lib/Analysis/*.h",
]),

View File

@ -116,6 +116,31 @@ cc_test(
],
)
cc_test(
name = "analysis_flow_sensitive_tests",
srcs = glob(
[
"Analysis/FlowSensitive/*.cpp",
"Analysis/FlowSensitive/*.h",
],
allow_empty = False,
),
deps = [
"//clang:analysis",
"//clang:ast",
"//clang:ast_matchers",
"//clang:basic",
"//clang:lex",
"//clang:serialization",
"//clang:tooling",
"//llvm:Support",
"//llvm:TestingSupport",
"//llvm:gmock",
"//llvm:gtest",
"//llvm:gtest_main",
],
)
cc_test(
name = "basic_tests",
size = "small",