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
- rG LLVM Github Monorepo
- Build Status
Buildable 38532 Build 38531: arc lint + arc unit
Event Timeline
clang/include/clang/Tooling/Refactoring/MatchConsumer.h | ||
---|---|---|
10 | \file | |
28 | 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. | |
40 | "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 | ||
---|---|---|
28 | Much better, thanks! |
\file