Skip to content

Commit 72e2e4f

Browse files
authored
[clang-format] Lambda parameter should be passed by const reference (#87306)
Closes #87254.
1 parent 362aa43 commit 72e2e4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Format/Format.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3581,7 +3581,7 @@ cleanupAroundReplacements(StringRef Code, const tooling::Replacements &Replaces,
35813581
// We need to use lambda function here since there are two versions of
35823582
// `cleanup`.
35833583
auto Cleanup = [](const FormatStyle &Style, StringRef Code,
3584-
std::vector<tooling::Range> Ranges,
3584+
ArrayRef<tooling::Range> Ranges,
35853585
StringRef FileName) -> tooling::Replacements {
35863586
return cleanup(Style, Code, Ranges, FileName);
35873587
};

0 commit comments

Comments
 (0)