]> granicus.if.org Git - clang/commit
Enhance diagnostics concerning attribute 'ns_returns_retained' and 'cf_returns_retain...
authorTed Kremenek <kremenek@apple.com>
Wed, 19 Aug 2009 23:56:48 +0000 (23:56 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 19 Aug 2009 23:56:48 +0000 (23:56 +0000)
commit21531fa592cd76e5d3df839ce469bea918404ac8
tree410eb989a7170126a490ec26eadcbf03474bca36
parent82bf01061b97404fed8c422fc0eda0a380689cc9
Enhance diagnostics concerning attribute 'ns_returns_retained' and 'cf_returns_retained' to present the range of the attribute and have the diagnostic location be the declaration that the attribute was falsely attached to.  This solves the problem where these diagnostics were being suppressed when these attributes were wrapped in a macro that was defined in a system header.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79496 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclAttr.cpp