Hi Jon,<div><br></div><div>I have just noticed this as well; I believe this is a recent regression. I'm about to file a bug...</div><div><br></div><div> - Daniel</div><div><br><div class="gmail_quote">On Tue, Mar 24, 2009 at 12:42 AM, Jon Simons <span dir="ltr"><<a href="mailto:simonsj@ccs.neu.edu">simonsj@ccs.neu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I am wondering, what is the status of using the "-parse-print-callbacks"<br>
flag for clang-cc?<br>
<br>
Should it succeed and fail when normal parsing would succeed and fail?<br>
<br>
I ask because I see discrepancies:<br>
<br>
   # cat test.c<br>
   typedef struct foo { int x; } foo;<br>
   void test() {<br>
     foo *foo;<br>
     foo->x = 0;<br>
   }<br>
   # clang-cc test.c<br>
   # clang-cc -parse-print-callbacks test.c 1>/dev/null<br>
   test.c:4:6: error: expected identifier or '('<br>
     foo->x = 0;<br>
        ^<br>
   test.c:4:6: error: parse error<br>
   2 diagnostics generated.<br>
<br>
Is this something that warrants a PR and/or following up on?  Or is<br>
"-parse-print-callbacks" something that might not be worth updating<br>
because C++ parsing is still in development?<br>
<br>
<br>
Just Curious,<br>
<font color="#888888">-Jon Simons<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</font></blockquote></div><br></div>