]> granicus.if.org Git - clang/commit
[Sema] Resolve placeholder types before type deduction to silence
authorAkira Hatanaka <ahatanaka@apple.com>
Mon, 8 Jul 2019 20:04:39 +0000 (20:04 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Mon, 8 Jul 2019 20:04:39 +0000 (20:04 +0000)
commitcbe402967e2747e28580f9db0e3fd7b6303c06c5
tree8725dbdc72d011b4e4ad50806a903d81f43a953e
parent0fb1c12a695b8ebff152c319da69f4cc6e9542db
[Sema] Resolve placeholder types before type deduction to silence
spurious `-Warc-repeated-use-of-weak` warnings

The spurious -Warc-repeated-use-of-weak warnings are issued when an
initializer expression uses a weak ObjC pointer.

My first attempt to silence the warnings (r350917) caused clang to
reject code that is legal in C++17. The patch is based on the feedback I
received from Richard when the patch was reverted.

http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20190422/268945.html
http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20190422/268943.html

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@365382 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Expr.h
include/clang/Basic/Attr.td
lib/Sema/SemaDecl.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprCXX.cpp
test/SemaObjC/arc-repeated-weak.mm