Re: [cfe-users] uniquely identifying names

2016-08-26 Thread Anna Zaks via cfe-users
> On Aug 26, 2016, at 8:33 AM, David Blaikie via cfe-users > wrote: > > There's no structural identity of code in Clang that I know of - I know > someone's building a tool for doing structural similarity for things like > plagiarism detection (I think there are some patches on the clang maili

Re: [cfe-users] uniquely identifying names

2016-08-26 Thread David Blaikie via cfe-users
There's no structural identity of code in Clang that I know of - I know someone's building a tool for doing structural similarity for things like plagiarism detection (I think there are some patches on the clang mailing list). But if you only need identity within a single process, the pointer valu

[cfe-users] uniquely identifying names

2016-08-26 Thread folkert via cfe-users
Hi, The Sun java compiler allows you to (from java) walk the AST and investigate it. Each token is stored in an object. Each object has a hash() method which uniquely identifies it. Now I was wondering: can I do so with the LLVM tooling as well? I could of course if I want to identify e.g. a func