[PATCH] D48027: [analyzer] Improve `CallDescription` to handle c++ method.

Henry Wong via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 11 07:47:29 PDT 2018


MTC added a comment.

The implementation is not complicated, the difficulty is that there is no good way to get the qualified name without template arguments. For 'std::basic_string::c_str()', its qualified name may be `std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::c_str`, it is almost impossible for users to provide such a name. So one possible implementation is to use `std`, `basic_string` and `c_str` to match in the `std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::c_str` sequentially.


Repository:
  rC Clang

https://reviews.llvm.org/D48027





More information about the cfe-commits mailing list