forked from OSchip/llvm-project
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:
parent
007484527b
commit
e56c786f11
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue