|C++ class code generation using CDT [message #1745737]
||Sun, 16 October 2016 19:39
| Dev Dev
Registered: October 2016
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?
Powered by FUDForum
. Page generated in 0.01234 seconds