]> granicus.if.org Git - clang/commit
[libTooling] Add `run` combinator to Stencils.
authorYitzhak Mandelbaum <yitzhakm@google.com>
Thu, 26 Sep 2019 00:53:56 +0000 (00:53 +0000)
committerYitzhak Mandelbaum <yitzhakm@google.com>
Thu, 26 Sep 2019 00:53:56 +0000 (00:53 +0000)
commitfff381358d2e5443086f2d994c624b043cffc14b
tree8cf0cf2e4c9a007acbcf386ae8795a0fca853cbc
parent4cd0ed30b2c0c425debc1684478e3b49584ba464
[libTooling] Add `run` combinator to Stencils.

Summary:
This revision adds `run`, a StencilPart that runs a user-defined function that
computes a result over `MatchFinder::MatchResult`.

Reviewers: gribozavr

Subscribers: cfe-commits

Tags: #clang

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372936 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Tooling/Refactoring/Stencil.h
lib/Tooling/Refactoring/Stencil.cpp
unittests/Tooling/StencilTest.cpp