mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 13:26:09 +00:00

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
9 lines
263 B
C++
9 lines
263 B
C++
// RUN: cp %s %t-1.cpp
|
|
// RUN: cp %s %t-2.cpp
|
|
// RUN: clang-format -style=LLVM -i %t-1.cpp %t-2.cpp
|
|
// RUN: FileCheck -strict-whitespace -input-file=%t-1.cpp %s
|
|
// RUN: FileCheck -strict-whitespace -input-file=%t-2.cpp %s
|
|
|
|
// CHECK: {{^int\ \*i;}}
|
|
int * i ;
|