[all-commits] [llvm/llvm-project] 5e5d36: [libTooling] Simplify the representation of Transf...

Yitzhak Mandelbaum via All-commits all-commits at lists.llvm.org
Wed Apr 8 05:47:03 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5e5d36671833e186e847e74bb5ed0c559625b906
      https://github.com/llvm/llvm-project/commit/5e5d36671833e186e847e74bb5ed0c559625b906
  Author: Yitzhak Mandelbaum <yitzhakm at google.com>
  Date:   2020-04-08 (Wed, 08 Apr 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

  Log Message:
  -----------
  [libTooling] Simplify the representation of Transformer's RewriteRules.

Summary:
This revision simplifies the representation of edits in rewrite rules. The
simplified form is more general, allowing the user more flexibility in building
custom edit specifications.

The changes extend the API, without changing the signature of existing
functions. So this only risks breaking users that directly accessed the
`RewriteRule` struct.

Reviewers: gribozavr2

Subscribers: jfb, cfe-commits

Tags: #clang

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




More information about the All-commits mailing list