[all-commits] [llvm/llvm-project] 6f8f5c: [libTooling] Add function to Transformer to create...

Yitzhak Mandelbaum via All-commits all-commits at lists.llvm.org
Thu Oct 22 14:32:45 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f8f5cb77efd100e5d4916db871b18c88cf49ed0
      https://github.com/llvm/llvm-project/commit/6f8f5cb77efd100e5d4916db871b18c88cf49ed0
  Author: Yitzhak Mandelbaum <yitzhakm at google.com>
  Date:   2020-10-22 (Thu, 22 Oct 2020)

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

  Log Message:
  -----------
  [libTooling] Add function to Transformer to create a no-op edit.

This functionality is commonly needed in clang tidy checks (based on
transformer) that only print warnings, without suggesting any edits. The no-op
edit allows the user to associate a diagnostic message with a source location.

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




More information about the All-commits mailing list