Def/Use

Hi all,

I need to know if a DeclRefExpr is a use or a def while visiting the AST at Clang level (i.e. before generating the LLVM IR).
I found an old discussion on the list about making an analysis to build the use-def chain but it seems to never have been commited to the trunk.
http://lists.llvm.org/pipermail/cfe-dev/2009-September/006308.html

Anyone would have an idea? Any help would be very appreciated :slight_smile:

Hervé