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

Summary: Change clang-refactor default behavior to print the new code after refactoring (instead of editing the source files), which would make it easier to use and debug the refactoring action. Reviewers: arphaman, ioeric Reviewed By: arphaman Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D39092 llvm-svn: 316212
10 lines
410 B
C++
10 lines
410 B
C++
// RUN: sed -e 's#//.*$##' %s > %t.cpp
|
|
// RUN: clang-refactor local-rename -selection=%t.cpp:7:7 -new-name=test %t.cpp -- | FileCheck %s
|
|
// RUN: clang-refactor local-rename -selection=%t.cpp:7:7-7:15 -new-name=test %t.cpp -- | FileCheck %s
|
|
// RUN: clang-refactor local-rename -i -selection=%t.cpp:7:7 -new-name=test %t.cpp --
|
|
// RUN: FileCheck -input-file=%t.cpp %s
|
|
|
|
class RenameMe {
|
|
// CHECK: class test {
|
|
};
|