diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-03-05 22:43:32 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-03-05 22:43:32 +0000 |
commit | 444b035b5325973bdd5a622006fda6367a670a94 (patch) | |
tree | a3fa922bd4a8956034215eebb05a0033dec80b07 /lib/Lex | |
parent | 34f6a322430e2cdcb38167781eb848b9b8e928bb (diff) |
Augment __has_feature to report that Clang supports adding attribute 'unused'
to an Objective-C instance variable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97850 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex')
-rw-r--r-- | lib/Lex/PPMacroExpansion.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Lex/PPMacroExpansion.cpp b/lib/Lex/PPMacroExpansion.cpp index d60cf0804f..5fe2ef172e 100644 --- a/lib/Lex/PPMacroExpansion.cpp +++ b/lib/Lex/PPMacroExpansion.cpp @@ -505,6 +505,7 @@ static bool HasFeature(const Preprocessor &PP, const IdentifierInfo *II) { .Case("attribute_cf_returns_retained", true) .Case("attribute_ns_returns_not_retained", true) .Case("attribute_ns_returns_retained", true) + .Case("attribute_objc_ivar_unused", true) .Default(false); } |