diff options
author | Balazs Benics <balazs.benics@sigmatechnology.se> | 2021-10-18 14:57:24 +0200 |
---|---|---|
committer | Balazs Benics <balazs.benics@sigmatechnology.se> | 2021-10-18 14:57:24 +0200 |
commit | 72d04d7b2b53eea977e160551077cf1a3f51ba9a (patch) | |
tree | 0e7f143f24efafde787f11b86e1582b58273b775 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 3ec7b91141da4b3f4dce4964ca3ea7c3549584d2 (diff) | |
download | llvm-72d04d7b2b53eea977e160551077cf1a3f51ba9a.zip llvm-72d04d7b2b53eea977e160551077cf1a3f51ba9a.tar.gz llvm-72d04d7b2b53eea977e160551077cf1a3f51ba9a.tar.bz2 |
[analyzer] Allow matching non-CallExprs using CallDescriptions
Fallback to stringification and string comparison if we cannot compare
the `IdentifierInfo`s, which is the case for C++ overloaded operators,
constructors, destructors, etc.
Examples:
{ "std", "basic_string", "basic_string", 2} // match the 2 param std::string constructor
{ "std", "basic_string", "~basic_string" } // match the std::string destructor
{ "aaa", "bbb", "operator int" } // matches the struct bbb conversion operator to int
Reviewed By: martong
Differential Revision: https://reviews.llvm.org/D111535
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions