]> granicus.if.org Git - clang/commit
clang-format support for multiple input files.
authorAlexander Kornienko <alexfh@google.com>
Wed, 24 Apr 2013 12:46:44 +0000 (12:46 +0000)
committerAlexander Kornienko <alexfh@google.com>
Wed, 24 Apr 2013 12:46:44 +0000 (12:46 +0000)
commit4cdc0cde1396df5d937c39c626abe99760197654
treeaeaf54f04d2b55322a6c1c593dfb8670f2b04635
parente0262e25206bef1d7efb0cb2f37abd1e42ada4cb
clang-format support for multiple input files.

Summary:
Added support for multiple input files, that can be used both with and
without in-place edit (-i) option. Added checks for -offset and -length options:
don't allow them on multiple files, check that they don't fall outside input
file, made both options unsigned, so that there's no need to check for negative
values. Removed "-1 can be used for end-of-file" from -length description.

Reviewers: djasper, klimek

Reviewed By: djasper

CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D719

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180185 91177308-0d34-0410-b5e6-96231b3b80d8
test/Format/multiple-inputs-error.cpp [new file with mode: 0644]
test/Format/multiple-inputs-inplace.cpp [new file with mode: 0644]
test/Format/multiple-inputs.cpp [new file with mode: 0644]
tools/clang-format/ClangFormat.cpp