Hi,
I would like to add a feature to Clang that evaluates a string and returns a type (at compile time). For example using V2 = __parse_type("struct { float x, y; };")
.
I had a look at how Clang parses decltype
and __underlying_type
but I have had no luck getting it to work yet.
Could anyone share some suggestions for getting this to work? Also how costly would this be from a maintenance point of view? Is the AST code frequently modified?
Thank you very much