This is an archive of the discontinued LLVM Phabricator instance.

[libTooling] Further simplify `Stencil` type and introduce `MatchComputation`.
ClosedPublic

Authored by ymandel on Nov 4 2019, 6:20 AM.

Details

Summary

This revision introduces a new interface MatchComputation which generalizes
the Stencil interface and replaces the std::function interface of
MatchConsumer. With this revision, Stencil (as an abstraction) becomes just
one collection of implementations of
MatchComputation<std::string>. Correspondingly, we remove the Stencil class
entirely in favor of a simple type alias, deprecate MatchConsumer and change
all functions that accepted MatchConsumer<std::string> to use
MatchComputation<std::string> instead.

Diff Detail

Event Timeline

ymandel created this revision.Nov 4 2019, 6:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 4 2019, 6:20 AM
gribozavr2 accepted this revision.Nov 11 2019, 8:27 AM
This revision is now accepted and ready to land.Nov 11 2019, 8:27 AM
ymandel updated this revision to Diff 228720.Nov 11 2019, 9:41 AM

syntax fixes (to compile)

This revision was automatically updated to reflect the committed changes.