C++ class code generation using CDT [message #1745737] |
Sun, 16 October 2016 15:39 |
Eclipse User |
|
|
|
I want to programmatically create C++ classes. It is possible to create AST then generate code. But I prefer working with higher level classes like CompositeCPPClassType.
The problem is that there is no way to manipulate IBinding objects like CompositeCPPClassType programmatically. I want to use C++ bindings because, I use legacy classes as a part input for code generation. So I, need CDT dom API to get C++ model from source code.
I found a possible soultion: I might create subclasses of IBinding interfaces allowing manipulation. Also, I need some classes regenerate AST from them.. But, I'm not sure whether it is feasible.
Do you suggest another approach?
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.06438 seconds