<div dir="ltr">Hi,<div style>   I believe that the problem comes when the stmtprinter handles expressions. All statements which are not expressions are printed fine while statements which are also expressions (a = 1;) do not have a semicolon(;) at the end. Please tell me the procedure to submit a patch fix? I will be very happy to contribute.</div>
<div style><br></div><div style>Regards,</div><div style>Adil</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Dec 26, 2012 at 3:18 AM, Douglas Gregor <span dir="ltr"><<a href="mailto:dgregor@apple.com" target="_blank">dgregor@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Sent from my iPhone<br>
<br>
On Dec 25, 2012, at 1:57 PM, madil90 <<a href="mailto:madil90@gmail.com">madil90@gmail.com</a>> wrote:<br>
<br>
> Hi,<br>
>   When using prettyPrint (or Rewriter::ConverToString()) to print a<br>
> statement, clang prints some statements with ";" and some without it. The<br>
> statement "int a,b;" is printed as it is while the statement "a--;" is<br>
> printed as "a--" omitting the ";" at the end. How can I tell which<br>
> statements retain ";" and which statements omit it. Is there any special<br>
> reason for not including ";" in some statements?<br>
<br>
I consider this a bug. All statements that need a semicolon should print one. Can I interest you in submitting a patch to fix this?<br>
<br>
  - Doug<br>
<br>
> Regards,<br>
> Adil<br>
><br>
><br>
<span class="HOEnZb"><font color="#888888">><br>
> --<br>
> View this message in context: <a href="http://clang-developers.42468.n3.nabble.com/prettyprint-statement-tp4029182.html" target="_blank">http://clang-developers.42468.n3.nabble.com/prettyprint-statement-tp4029182.html</a><br>

> Sent from the Clang Developers mailing list archive at Nabble.com.<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></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Mohammad Adil<div>LUMS SSE</div>
</div>