[PATCH] D39178: [rename] support renaming class member.

Eric Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 23 08:08:50 PDT 2017


ioeric accepted this revision.
ioeric added a comment.
This revision is now accepted and ready to land.

Lgtm. Nice!



================
Comment at: lib/Tooling/Refactoring/Rename/USRLocFinder.cpp:251
+      // Ignore implicit initializers.
+      if (!Initializer->isWritten())
+        continue;
----------------
Is there a test case for this?


================
Comment at: unittests/Rename/RenameMemberTest.cpp:206
+
+      X::X():a() {}
+      )";
----------------
Maybe add one more field in the test?


https://reviews.llvm.org/D39178





More information about the cfe-commits mailing list