llvm-project/clang/unittests/Analysis/FlowSensitive
Sam Estep 2efc8f8d65 [clang][dataflow] Add an option for context-sensitive depth
This patch adds a `Depth` field (default value 2) to `ContextSensitiveOptions`, allowing context-sensitive analysis of functions that call other functions. This also requires replacing the `DeclCtx` field on `Environment` with a `CallString` field that contains a vector of decl contexts, to ensure that the analysis doesn't try to analyze recursive or mutually recursive calls (which would result in a crash, due to the way we handle `StorageLocation`s).

Reviewed By: xazax.hun

Differential Revision: https://reviews.llvm.org/D131809
2022-08-15 19:58:40 +00:00
..
CMakeLists.txt [clang][dataflow] Generate readable form of boolean values. 2022-07-13 10:35:17 +00:00
ChromiumCheckModelTest.cpp [clang][dataflow] Move NoopAnalysis from unittests to include 2022-07-22 14:11:32 +00:00
DataflowAnalysisContextTest.cpp [clang][dataflow] Add explicit "AST" nodes for implications and iff 2022-07-26 14:19:22 +02:00
DataflowEnvironmentTest.cpp [clang][dataflow] Move NoopAnalysis from unittests to include 2022-07-22 14:11:32 +00:00
DebugSupportTest.cpp [clang][dataflow] Add explicit "AST" nodes for implications and iff 2022-07-26 14:19:22 +02:00
MapLatticeTest.cpp [clang][dataflow] Fix MapLattice::insert() to not drop return value 2022-07-25 14:24:33 -04:00
MatchSwitchTest.cpp [clang][dataflow] Replace TEST_F with TEST where possible 2022-06-30 16:03:33 +00:00
MultiVarConstantPropagationTest.cpp [clang][dataflow] Replace TEST_F with TEST where possible 2022-06-30 16:03:33 +00:00
SingleVarConstantPropagationTest.cpp [clang][dataflow] Replace TEST_F with TEST where possible 2022-06-30 16:03:33 +00:00
SolverTest.cpp [clang][dataflow] Add explicit "AST" nodes for implications and iff 2022-07-26 14:19:22 +02:00
TestingSupport.cpp [clang] Don't use Optional::hasValue (NFC) 2022-06-26 18:51:54 -07:00
TestingSupport.h [clang][dataflow] Make the type of the post visit callback consistent 2022-08-03 05:58:38 +00:00
TestingSupportTest.cpp [clang][dataflow] Move NoopAnalysis from unittests to include 2022-07-22 14:11:32 +00:00
TransferTest.cpp [clang][dataflow] Add an option for context-sensitive depth 2022-08-15 19:58:40 +00:00
TypeErasedDataflowAnalysisTest.cpp [clang][dataflow] Move NoopAnalysis from unittests to include 2022-07-22 14:11:32 +00:00
UncheckedOptionalAccessModelTest.cpp [clang][dataflow] Make the type of the post visit callback consistent 2022-08-03 05:58:38 +00:00