Skip to content

Commit 96195e7

Browse files
committed
[MLIR] Apply clang-tidy fixes for performance-unnecessary-value-param in Transport.cpp (NFC)
1 parent 8feb754 commit 96195e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/unittests/Tools/lsp-server-support/Transport.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ TEST_F(TransportInputTest, OutgoingRequest) {
147147
auto callFn =
148148
getMessageHandler().outgoingRequest<CompletionList, CompletionContext>(
149149
"outgoing-request",
150-
[&responseCallbackInvoked](llvm::json::Value id,
150+
[&responseCallbackInvoked](const llvm::json::Value &id,
151151
llvm::Expected<CompletionContext> result) {
152152
// Make expectations on the expected response.
153153
EXPECT_EQ(id, 83);
@@ -177,7 +177,7 @@ TEST_F(TransportInputTest, OutgoingRequestJSONParseFailure) {
177177
bool responseCallbackInvoked = false;
178178
auto callFn = getMessageHandler().outgoingRequest<CompletionList, Position>(
179179
"outgoing-request-json-parse-failure",
180-
[&responseCallbackInvoked](llvm::json::Value id,
180+
[&responseCallbackInvoked](const llvm::json::Value &id,
181181
llvm::Expected<Position> result) {
182182
llvm::Error err = result.takeError();
183183
EXPECT_EQ(id, 109);

0 commit comments

Comments
 (0)