llvm-for-llvmta/tools/clang/test/Refactor/tool-apply-replacements.cpp

10 lines
410 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// 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 {
};