[cfe-dev] libclang for unknown type implicit to int type

Amrulla Khan Patan via cfe-dev cfe-dev at lists.llvm.org
Wed Oct 16 01:04:11 PDT 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20191016/871d655f/attachment.html>


More information about the cfe-dev mailing list