This patch adds a small utility to extract variable name from a memory region.
This patch does not contain any test or user yet.
There are however two differential revisions that needs similar functionality. It would be great to decide what implementation to use and make it available as a general utility.
The two potential users: http://reviews.llvm.org/D12761 and http://reviews.llvm.org/D15227
Isn't calling getDecl() and getName() afterwards identical to printPretty()?
Is it possible that a NamedDecl cannot be obtained from a DeclRegion?