[cfe-commits] r118612 - /cfe/trunk/docs/LanguageExtensions.html

Chris Lattner sabre at nondot.org
Tue Nov 9 11:43:36 PST 2010


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>





More information about the cfe-commits mailing list