[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)
commit2ca72e03c3e690d618319c9563b5e28d10b9f857
treebf98de0cd91c72fc27d335fd68bbe7093ee1d078
parent03533087105994646891a903e4730fa68b8bf173
[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

llvm-svn: 340407
clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
clang/lib/StaticAnalyzer/Checkers/InnerPointerChecker.cpp
clang/lib/StaticAnalyzer/Core/CallEvent.cpp