]> granicus.if.org Git - clang/commit
[ObjC][ARC] Avoid -Warc-performSelector-leaks for performSelector variations
authorAlex Lorenz <arphaman@gmail.com>
Thu, 23 Mar 2017 10:46:05 +0000 (10:46 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Thu, 23 Mar 2017 10:46:05 +0000 (10:46 +0000)
commit942d4ddd5316a1bb4dcfba6e6710a7747cd62e46
tree5c28b61e1d128ff6ae6b721a4aab7a031c018ee2
parent4b1bd05e6acd6bcb0a0a3e0d1bb1a0ecd2d79ce0
[ObjC][ARC] Avoid -Warc-performSelector-leaks for performSelector variations
that became supported after r297019

The commit r297019 expanded the performSelector ObjC method family heuristic
to ensure that -Wobjc-unsafe-perform-selector covers all performSelector
variations. However, this made the -Warc-performSelector-leaks too noisy, as
that warning produces mostly false positives since the selector is unknown.
This commit reverts the ObjC method family heuristics introduced in r297019.
This ensures that -Warc-performSelector-leaks isn't too noisy. The commit still
preserves the coverage of -Wobjc-unsafe-perform-selector.

rdar://31124629

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@298587 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/DeclObjC.cpp
lib/Sema/SemaExprObjC.cpp
test/SemaObjC/arc-peformselector.m