This is an archive of the discontinued LLVM Phabricator instance.

Add ASTMatchRefactorer and ReplaceNodeWithTemplate to RefactoringCallbacks
AbandonedPublic

Authored by jbangert on Feb 6 2017, 5:32 PM.

Details

Reviewers
klimek
Summary

This is the first change towards a clang-query based search and replace tool.

It introduces new infrastructure for making RefactoringCallbacks integrate with RefactoringTool, and adds a new RefactoringCallback that replaces a node with the result of expanding a template that can reference other nodes.

Event Timeline

jbangert created this revision.Feb 6 2017, 5:32 PM
jbangert edited the summary of this revision. (Show Details)Feb 6 2017, 5:34 PM
jbangert added a reviewer: klimek.
jbangert abandoned this revision.Feb 7 2017, 1:08 AM