]> granicus.if.org Git - clang/commit
Thread Safety: also look at ObjC methods
authorJF Bastien <jfbastien@apple.com>
Mon, 25 Mar 2019 20:06:32 +0000 (20:06 +0000)
committerJF Bastien <jfbastien@apple.com>
Mon, 25 Mar 2019 20:06:32 +0000 (20:06 +0000)
commit96ad72202285f4473a4ae19c5d46e5a959ae24e5
tree7dae2a6a5f034c90d9b2b33b3eb3d0aac15eebf8
parente05b36f6045598eed19bceb03e1fad6eeaa8abd0
Thread Safety: also look at ObjC methods

Summary:
SExprBuilder::translateDeclRefExpr was only looking at FunctionDecl and not also looking at ObjCMethodDecl. It should consider both because the attributes can be used on Objective-C as well.

<rdar://problem/48941331>

Reviewers: dexonsmith, erik.pilkington

Subscribers: jkorous, jdoerfert, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D59523

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356940 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ThreadSafetyCommon.cpp
test/SemaObjCXX/no-crash-thread-safety-analysis.mm [new file with mode: 0644]
test/SemaObjCXX/thread-safety-analysis.h [new file with mode: 0644]
test/SemaObjCXX/warn-thread-safety-analysis.mm