aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/AttributeList.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-04-24 23:09:54 +0000
committerTed Kremenek <kremenek@apple.com>2009-04-24 23:09:54 +0000
commit0fc169e864aef7fc9a782e60b222a360f406704a (patch)
tree2f07a9817adc0499e7644cd8223ed63d8ca6ec6e /lib/Parse/AttributeList.cpp
parent02bbfa33590dfe3107e801fb526b7ab0bdfd00ee (diff)
Add new checker-specific attribute 'objc_ownership_returns'. This isn't hooked
up to the checker yet, but essentially it allows a user to specify that an Objective-C method or C function returns an owned an Objective-C object. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70001 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/AttributeList.cpp')
-rw-r--r--lib/Parse/AttributeList.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Parse/AttributeList.cpp b/lib/Parse/AttributeList.cpp
index 5797a15408..33715899c5 100644
--- a/lib/Parse/AttributeList.cpp
+++ b/lib/Parse/AttributeList.cpp
@@ -133,6 +133,10 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo *Name) {
case 18:
if (!memcmp(Str, "warn_unused_result", 18)) return AT_warn_unused_result;
break;
+ case 22:
+ if (!memcmp(Str, "objc_ownership_returns", 22))
+ return AT_objc_ownership_returns;
+ break;
}
return UnknownAttribute;
}