1 template <typename T
/* Test 1 */> // CHECK: template <typename U /* Test 1 */>
3 T
foo(T arg
, T
& ref
, T
* /* Test 2 */ ptr
) { // CHECK: U foo(U arg, U& ref, U* /* Test 2 */ ptr) {
4 T value
; // CHECK: U value;
6 value
= (T
)number
; // CHECK: value = (U)number;
7 value
= static_cast<T
/* Test 3 */>(number
); // CHECK: value = static_cast<U /* Test 3 */>(number);
11 static void foo(T value
) {} // CHECK: static void foo(U value) {}
13 T member
; // CHECK: U member;
17 // RUN: clang-rename -offset=19 -new-name=U %s -- -fno-delayed-template-parsing | sed 's,//.*,,' | FileCheck %s
19 // RUN: clang-rename -offset=126 -new-name=U %s -- -fno-delayed-template-parsing | sed 's,//.*,,' | FileCheck %s
21 // RUN: clang-rename -offset=392 -new-name=U %s -- -fno-delayed-template-parsing | sed 's,//.*,,' | FileCheck %s
23 // To find offsets after modifying the file, use:
24 // grep -Ubo 'T.*' <file>