]> granicus.if.org Git - clang/commit
[analyzer] NFC: Add a convenient CallDescriptionMap class.
authorArtem Dergachev <artem.dergachev@gmail.com>
Mon, 1 Jul 2019 23:02:03 +0000 (23:02 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Mon, 1 Jul 2019 23:02:03 +0000 (23:02 +0000)
commitfac64c1d01d6c2bea982e2c0c6be67f5523dbcb3
treeb393fd7cae7fcb2892481240caa23a7445fc9603
parentf21127243dbe044a67dbaf7361ba5aabefb1142c
[analyzer] NFC: Add a convenient CallDescriptionMap class.

It encapsulates the procedure of figuring out whether a call event
corresponds to a function that's modeled by a checker.

Checker developers no longer need to worry about performance of
lookups into their own custom maps.

Add unittests - which finally test CallDescription itself as well.

Differential Revision: https://reviews.llvm.org/D62441

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@364866 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
lib/StaticAnalyzer/Core/CallEvent.cpp
unittests/StaticAnalyzer/CMakeLists.txt
unittests/StaticAnalyzer/CallDescriptionTest.cpp [new file with mode: 0644]
unittests/StaticAnalyzer/Reusables.h