From 37184c2e66862282697aa37c0e53ab34088c9c6e Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Wed, 27 Jun 2012 05:12:34 +0000 Subject: Introduce __has_feature(attribute_unused_on_fields) to determine whether the current version of clang understands __attribute__((unused)) on fields. llvm-svn: 159252 --- clang/lib/Lex/PPMacroExpansion.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib') diff --git a/clang/lib/Lex/PPMacroExpansion.cpp b/clang/lib/Lex/PPMacroExpansion.cpp index c6aabde03e0..a46e31af446 100644 --- a/clang/lib/Lex/PPMacroExpansion.cpp +++ b/clang/lib/Lex/PPMacroExpansion.cpp @@ -632,6 +632,7 @@ static bool HasFeature(const Preprocessor &PP, const IdentifierInfo *II) { .Case("attribute_objc_method_family", true) .Case("attribute_overloadable", true) .Case("attribute_unavailable_with_message", true) + .Case("attribute_unused_on_fields", true) .Case("blocks", LangOpts.Blocks) .Case("cxx_exceptions", LangOpts.Exceptions) .Case("cxx_rtti", LangOpts.RTTI) -- cgit v1.2.1