commit | 8a99945769aa83270bda4ae4890f519800aa19eb | [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 | 14f2e589d651d61721e5c9a6d9651d3e89794494 | |
parent | 058f6f889a1df37f31bcf6b82060b8f815113471 [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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181997 91177308-0d34-0410-b5e6-96231b3b80d8