[all-commits] [llvm/llvm-project] 9945bd: Add Metadata to Transformer tooling

Yitzhak Mandelbaum via All-commits all-commits at lists.llvm.org
Tue Jun 30 08:03:36 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9945bd5911636e7f821ac82fdcf8fdb22126e7dc
      https://github.com/llvm/llvm-project/commit/9945bd5911636e7f821ac82fdcf8fdb22126e7dc
  Author: Andy Soffer <asoffer>
  Date:   2020-06-30 (Tue, 30 Jun 2020)

  Changed paths:
    M clang/include/clang/Tooling/Refactoring/AtomicChange.h
    M clang/include/clang/Tooling/Transformer/RewriteRule.h
    M clang/lib/Tooling/Refactoring/AtomicChange.cpp
    M clang/lib/Tooling/Transformer/RewriteRule.cpp
    M clang/lib/Tooling/Transformer/Transformer.cpp
    M clang/unittests/Tooling/RefactoringTest.cpp
    M clang/unittests/Tooling/TransformerTest.cpp

  Log Message:
  -----------
  Add Metadata to Transformer tooling

This change adds a Metadata field to ASTEdit, Edit, and AtomicChange so that
edits can have associated metadata and that metadata can be constructed with
Transformer-based RewriteRules. Metadata is ignored when applying edits to
source, but other consumers of AtomicChange can use this metadata to direct how
they want to consume each edit.

Reviewed By: ymandel, gribozavr2

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




More information about the All-commits mailing list