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

class Foo {};       // CHECK: class Bar

int main() {
  Foo *Pointer = 0; // CHECK: Bar *Pointer = 0;
  return 0;
}

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