This is an archive of the discontinued LLVM Phabricator instance.

[libTooling] Cleanup and reorder `RewriteRule.h`.
ClosedPublic

Authored by ymandel on Aug 11 2020, 7:25 AM.

Details

Summary

This patch lifts RootID out of the RewriteRule class so that constructs
(e.g. inline functions) can that refer to the root id don't need to depend on
the RewriteRule class.

With this dependency, the patch is able to collect all ASTEdit helper function
declarations together with the class declaration, before the introduction of the
RewriteRule class. In the process, we also adjust some of the comments.

This patch is essentially a NFC.

Diff Detail

Event Timeline

ymandel created this revision.Aug 11 2020, 7:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 11 2020, 7:25 AM
ymandel requested review of this revision.Aug 11 2020, 7:25 AM
gribozavr2 accepted this revision.Aug 11 2020, 9:18 AM
gribozavr2 added inline comments.
clang/include/clang/Tooling/Transformer/RewriteRule.h
147
This revision is now accepted and ready to land.Aug 11 2020, 9:18 AM
ymandel updated this revision to Diff 284785.Aug 11 2020, 9:25 AM

fixed typo

This revision was landed with ongoing or failed builds.Aug 11 2020, 9:36 AM
This revision was automatically updated to reflect the committed changes.