Implements support for specifying multiple ranges.
authorManuel Klimek <klimek@google.com>
Tue, 5 Feb 2013 15:25:34 +0000 (15:25 +0000)
committerManuel Klimek <klimek@google.com>
Tue, 5 Feb 2013 15:25:34 +0000 (15:25 +0000)
commit8c651f09744813c364c8d4ca48c153d01e03ec6e
tree2944547883005e6b1ad1e4052967ed8e54e5899c
parent22174f5d5af1eb15b376c6d49e7925cbb7cca6be
Implements support for specifying multiple ranges.

This is backwards compatible with earlier integrations.
Also adds a basic test and a test for the ranges integration.

You can now run:
clang-format -offset=42 -length=15 -offset=150 -length=22
To re-format the ranges (42, +15) and (150, +22).

llvm-svn: 174378
clang-tools-extra/clang-format/ClangFormat.cpp
clang-tools-extra/test/clang-format/basic.cpp [new file with mode: 0644]
clang-tools-extra/test/clang-format/ranges.cpp [new file with mode: 0644]