Add ASTMatchRefactorer and ReplaceNodeWithTemplate to RefactoringCallbacks
authorEric Liu <ioeric@google.com>
Wed, 10 May 2017 07:48:45 +0000 (07:48 +0000)
committerEric Liu <ioeric@google.com>
Wed, 10 May 2017 07:48:45 +0000 (07:48 +0000)
commitfc9213e0e518fd3302ce79c29e302455871b764b
treea0218a4ed476280d1a3f5657977844b0e5d1225d
parentfda31e64e04fdc87e1e98bf0b191425c3c40ecf1
Add ASTMatchRefactorer and ReplaceNodeWithTemplate to RefactoringCallbacks

Summary: This is the first change as part of developing a clang-query based search and replace tool.

Reviewers: klimek, bkramer, ioeric, sbenza, jbangert

Reviewed By: ioeric, jbangert

Subscribers: sbenza, ioeric, cfe-commits

Patch by Julian Bangert!

Differential Revision: https://reviews.llvm.org/D29621

llvm-svn: 302624
clang/include/clang/Tooling/RefactoringCallbacks.h
clang/lib/Tooling/RefactoringCallbacks.cpp
clang/unittests/Tooling/RefactoringCallbacksTest.cpp