[PATCH] D29621: Add ASTMatchRefactorer and ReplaceNodeWithTemplate to RefactoringCallbacks

Julian Bangert via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 5 14:11:02 PDT 2017


jbangert accepted this revision.
jbangert marked 2 inline comments as done.
jbangert added inline comments.


================
Comment at: unittests/Tooling/RefactoringCallbacksTest.cpp:101
+  std::string Expected = "void f() { FOO }";
+  ReplaceNodeWithTemplate Callback("id", "FOO");
+  expectRewritten(Code, Expected, id("id", declStmt()), Callback);
----------------
ioeric wrote:
> Have you rerun the tests? Does this still build?
ninja check-clang-tools works. 


https://reviews.llvm.org/D29621





More information about the cfe-commits mailing list