Skip to content

Commit d6d613a

Browse files
authored
[clang][dataflow] Make SolverTest a type-parameterized test. (#91455)
This allows the tests to be run against any implementation of `Solver` instead of begin specific to `WatchedLiteralsSolver` as they currently are.
1 parent 2c1c676 commit d6d613a

File tree

5 files changed

+124
-75
lines changed

5 files changed

+124
-75
lines changed

clang/docs/tools/clang-formatted-files.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,11 +632,12 @@ clang/unittests/Analysis/FlowSensitive/MapLatticeTest.cpp
632632
clang/unittests/Analysis/FlowSensitive/MatchSwitchTest.cpp
633633
clang/unittests/Analysis/FlowSensitive/MultiVarConstantPropagationTest.cpp
634634
clang/unittests/Analysis/FlowSensitive/SingleVarConstantPropagationTest.cpp
635-
clang/unittests/Analysis/FlowSensitive/SolverTest.cpp
635+
clang/unittests/Analysis/FlowSensitive/SolverTest.h
636636
clang/unittests/Analysis/FlowSensitive/TestingSupport.cpp
637637
clang/unittests/Analysis/FlowSensitive/TestingSupport.h
638638
clang/unittests/Analysis/FlowSensitive/TestingSupportTest.cpp
639639
clang/unittests/Analysis/FlowSensitive/TypeErasedDataflowAnalysisTest.cpp
640+
clang/unittests/Analysis/FlowSensitive/WatchedLiteralsSolverTest.cpp
640641
clang/unittests/AST/ASTImporterFixtures.cpp
641642
clang/unittests/AST/ASTImporterFixtures.h
642643
clang/unittests/AST/ASTImporterObjCTest.cpp

clang/unittests/Analysis/FlowSensitive/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ add_clang_unittest(ClangAnalysisFlowSensitiveTests
1919
SignAnalysisTest.cpp
2020
SimplifyConstraintsTest.cpp
2121
SingleVarConstantPropagationTest.cpp
22-
SolverTest.cpp
2322
TestingSupport.cpp
2423
TestingSupportTest.cpp
2524
TransferBranchTest.cpp
2625
TransferTest.cpp
2726
TypeErasedDataflowAnalysisTest.cpp
2827
UncheckedOptionalAccessModelTest.cpp
2928
ValueTest.cpp
29+
WatchedLiteralsSolverTest.cpp
3030
)
3131

3232
clang_target_link_libraries(ClangAnalysisFlowSensitiveTests

0 commit comments

Comments
 (0)