I've spent several days trying to come up with a solution for referencing C++ types in an Xtext DSL. At this point, I'm quite familiar with the Xtext/Eclipse mechanism for reference Java/JVM types.
Presumably to do something similar to the JVM import mechanism, I would have to save an existing (possibly quite large) CDT index as an Ecore and the import that Ecore into my Xtext Grammar.
The other alternative I'm considering is some programatic hook into the existing CDT Index. It seems this option may be more difficult in that it would likely involve more custom code to implement.
Has anyone out there discovered and successfully implemented reference of C++ types in Xtext grammar/DSL? Any examples? Any suggestions for better solution? For that matter do either of my proposed solutions seem reasonable/doable?
Thank you.