[all-commits] [llvm/llvm-project] d8c1f4: [libTooling] Move RewriteRule include edits to AST...

Yitzhak Mandelbaum via All-commits all-commits at lists.llvm.org
Tue Aug 11 09:48:18 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d8c1f43dcc949fda5ce37a122d1a0d92975de82c
      https://github.com/llvm/llvm-project/commit/d8c1f43dcc949fda5ce37a122d1a0d92975de82c
  Author: Yitzhak Mandelbaum <yitzhakm at google.com>
  Date:   2020-08-11 (Tue, 11 Aug 2020)

  Changed paths:
    M clang-tools-extra/clang-tidy/utils/TransformerClangTidyCheck.cpp
    M clang/include/clang/Tooling/Transformer/RewriteRule.h
    M clang/lib/Tooling/Transformer/RewriteRule.cpp
    M clang/lib/Tooling/Transformer/Transformer.cpp
    M clang/unittests/Tooling/TransformerTest.cpp

  Log Message:
  -----------
  [libTooling] Move RewriteRule include edits to ASTEdit granularity.

Currently, changes to includes are applied to an entire rule. However,
include changes may be specific to particular edits within a rule (for example,
they may apply to one file but not another). Also, include changes may need to
carry metadata, just like other changes. So, we make include changes first-class
edits.

Reviewed By: tdl-g

Differential Revision: https://reviews.llvm.org/D85734




More information about the All-commits mailing list