Oops. I guess it's not very easy to get the SourceManager out of RefactoringTool since it's created internally every time ToolInvocation::run() is executed. Forget what I said. http://llvm-reviews.chandlerc.com/D371