mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 17:36:06 +00:00

The core engine of clang-rename will be used for local and global renames in the new refactoring engine, as mentioned in http://lists.llvm.org/pipermail/cfe-dev/2017-June/054286.html. The clang-rename tool is still supported but might get deprecated in the future. Differential Revision: https://reviews.llvm.org/D34696 llvm-svn: 306840
10 lines
259 B
C++
10 lines
259 B
C++
#include "Inputs/HeaderWithSymbol.h"
|
|
#define FOO int bar;
|
|
FOO
|
|
|
|
int foo;
|
|
|
|
// RUN: not clang-rename -new-name=qux -offset=259 %s -- 2>&1 | FileCheck %s
|
|
// CHECK-NOT: CHECK
|
|
// CHECK: error: SourceLocation in file {{.*}}InvalidOffset.cpp at offset 259 is invalid
|