]> granicus.if.org Git - clang/commit
[analyzer] Improve `CallDescription` to handle c++ method.
authorHenry Wong <movietravelcode@outlook.com>
Wed, 22 Aug 2018 13:30:46 +0000 (13:30 +0000)
committerHenry Wong <movietravelcode@outlook.com>
Wed, 22 Aug 2018 13:30:46 +0000 (13:30 +0000)
commitce918162e6e088028619a657c0526f8875accb17
treef1ce2c63aa63e4bdc410b61e77ece638383345d1
parent0e012984b099032dd8a65151a7882c305e1f37b4
[analyzer] Improve `CallDescription` to handle c++ method.

Summary:
`CallDecription` can only handle function for the time being. If we want to match c++ method, we can only use method name to match and can't improve the matching accuracy through the qualifiers.

This patch add the support for `QualifiedName` matching to improve the matching accuracy.

Reviewers: xazax.hun, NoQ, george.karpenkov, rnkovacs

Reviewed By: xazax.hun, NoQ, rnkovacs

Subscribers: Szelethus, szepet, rnkovacs, a.sidorin, mikhail.ramalho, cfe-commits, MTC

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@340407 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
lib/StaticAnalyzer/Checkers/InnerPointerChecker.cpp
lib/StaticAnalyzer/Core/CallEvent.cpp