[clang-tidy] Move formatDereference to FixitHintUtils
authorMike Crowe <mac@mcrowe.com>
Mon, 12 Jun 2023 06:09:17 +0000 (06:09 +0000)
committerPiotr Zegar <me@piotrzegar.pl>
Mon, 12 Jun 2023 06:09:17 +0000 (06:09 +0000)
commit636c672751425f1c73c28bea57c1913043cd21b2
tree911179ffbba2f7105ad8814f49395fb728284af0
parent4099053646a051533a9b1016da665fc9854b18cb
[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
clang-tools-extra/clang-tidy/readability/RedundantStringCStrCheck.cpp
clang-tools-extra/clang-tidy/utils/FixItHintUtils.cpp
clang-tools-extra/clang-tidy/utils/FixItHintUtils.h