[all-commits] [llvm/llvm-project] e334f0: [libTooling] Support TransformerResult<void> in co...
Eric Li via All-commits
all-commits at lists.llvm.org
Mon Mar 28 08:41:38 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e334f044cdb5c0f4f549fc0380a6757e37ccb105
https://github.com/llvm/llvm-project/commit/e334f044cdb5c0f4f549fc0380a6757e37ccb105
Author: Eric Li <li.zhe.hua at gmail.com>
Date: 2022-03-28 (Mon, 28 Mar 2022)
Changed paths:
M clang/include/clang/Tooling/Transformer/Transformer.h
M clang/lib/Tooling/Transformer/Transformer.cpp
Log Message:
-----------
[libTooling] Support TransformerResult<void> in consumer callbacks
Support `TransformerResult<void>` in the consumer callback, which
allows generic code to more naturally use the `Transformer` interface
(instead of needing to specialize on `void`).
This also delete the specialization that existed within `Transformer`
itself, instead replacing it with an `std::function` adapter.
Reviewed By: ymandel
Differential Revision: https://reviews.llvm.org/D122499
More information about the All-commits
mailing list