]> granicus.if.org Git - clang/commitdiff
make the example a bit better, encouraging people to use "suggestions of what to...
authorChris Lattner <sabre@nondot.org>
Tue, 9 Nov 2010 19:43:35 +0000 (19:43 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 9 Nov 2010 19:43:35 +0000 (19:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118612 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LanguageExtensions.html

index c2e217bd6bbdb427b68d6c9b1928c802dc772102..3789eaac800bdb3ceb3736cf835fa7a236046440 100644 (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>