[cfe-dev] prettyprint statement

Douglas Gregor dgregor at apple.com
Tue Dec 25 14:18:28 PST 2012



Sent from my iPhone

On Dec 25, 2012, at 1:57 PM, madil90 <madil90 at gmail.com> wrote:

> Hi,
>   When using prettyPrint (or Rewriter::ConverToString()) to print a
> statement, clang prints some statements with ";" and some without it. The
> statement "int a,b;" is printed as it is while the statement "a--;" is
> printed as "a--" omitting the ";" at the end. How can I tell which
> statements retain ";" and which statements omit it. Is there any special
> reason for not including ";" in some statements?

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?

  - Doug

> Regards,
> Adil
> 
> 
> 
> --
> View this message in context: http://clang-developers.42468.n3.nabble.com/prettyprint-statement-tp4029182.html
> Sent from the Clang Developers mailing list archive at Nabble.com.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev



More information about the cfe-dev mailing list