| commit | ec04c0dba0b2ca2ad6906009e8eca54928b99c46 | [log] [tgz] |
|---|---|---|
| author | Daniel Jasper <djasper@google.com> | Thu May 16 10:40:07 2013 +0000 |
| committer | Daniel Jasper <djasper@google.com> | Thu May 16 10:40:07 2013 +0000 |
| tree | 90b56b68a2c79a436457b6cdf858c147c17b732f | |
| parent | f9eb9b18830349057d4608ecbac2077e84906f5c [diff] |
Add a more convenient interface to use clang-format. It turns out that several implementations go through the trouble of setting up a SourceManager and Lexer and abstracting this into a function makes usage easier. Also abstracts SourceManager-independent ranges out of tooling::Refactoring and provides a convenience function to create them from line ranges. llvm-svn: 181997