diff options
author | Daniel Jasper <djasper@google.com> | 2012-06-27 05:12:34 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2012-06-27 05:12:34 +0000 |
commit | 37184c2e66862282697aa37c0e53ab34088c9c6e (patch) | |
tree | 74ed2fb469a8828a068fb26d13912caa64e8ef94 /clang/lib | |
parent | 65ce36b45fbb7561b2223dbce6c4bb2b4e336d45 (diff) | |
download | bcm5719-llvm-37184c2e66862282697aa37c0e53ab34088c9c6e.tar.gz bcm5719-llvm-37184c2e66862282697aa37c0e53ab34088c9c6e.zip |
Introduce __has_feature(attribute_unused_on_fields) to determine whether
the current version of clang understands __attribute__((unused)) on
fields.
llvm-svn: 159252
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/Lex/PPMacroExpansion.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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) |