@defs() support

Here is a little patch for adding support for @defs(). It works, but doesn't generate very friendly errors yet.

David

defs.diff (4.31 KB)

You are returning a SmallVector in ActOnDefs by value. Please pass a reference to SmallVector as argument to collect ivars.
Also, we would like to have a test case with each new feature. Run the result through rewriter and make sure that it works.
Also -ast-print should do the pretty-printing of the result as a test.

- Fariborz