From 3fbee010c6b55fda1e34b424e331e418c96e917f Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Wed, 24 Apr 2013 12:46:44 +0000 Subject: 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 llvm-svn: 180185 --- clang/test/Format/multiple-inputs.cpp | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 clang/test/Format/multiple-inputs.cpp (limited to 'clang/test/Format/multiple-inputs.cpp') diff --git a/clang/test/Format/multiple-inputs.cpp b/clang/test/Format/multiple-inputs.cpp new file mode 100644 index 0000000..df26714 --- /dev/null +++ b/clang/test/Format/multiple-inputs.cpp @@ -0,0 +1,7 @@ +// RUN: cp %s %t-1.cpp +// RUN: cp %s %t-2.cpp +// RUN: clang-format -style=LLVM %t-1.cpp %t-2.cpp|FileCheck -strict-whitespace %s + +// CHECK: {{^int\ \*i;}} +// CHECK: {{^int\ \*i;}} + int * i ; -- cgit v1.1