make the example a bit better, encouraging people to use "suggestions of what to use" in the message :)

llvm-svn: 118612
This commit is contained in:
Chris Lattner 2010-11-09 19:43:35 +00:00
parent 007484527b
commit e56c786f11
1 changed files with 2 additions and 2 deletions

View File

@ -302,14 +302,14 @@ float4 foo(float2 a, float2 b) {
and <tt>unavailable</tt> attributes. For example:</p>
<blockquote>
<pre>void explode(void) __attribute__((deprecated("extremely unsafe!!!")));</pre>
<pre>void explode(void) __attribute__((deprecated("extremely unsafe, use 'combust' instead!!!")));</pre>
</blockquote>
<p>If the deprecated or unavailable declaration is used, the message
will be incorporated into the appropriate diagnostic:</p>
<blockquote>
<pre>harmless.c:4:3: warning: 'explode' is deprecated: extremely unsafe!!! [-Wdeprecated-declarations]
<pre>harmless.c:4:3: warning: 'explode' is deprecated: extremely unsafe, use 'combust' instead!!! [-Wdeprecated-declarations]
explode();
^</pre>
</blockquote>