diff options
author | John McCall <rjmccall@apple.com> | 2010-11-08 19:48:17 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-11-08 19:48:17 +0000 |
commit | f71b45367f756137bdb0262519e6cc78d0376e4a (patch) | |
tree | 85cd7f1a9d91e00b757794a534617f4b2cb1f2a3 /clang/lib/Lex | |
parent | fc82674b9c2ad9602b41c87a5664d60f5dddc597 (diff) | |
download | bcm5719-llvm-f71b45367f756137bdb0262519e6cc78d0376e4a.tar.gz bcm5719-llvm-f71b45367f756137bdb0262519e6cc78d0376e4a.zip |
Document Clang's support for attributes on individual enumerators and
tweak the documentation for deprecation-with-message. Provide __has_feature
tests for both. rdar://problem/8605692
llvm-svn: 118435
Diffstat (limited to 'clang/lib/Lex')
-rw-r--r-- | clang/lib/Lex/PPMacroExpansion.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Lex/PPMacroExpansion.cpp b/clang/lib/Lex/PPMacroExpansion.cpp index a9f4cacf6ce..93532d19eb6 100644 --- a/clang/lib/Lex/PPMacroExpansion.cpp +++ b/clang/lib/Lex/PPMacroExpansion.cpp @@ -521,11 +521,13 @@ static bool HasFeature(const Preprocessor &PP, const IdentifierInfo *II) { .Case("attribute_analyzer_noreturn", true) .Case("attribute_cf_returns_not_retained", true) .Case("attribute_cf_returns_retained", true) + .Case("attribute_deprecated_with_message", true) .Case("attribute_ext_vector_type", true) .Case("attribute_ns_returns_not_retained", true) .Case("attribute_ns_returns_retained", true) .Case("attribute_objc_ivar_unused", true) .Case("attribute_overloadable", true) + .Case("attribute_unavailable_with_message", true) .Case("blocks", LangOpts.Blocks) .Case("cxx_attributes", LangOpts.CPlusPlus0x) .Case("cxx_auto_type", LangOpts.CPlusPlus0x) @@ -536,6 +538,7 @@ static bool HasFeature(const Preprocessor &PP, const IdentifierInfo *II) { .Case("cxx_strong_enums", LangOpts.CPlusPlus0x) .Case("cxx_static_assert", LangOpts.CPlusPlus0x) .Case("cxx_trailing_return", LangOpts.CPlusPlus0x) + .Case("enumerator_attributes", true) .Case("objc_nonfragile_abi", LangOpts.ObjCNonFragileABI) .Case("objc_weak_class", LangOpts.ObjCNonFragileABI) .Case("ownership_holds", true) |