This commit reverts e0cc28dfdc and moves
UncheckedOptionalAccessModelTest.cpp into clang/unittests/Analysis/FlowSensitive,
to avoid build failures. The test will be moved back into a Models subdir
in a follow up patch that will address the build configuration issues.
Original description:
Adds a dataflow analysis that detects unsafe accesses to values of type
`std::optional`, `absl::optional`, or `base::Optional`.
Reviewed-by: ymandel, xazax.hun
Differential Revision: https://reviews.llvm.org/D121197
17 lines
314 B
CMake
17 lines
314 B
CMake
add_clang_library(clangAnalysisFlowSensitive
|
|
ControlFlowContext.cpp
|
|
DataflowAnalysisContext.cpp
|
|
DataflowEnvironment.cpp
|
|
SourceLocationsLattice.cpp
|
|
Transfer.cpp
|
|
TypeErasedDataflowAnalysis.cpp
|
|
WatchedLiteralsSolver.cpp
|
|
|
|
LINK_LIBS
|
|
clangAnalysis
|
|
clangAST
|
|
clangBasic
|
|
)
|
|
|
|
add_subdirectory(Models)
|