[cfe-dev] Semantic Analysis in Clang
Manuel Klimek
klimek at google.com
Fri Jan 25 03:35:48 PST 2013
On Thu, Jan 24, 2013 at 12:49 PM, madil90 <madil90 at gmail.com> wrote:
> Hi,
> I am looking to perform some semantic analysis in clang. More
> specifically, I want to know whether a function exists for a certain type.
> The function is global. e.g.
>
> String toString(A a);
>
> I want to differentiate that this function exists for type A and not
> for
> type B. I have built an AST and am parsing it. How can I achieve this?
> (Whenever I encounter a type)
>
I'd loop over all declarations of toString and see which type they take...
Perhaps I'm misunderstanding your problem though :)
Cheers,
/Manuel
> Regards,
> Adil
>
>
>
> --
> View this message in context:
> http://clang-developers.42468.n3.nabble.com/Semantic-Analysis-in-Clang-tp4030012.html
> Sent from the Clang Developers mailing list archive at Nabble.com.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130125/bc3dd019/attachment.html>
More information about the cfe-dev
mailing list