summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-rename/Field.cpp
blob: d7c7e7b9363f695a5abb4bb4be2f502a3897c308 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: clang-rename -offset=87 -new-name=Bar %s -- | FileCheck %s

class Baz {
  int Foo;              // CHECK: Bar;
public:
  Baz();
};

Baz::Baz() : Foo(0) {}  // CHECK: Baz::Baz() : Bar(0) {}

// Use grep -FUbo 'Foo' <file> to get the correct offset of foo when changing
// this file.
OpenPOWER on IntegriCloud