Skip to content

Commit

Permalink
[clang-format] Lambda parameter should be passed by const reference (#…
Browse files Browse the repository at this point in the history
…87306)

Closes #87254.
  • Loading branch information
owenca committed Apr 3, 2024
1 parent 362aa43 commit 72e2e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Format/Format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3581,7 +3581,7 @@ cleanupAroundReplacements(StringRef Code, const tooling::Replacements &Replaces,
// We need to use lambda function here since there are two versions of
// `cleanup`.
auto Cleanup = [](const FormatStyle &Style, StringRef Code,
std::vector<tooling::Range> Ranges,
ArrayRef<tooling::Range> Ranges,
StringRef FileName) -> tooling::Replacements {
return cleanup(Style, Code, Ranges, FileName);
};
Expand Down

0 comments on commit 72e2e4f

Please sign in to comment.