[all-commits] [llvm/llvm-project] 6eb6ee: [clang-tidy] Move formatDereference to FixitHintUtils

Mike Crowe via All-commits all-commits at lists.llvm.org
Tue Jun 13 11:55:14 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6eb6ee3cfe57b768d384486693a17c7abaa0f59a
      https://github.com/llvm/llvm-project/commit/6eb6ee3cfe57b768d384486693a17c7abaa0f59a
  Author: Mike Crowe <mac at mcrowe.com>
  Date:   2023-06-13 (Tue, 13 Jun 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/RedundantStringCStrCheck.cpp
    M clang-tools-extra/clang-tidy/utils/CMakeLists.txt
    M clang-tools-extra/clang-tidy/utils/FixItHintUtils.cpp
    M clang-tools-extra/clang-tidy/utils/FixItHintUtils.h

  Log Message:
  -----------
  [clang-tidy] Move formatDereference to FixitHintUtils

I'd like to use RedundantStringCStrCheck's formatDereference function
from the up-coming modernize-use-std-print check. Let's move it to
FixItHintUtils so that the implementation can be shared.

Reviewed By: PiotrZSL

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




More information about the All-commits mailing list