[PATCH] D124819: [bazel] Add test targets for dataflow framework
Eric Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 3 04:40:00 PDT 2022
li.zhe.hua updated this revision to Diff 426645.
li.zhe.hua added a comment.
Fix build error
Tested with `$ bazel test --config=generic_clang @llvm-project//clang/unittests:analysis_flow_sensitive_tests`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124819/new/
https://reviews.llvm.org/D124819
Files:
utils/bazel/llvm-project-overlay/clang/BUILD.bazel
utils/bazel/llvm-project-overlay/clang/unittests/BUILD.bazel
Index: utils/bazel/llvm-project-overlay/clang/unittests/BUILD.bazel
===================================================================
--- utils/bazel/llvm-project-overlay/clang/unittests/BUILD.bazel
+++ utils/bazel/llvm-project-overlay/clang/unittests/BUILD.bazel
@@ -116,6 +116,31 @@
],
)
+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",
Index: utils/bazel/llvm-project-overlay/clang/BUILD.bazel
===================================================================
--- utils/bazel/llvm-project-overlay/clang/BUILD.bazel
+++ utils/bazel/llvm-project-overlay/clang/BUILD.bazel
@@ -781,6 +781,8 @@
cc_library(
name = "analysis",
srcs = glob([
+ "lib/Analysis/FlowSensitive/Models/*.cpp",
+ "lib/Analysis/FlowSensitive/*.cpp",
"lib/Analysis/*.cpp",
"lib/Analysis/*.h",
]),
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124819.426645.patch
Type: text/x-patch
Size: 1424 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220503/723cefcc/attachment.bin>
More information about the llvm-commits
mailing list