Update smart pointer detection for thread safety analysis.
authorRichard Trieu <rtrieu@google.com>
Sat, 22 Sep 2018 01:50:52 +0000 (01:50 +0000)
committerRichard Trieu <rtrieu@google.com>
Sat, 22 Sep 2018 01:50:52 +0000 (01:50 +0000)
commit8d3fa39a0d8deaa99b2615b10f61a2ae85f7f119
treecab017df60d3bb425e49951a22952ae09680f028
parentb32d40417e25bad79e9b5bc0f0a29d7ba0222ad9
Update smart pointer detection for thread safety analysis.

Objects are determined to be smart pointers if they have both a star and arrow
operator.  Some implementations of smart pointers have these overloaded
operators in a base class, while the check only searched the derived class.
This fix will also look for the operators in the base class.

llvm-svn: 342794
clang/lib/Sema/SemaDeclAttr.cpp
clang/test/SemaCXX/warn-thread-safety-analysis.cpp