Kirill Bobyrev | ee99fd1 | 2016-07-15 12:22:38 +0000 | [diff] [blame^] | 1 | // RUN: cat %s > %t.cpp |
2 | // RUN: clang-rename -offset=136 -new-name=Bar %t.cpp -i -- | ||||
3 | // RUN: sed 's,//.*,,' %t.cpp | FileCheck %s | ||||
4 | |||||
5 | class Foo {}; // CHECK: class Bar | ||||
6 | |||||
7 | int main() { | ||||
8 | Foo *Pointer = 0; // CHECK: Bar *Pointer = 0; | ||||
9 | return 0; | ||||
10 | } | ||||
11 | |||||
12 | // Use grep -FUbo 'Foo' <file> to get the correct offset of Cla when changing | ||||
13 | // this file. |