blob: f6529024791692adddfd92fd031fe32b0326448a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// RUN: cat %s > %t.cpp
// RUN: clang-rename -offset=154 -new-name=bar %t.cpp -i --
// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s
template <typename T>
T foo(T value) { // CHECK: T bar(T value) {
return value;
}
int main() {
foo<bool>(false); // CHECK: bar<bool>(false);
foo<int>(0); // CHECK: bar<int>(0);
return 0;
}
// Use grep -FUbo 'foo' <file> to get the correct offset of foo when changing
// this file.
|