]> granicus.if.org Git - clang/commit
objc_gc wants a pointer type, not a function type; give it a more appropriate
authorJohn McCall <rjmccall@apple.com>
Tue, 8 Mar 2011 04:17:03 +0000 (04:17 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 8 Mar 2011 04:17:03 +0000 (04:17 +0000)
commit2792fa5115c5de7cbe11d99d23663c569bfb4cae
treef2e597b8e27db35ca68c680d30263f76b6b67ae7
parentd45e4b767458104d7e842e253cd03df01ccba3f4
objc_gc wants a pointer type, not a function type;  give it a more appropriate
diagnostic.  Also, these attributes are commonly written with macros which we
actually pre-define, so instead of expanding the macro location, refer to the
instantiation location and name it using the macro loc.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127219 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaType.cpp
test/SemaObjC/attr-objc-gc.m