[PATCH] D122499: [libTooling] Support TransformerResult<void> in consumer callbacks
Eric Li via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 25 12:20:12 PDT 2022
li.zhe.hua created this revision.
li.zhe.hua added a reviewer: ymandel.
Herald added a project: All.
li.zhe.hua requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D122499
Files:
clang/include/clang/Tooling/Transformer/Transformer.h
clang/lib/Tooling/Transformer/Transformer.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122499.418292.patch
Type: text/x-patch
Size: 6906 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220325/4bfee2d6/attachment-0001.bin>
More information about the cfe-commits
mailing list