summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-02-18 00:06:04 +0000
committerTed Kremenek <kremenek@apple.com>2010-02-18 00:06:04 +0000
commitf2b64ba858295403098adf456e5869e0e354986d (patch)
treee5c697330d617ece56d7073e087f4b7fa6273b2e
parent2b36f3f6663930a7d5232a498eebfbcdd9c19663 (diff)
downloadbcm5719-llvm-f2b64ba858295403098adf456e5869e0e354986d.tar.gz
bcm5719-llvm-f2b64ba858295403098adf456e5869e0e354986d.zip
Add __has_feature support for attributes ns_returns_not_retained
and cf_returns_not_retained. llvm-svn: 96538
-rw-r--r--clang/lib/Lex/PPMacroExpansion.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPMacroExpansion.cpp b/clang/lib/Lex/PPMacroExpansion.cpp
index b97ab2485d3..fd67f4c9124 100644
--- a/clang/lib/Lex/PPMacroExpansion.cpp
+++ b/clang/lib/Lex/PPMacroExpansion.cpp
@@ -501,8 +501,10 @@ static bool HasFeature(const Preprocessor &PP, const IdentifierInfo *II) {
//.Case("cxx_variadic_templates", false)
.Case("attribute_ext_vector_type", true)
.Case("attribute_analyzer_noreturn", true)
- .Case("attribute_ns_returns_retained", true)
+ .Case("attribute_cf_returns_not_retained", true)
.Case("attribute_cf_returns_retained", true)
+ .Case("attribute_ns_returns_not_retained", true)
+ .Case("attribute_ns_returns_retained", true)
.Default(false);
}
OpenPOWER on IntegriCloud