[all-commits] [llvm/llvm-project] 636c67: [clang-tidy] Move formatDereference to FixitHintUtils

Mike Crowe via All-commits all-commits at lists.llvm.org
Sun Jun 11 23:12:41 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 636c672751425f1c73c28bea57c1913043cd21b2
      https://github.com/llvm/llvm-project/commit/636c672751425f1c73c28bea57c1913043cd21b2
  Author: Mike Crowe <mac at mcrowe.com>
  Date:   2023-06-12 (Mon, 12 Jun 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/RedundantStringCStrCheck.cpp
    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