Ah - thanks very much.
I have another question for you if you don’t mind.
I am trying to use various features in the python api to compile a type declaration snippet into a tinfo_t object. I would like these declarations to include C++ template type definitions, so something like:
-
A (func*)(C<D> p1); or
-
C;
would compile. I tried using the parser from ida_srclang, but it requires the snippet to be syntactically complete (so 1 won’t compile) and the type declarations needed to parse the snippet to be in the scope of that snippet. This is different than how it works using something like ida_typeinf.parse_decl, which will happily parse a snippet like 1 in isolation - the only problem is it will not accept the template syntax.
So is there some way to get ida_typeinf.parse_decl to accept the template syntax? Or some other call that I have not yet found that will? I tried using idauser.cfg to have it accept the < and > characters, and while that works for the GUI, it does not affect the parser.
Thanks.