[clang-format] Fix a bug in aligning comments above PPDirective (#72791)
[llvm-project.git] / clang / test / clang-rename / CtorInitializer.cpp
blobfed4f5b06c27558a69fdca3ceb704c397be48b40
1 class Baz {};
3 class Qux {
4 Baz Foo; /* Test 1 */ // CHECK: Baz Bar;
5 public:
6 Qux();
7 };
9 Qux::Qux() : Foo() /* Test 2 */ {} // CHECK: Qux::Qux() : Bar() /* Test 2 */ {}
11 // Test 1.
12 // RUN: clang-rename -offset=33 -new-name=Bar %s -- | sed 's,//.*,,' | FileCheck %s
13 // Test 2.
14 // RUN: clang-rename -offset=118 -new-name=Bar %s -- | sed 's,//.*,,' | FileCheck %s
16 // To find offsets after modifying the file, use:
17 // grep -Ubo 'Foo.*' <file>