C ++ 11 source code generation

Is there some kind of library for C ++ that contains classes that represent the source code of C ++? Of course, it should be able to output the source code to the stream. I am looking for something that supports most of the features of C ++ 11, as well as being able to create template constructs.

When I talk about this with Google, I do not get the results that I want. I am sure, however, that there is something available. Maybe I'm just using the wrong terms.

+2
source share
2 answers

Check out the Clang compiler , which uses the architecture library to support the implementation of the IDE and other tools that AST should handle. Clang fully supports all the features of C ++ 11 (and some features of C ++ 1y)

More information can be found in the Clang documentation . Or in this blog post , which describes the main sources of source transformations using clang::Rewriter.

+5
source

, (Clava), Clang Javascript- C/++. 2017 .

, C/++ ++/H HDF5 (, AST ).

(Clava - -)

0

All Articles