[cfe-dev] want to intercept array dereferences

David Chisnall David.Chisnall at cl.cam.ac.uk
Thu Apr 9 03:44:57 PDT 2015


On 8 Apr 2015, at 17:56, Gry Gunvor <gry.gunvor at gmail.com> wrote:
> 
> The LLVM guys suggest that intercepting a pointer type plus an int
> type followed by a deref would not be a stable solution.  They suggest
> that I do this at the clang layer.  Where would be the stable place to
> do it?  I'm new to clang development, so some context would be
> helpful.

I think that your last sentence applies to everyone else too: can you explain what you are trying to achieve?  In C, it is perfectly valid to write a[n], n[a], or *(a+n).  Do you want to distinguish these three or catch all of them?  What problem are you actually trying to solve?

David





More information about the cfe-dev mailing list