]> granicus.if.org Git - clang/commit
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)
commit797bc2cafc595aa8f6909145bad94eb7b37faec9
treebd8b2955ae54f792cf0b3f4c2c064ca06b96b87d
parentd05cbec4c2c7fcf52a428d3253ca0c97662d7285
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342794 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclAttr.cpp
test/SemaCXX/warn-thread-safety-analysis.cpp