llvm-for-llvmta/tools/clang/test/Refactor/LocalRename/Field.cpp

12 lines
268 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: clang-refactor local-rename -selection=test:%s -new-name=Bar %s -- | grep -v CHECK | FileCheck %s
class Baz {
int /*range=*/Foo;
// CHECK: int /*range=*/Bar;
public:
Baz();
};
Baz::Baz() : /*range=*/Foo(0) {}
// CHECK: Baz::Baz() : /*range=*/Bar(0) {}