blob: 13bac334929f20f367a3e0902bb44304e98632af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// RUN: cat %s > %t.cpp
// RUN: clang-rename -offset=205 -new-name=Bar %t.cpp -i --
// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s
class Foo {}; // CHECK: class Bar {};
class Baz {
operator Foo() const { // CHECK: operator Bar() const {
// offset ^
Foo foo; // CHECK: Bar foo;
return foo;
}
};
|