llvm-project/clang/unittests/StaticAnalyzer
Kristóf Umann 32ac21d049 [NFC][analyzer] Allow CallDescriptions to be matched with CallExprs
Since CallDescriptions can only be matched against CallEvents that are created
during symbolic execution, it was not possible to use it in syntactic-only
contexts. For example, even though InnerPointerChecker can check with its set of
CallDescriptions whether a function call is interested during analysis, its
unable to check without hassle whether a non-analyzer piece of code also calls
such a function.

The patch adds the ability to use CallDescriptions in syntactic contexts as
well. While we already have that in Signature, we still want to leverage the
ability to use dynamic information when we have it (function pointers, for
example). This could be done with Signature as well (StdLibraryFunctionsChecker
does it), but it makes it even less of a drop-in replacement.

Differential Revision: https://reviews.llvm.org/D119004
2022-03-01 17:13:04 +01:00
..
AnalyzerOptionsTest.cpp
BugReportInterestingnessTest.cpp [analyzer][NFC] Separate CallDescription from CallEvent 2021-11-15 19:10:46 +01:00
CMakeLists.txt [analyzer]Skip unstable CSA tests failing on several platforms 2021-12-02 18:30:14 -05:00
CallDescriptionTest.cpp [NFC][analyzer] Allow CallDescriptions to be matched with CallExprs 2022-03-01 17:13:04 +01:00
CallEventTest.cpp [analyzer][NFCI] Allow clients of NoStateChangeFuncVisitor to check entire function calls, rather than each ExplodedNode in it 2021-09-13 13:50:01 +02:00
CheckerRegistration.h Fix a unittest file after D108695 when Z3 is enabled 2021-09-14 16:11:11 +02:00
ConflictingEvalCallsTest.cpp [analyzer][NFC] Switch to using CallDescription::matches() instead of isCalled() 2021-11-19 18:32:13 +01:00
FalsePositiveRefutationBRVisitorTest.cpp [analyzer][NFC] Separate CallDescription from CallEvent 2021-11-15 19:10:46 +01:00
NoStateChangeFuncVisitorTest.cpp [analyzer][NFC] Switch to using CallDescription::matches() instead of isCalled() 2021-11-19 18:32:13 +01:00
ParamRegionTest.cpp [Analyzer] Replace `assert` with `ASSERT_TRUE` in a unit test to silence warnings 2020-06-12 17:09:34 +02:00
RangeSetTest.cpp [analyzer] Implemented RangeSet::Factory::unite function to handle intersections and adjacency 2021-12-10 18:48:02 +02:00
RegisterCustomCheckersTest.cpp [analyzer][NFCI] Allow clients of NoStateChangeFuncVisitor to check entire function calls, rather than each ExplodedNode in it 2021-09-13 13:50:01 +02:00
Reusables.h [clang][Analyzer] Add symbol uninterestingness to bug report. 2021-07-15 10:02:18 +02:00
SValTest.cpp [analyzer][NFC] Re-enable skipped SValTests by relaxing expectations 2022-01-19 15:16:18 +01:00
StoreTest.cpp
SymbolReaperTest.cpp
TestReturnValueUnderConstruction.cpp [Analyzer] Fix for `ExprEngine::computeObjectUnderConstruction()` for base and delegating consturctor initializers 2020-09-25 13:28:22 +02:00