<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">We have an objective-c to c++ source transformation. This involves a combination of AST to c++ source xformation and<div>direct replacement of source with other source. Look at lib/Rewrite and lib/Frontend/*Rewrite* files.</div><div><br class="webkit-block-placeholder"></div><div>- Fariborz</div><div><br><div><div>On May 6, 2010, at 3:27 AM, mywayin2sky wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div lang="KO" link="blue" vlink="purple"><div class="Section1"><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; text-align: justify; font-size: 10pt; font-family: 'Malgun Gothic'; "><span class="apple-style-span"><span lang="EN-US" style="font-family: Georgia, serif; color: rgb(34, 34, 34); ">Hello,</span></span><span lang="EN-US" style="font-family: Georgia, serif; color: rgb(34, 34, 34); "><o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; text-align: justify; font-size: 10pt; font-family: 'Malgun Gothic'; "><span class="apple-style-span"><span lang="EN-US" style="font-family: Georgia, serif; color: rgb(34, 34, 34); ">I'm working in a project involving source to source transformation of some arbitrary c code , I'm looking forward to using Clang</span></span><span lang="EN-US" style="font-family: Georgia, serif; color: rgb(34, 34, 34); "><br><span class="apple-style-span">my main problem is where to start , I can find approx. no documentation on topic</span><br><br><span class="apple-style-span">Any existing source to source sample codes based on clang that can be of help as a starting point ?</span></span><span class="apple-style-span"><span lang="EN-US"><o:p></o:p></span></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; text-align: justify; font-size: 10pt; font-family: 'Malgun Gothic'; "><span lang="EN-US">I want to know the Clang APIs for building a AST and rewriting codes from the AST.<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; text-align: justify; font-size: 10pt; font-family: 'Malgun Gothic'; "><span lang="EN-US"><o:p> </o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; text-align: justify; font-size: 10pt; font-family: 'Malgun Gothic'; "><span lang="EN-US">Thanks.<o:p></o:p></span></div></div>_______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu" style="color: blue; text-decoration: underline; ">cfe-dev@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" style="color: blue; text-decoration: underline; ">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br></div></span></blockquote></div><br></div></body></html>