One of clang's invaluable debug/analysis tools is "-ast-dump". Unfortunately, it doesn't currently work for declarations. Since declarations in C/C++ are quite complex, it would be great if -ast-dump were extended to support them.
If you are interested, please speak up...
Thanks for your support,