[Sema][ObjC] Process category attributes before checking protocol uses
authorAlex Lorenz <arphaman@gmail.com>
Fri, 23 Feb 2018 23:49:43 +0000 (23:49 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Fri, 23 Feb 2018 23:49:43 +0000 (23:49 +0000)
commita9c966d0a946fd36bc4421791f6dbc440b65a1aa
treed35b42456a9564c414837cd8b6607eda0bdb7d3f
parentb68cef9dd0e204bbd4fa17f2559416d5b44829a2
[Sema][ObjC] Process category attributes before checking protocol uses

This ensures that any availability attributes are attached to the
category before the availability for the referenced protocols is checked.

rdar://37829755

llvm-svn: 325994
clang/lib/Sema/SemaDeclObjC.cpp
clang/test/SemaObjC/unguarded-availability-category-protocol-use.m [new file with mode: 0644]