r194297 - Update macro expansion diagnostic examples to say 'expanded from:'

Hans Wennborg hans at hanshq.net
Fri Nov 8 15:52:29 PST 2013


Author: hans
Date: Fri Nov  8 17:52:29 2013
New Revision: 194297

URL: http://llvm.org/viewvc/llvm-project?rev=194297&view=rev
Log:
Update macro expansion diagnostic examples to say 'expanded from:'
instead of 'instantiated from:'. The actual wording of the note was
changed in r135135.

Modified:
    cfe/trunk/www/diagnostics.html

Modified: cfe/trunk/www/diagnostics.html
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/diagnostics.html?rev=194297&r1=194296&r2=194297&view=diff
==============================================================================
--- cfe/trunk/www/diagnostics.html (original)
+++ cfe/trunk/www/diagnostics.html Fri Nov  8 17:52:29 2013
@@ -313,7 +313,7 @@ and also shows how some of the other pie
   t.c:80:3: <span class="err">error:</span> invalid operands to binary expression ('typeof(P)' (aka 'struct mystruct') and 'typeof(F)' (aka 'float'))
   <span class="snip">  X = MYMAX(P, F);</span>
   <span class="point">      ^~~~~~~~~~~</span>
-  t.c:76:94: note: instantiated from:
+  t.c:76:94: note: expanded from:
   <span class="snip">#define MYMAX(A,B)    __extension__ ({ __typeof__(A) __a = (A); __typeof__(B) __b = (B); __a < __b ? __b : __a; })</span>
   <span class="point">                                                                                         ~~~ ^ ~~~</span>
 </pre>
@@ -326,10 +326,10 @@ implements the "wwopen" class of APIs):<
   t.c:22:2: <span class="warn">warning:</span> type specifier missing, defaults to 'int'
   <span class="snip">        ILPAD();</span>
   <span class="point">        ^</span>
-  t.c:17:17: note: instantiated from:
+  t.c:17:17: note: expanded from:
   <span class="snip">#define ILPAD() PAD((NROW - tt.tt_row) * 10)    /* 1 ms per char */</span>
   <span class="point">                ^</span>
-  t.c:14:2: note: instantiated from:
+  t.c:14:2: note: expanded from:
   <span class="snip">        register i; \</span>
   <span class="point">        ^</span>
 </pre>





More information about the cfe-commits mailing list