diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-05-13 21:07:32 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-05-13 21:07:32 +0000 |
commit | 5dc53c9c2328b5bea5422005b04960c18afd83ad (patch) | |
tree | 44501b4a366dbe1829923a3f327f8dfb90b4a79d /lib/Sema/SemaInherit.cpp | |
parent | 57dc4a3bb72d16b911736959114e4239f9c5f42c (diff) |
Add some basic type checking for attributes ns_returns_retained and
cf_returns_retained. Currently this attribute can now be applied to any
Objective-C method or C function that returns a pointer or Objective-C object
type.
Modify the tablegen definition of diagnostic 'warn_attribute_wrong_decl_type' to
expect that the diagnostics infrastructure will add quotes around the attribute
name when appropriate. Alonq with this change, I modified the places where this
warning is issued to passed the attribute's IdentifierInfo* instead of having a
hard-coded C constant string.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71718 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaInherit.cpp')
0 files changed, 0 insertions, 0 deletions