diff --git a/utils/bazel/llvm-project-overlay/clang/BUILD.bazel b/utils/bazel/llvm-project-overlay/clang/BUILD.bazel index 96f0a3f6c285..eb900106c21e 100644 --- a/utils/bazel/llvm-project-overlay/clang/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/clang/BUILD.bazel @@ -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", ]), diff --git a/utils/bazel/llvm-project-overlay/clang/unittests/BUILD.bazel b/utils/bazel/llvm-project-overlay/clang/unittests/BUILD.bazel index ca38c39822f4..dc625ef0616d 100644 --- a/utils/bazel/llvm-project-overlay/clang/unittests/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/clang/unittests/BUILD.bazel @@ -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",