[Mlir-commits] [mlir] 1893a37 - Apply clang-tidy fixes for performance-unnecessary-value-param in FileLineColLocBreakpointManagerTest.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Tue Feb 20 14:15:12 PST 2024


Author: Mehdi Amini
Date: 2024-02-20T14:14:39-08:00
New Revision: 1893a3743eb971f0ea7657dc119b642a12870a1e

URL: https://github.com/llvm/llvm-project/commit/1893a3743eb971f0ea7657dc119b642a12870a1e
DIFF: https://github.com/llvm/llvm-project/commit/1893a3743eb971f0ea7657dc119b642a12870a1e.diff

LOG: Apply clang-tidy fixes for performance-unnecessary-value-param in FileLineColLocBreakpointManagerTest.cpp (NFC)

Added: 
    

Modified: 
    mlir/unittests/Debug/FileLineColLocBreakpointManagerTest.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/unittests/Debug/FileLineColLocBreakpointManagerTest.cpp b/mlir/unittests/Debug/FileLineColLocBreakpointManagerTest.cpp
index 48c62ad20a04a6..5b48e80749c8b8 100644
--- a/mlir/unittests/Debug/FileLineColLocBreakpointManagerTest.cpp
+++ b/mlir/unittests/Debug/FileLineColLocBreakpointManagerTest.cpp
@@ -98,7 +98,7 @@ TEST(FileLineColLocBreakpointManager, OperationMatch) {
   // Set a breakpoint matching only the second operation in the list.
   auto *breakpoint = breakpointManager.addBreakpoint(
       fileNames[0], lineColLoc[0].first, lineColLoc[0].second);
-  auto checkMatchIdxs = [&](DenseSet<int> idxs) {
+  auto checkMatchIdxs = [&](const DenseSet<int> &idxs) {
     counter = 0;
     int reference = 0;
     for (int i = 0; i < (int)operations.size(); ++i) {


        


More information about the Mlir-commits mailing list