sac
2008-Nov-07 14:40 UTC
[LLVMdev] how to modify CLANG AST and to convert it back to C code
Hi, I am new to LLVM-CLANG. I want to do some transformations on CLANG generated AST and I want to convert it back to the C source code. Can anybody help me regarding this. Thanks, Sachin -- View this message in context: http://www.nabble.com/how-to-modify-CLANG-AST-and-to-convert-it-back-to-C-code-tp20381814p20381814.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
Chris Lattner
2008-Nov-07 18:53 UTC
[LLVMdev] how to modify CLANG AST and to convert it back to C code
On Nov 7, 2008, at 6:40 AM, sac wrote:> > Hi, > I am new to LLVM-CLANG. I want to do some transformations on CLANG > generated AST and I want to convert it back to the C source code. Can > anybody help me regarding this.You should probably ask on the cfe-dev list for more details. The short version of the answer is that you can choose to either use the pretty printers, or the rewriters. Both have different tradeoffs. -Chris
Maybe Matching Threads
- security = ads parameter not working in samba 4.9.5
- security = ads parameter not working in samba 4.9.5
- [PATCH v2 07/17] drm/ast: Convert AST driver to VRAM MM
- [LLVMdev] Use the IR information to modify the AST
- [LLVMdev] Function inline causes crash in clang for .ast to .s