[cfe-dev] prettyprint statement

Dmitri Gribenko gribozavr at gmail.com
Wed Dec 26 00:30:04 PST 2012


On Wed, Dec 26, 2012 at 12:40 AM, Mohammad Adil <madil90 at gmail.com> wrote:
> Hi,
>    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.

Make changes (don't forget to add tests), create a patch with 'svn
diff' and submit the patch to cfe-commits for review.

This section in the docs
http://llvm.org/docs/DeveloperPolicy.html#one-off-patches (and the
whole page, too) might be helpful.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-dev mailing list