Replace llvm::makeArrayRef with ArrayRef constructors.

LLVM upstream is about to deprecate and remove llvm::makeArrayRef.

PiperOrigin-RevId: 501106516
Change-Id: Ice610c7e0190dc8608339de1b88b7a05e7771871
This commit is contained in:
Dmitri Gribenko 2023-01-10 15:13:31 -08:00 committed by Copybara-Service
parent f086c39f42
commit 858c407521

View File

@ -130,7 +130,7 @@ absl::StatusOr<std::string> ReformatGoogleStyle(const std::string& filename,
}
clang::tooling::Replacements replacements = clang::format::reformat(
style, code, llvm::makeArrayRef(clang::tooling::Range(0, code.size())),
style, code, llvm::ArrayRef(clang::tooling::Range(0, code.size())),
filename);
llvm::Expected<std::string> formatted_header =