Author: lattner
Date: Tue Nov 9 13:43:35 2010
New Revision: 118612
URL: http://llvm.org/viewvc/llvm-project?rev=118612&view=rev
Log:
make the example a bit better, encouraging people to use "suggestions of what
to use" in the message :)
Modified:
cfe/trunk/docs/LanguageExtensions.html
Modified: cfe/trunk/docs/LanguageExtensions.html
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/LanguageExtensions.html?rev=118612&r1=118611&r2=118612&view=diff
==============================================================================
--- cfe/trunk/docs/LanguageExtensions.html (original)
+++ cfe/trunk/docs/LanguageExtensions.html Tue Nov 9 13:43:35 2010
@@ -302,14 +302,14 @@
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>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits