[cfe-dev] Using clang to translate a program in c++ to C or other languages

Miguel Aguilar miguel.aguilar at ice.rwth-aachen.de
Fri Jan 18 03:06:09 PST 2013


Hi,

The one I saw is Objective-C to C but I have not seen any example 
related to C++.

Miguel

On 01/18/2013 11:51 AM, Jacob Carlborg wrote:
> On 2013-01-17 14:58, Miguel Aguilar wrote:
>> Hi,
>>
>> I would like to know the possible approaches to translate a program in
>> C++ to another language such as C using Clang. Should I walk in the AST
>> and emit the code or should I create a new AST in the other language for
>> example?.
>
> Isn't this already available in Clang? Or was that Objective-C to C?
>




More information about the cfe-dev mailing list