<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:steveire@gmail.com" title="Stephen Kelly <steveire@gmail.com>"> <span class="fn">Stephen Kelly</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - attribute_deprecated_with_message enabled when [[deprecated]] is not available"
href="http://llvm.org/bugs/show_bug.cgi?id=19242">bug 19242</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>INVALID
</td>
<td>FIXED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - attribute_deprecated_with_message enabled when [[deprecated]] is not available"
href="http://llvm.org/bugs/show_bug.cgi?id=19242#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - attribute_deprecated_with_message enabled when [[deprecated]] is not available"
href="http://llvm.org/bugs/show_bug.cgi?id=19242">bug 19242</a>
from <span class="vcard"><a class="email" href="mailto:steveire@gmail.com" title="Stephen Kelly <steveire@gmail.com>"> <span class="fn">Stephen Kelly</span></a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>