http://llvm.org/bugs/show_bug.cgi?id=19242
Stephen Kelly <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |FIXED --- Comment #3 from Stephen Kelly <[email protected]> --- According to the Clang 3.6 release notes: Major New Features * The __has_attribute built-in macro no longer queries for attributes across multiple attribute syntaxes (GNU, C++11, __declspec, etc). Instead, it only queries GNU-style attributes. With the addition of __has_cpp_attribute and __has_declspec_attribute, this allows for more precise coverage of attribute syntax querying. That means that this code behaves as expected: #if !defined(__clang__) #define __has_cpp_attribute(x) 0 #define __has_attribute(x) 0 #endif #if __has_cpp_attribute(deprecated) #define DEPR_ATTR [[deprecated]] #elif __has_attribute(deprecated) #define DEPR_ATTR __attribute__ ((deprecated)) #else #define DEPR_ATTR #endif DEPR_ATTR void something(); int main() { something(); return 0; } Changing the resolution from 'invalid' to fixed. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
