libclang for unknown type implicit to int type

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

libclang for unknown type implicit to int type

Kristof Beyls via cfe-dev
Dear Team,

I am trying to parse a code snippet without passing the full definition of types used using libclang. For example,

foo goo(foo x)
{
  return x;
}

When I traverse the AST I get as below,
int goo(int x)
{
  return x;
}

foo type is converted to int.

I am looking for a work around to get AST for this kind of code snippets without providing full definitions using clang and without implicit conversion to int for unknown types. Could you please help me with this?

Thanks and regards
Amrulla


_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev