This revision introduces a separate (small) library for the MatchConsumer
abstraction: computations over AST match results. This abstraction is central
to the Transformer framework, and there deserves being defined explicitly.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang/include/clang/Tooling/Refactoring/MatchConsumer.h | ||
---|---|---|
9 ↗ | (On Diff #221531) | \file |
27 ↗ | (On Diff #221531) | The comment seems to be a mix of documentation and design justification. How about this? A failable computation over nodes bound by AST matchers. It is a central abstraction of the Transformer framework. The computation should report any errors though its return value (rather than terminating the program) to enable usage in interactive scenarios like clang-query. |
39 ↗ | (On Diff #221531) | "Creates an error that signals that a MatchConsumer expected a certain node to be bound by AST matchers, but is was not actually bound." |
clang/include/clang/Tooling/Refactoring/MatchConsumer.h | ||
---|---|---|
27 ↗ | (On Diff #221531) | Much better, thanks! |