[PATCH] D85733: [libTooling] Cleanup and reorder `RewriteRule.h`.

Yitzhak Mandelbaum via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 11 07:25:55 PDT 2020


ymandel created this revision.
ymandel added a reviewer: gribozavr2.
Herald added a project: clang.
ymandel requested review of this revision.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85733

Files:
  clang/include/clang/Tooling/Transformer/RewriteRule.h
  clang/lib/Tooling/Transformer/RewriteRule.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85733.284713.patch
Type: text/x-patch
Size: 12281 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200811/f45803f4/attachment-0001.bin>


More information about the cfe-commits mailing list