Skip to content

Commit 045331e

Browse files
committed
[MLIR] Apply clang-tidy fixes for performance-unnecessary-value-param in SymbolTableTest.cpp (NFC)
1 parent b1d0605 commit 045331e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mlir/unittests/IR/SymbolTableTest.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ namespace {
7777

7878
TEST_F(ReplaceAllSymbolUsesTest, OperationInModuleOp) {
7979
// Symbol as `Operation *`, rename within module.
80-
testReplaceAllSymbolUses([&](auto symbolTable, auto module, auto fooOp,
80+
testReplaceAllSymbolUses([&](const auto &symbolTable, auto module, auto fooOp,
8181
auto barOp) -> LogicalResult {
8282
return symbolTable.replaceAllSymbolUses(
8383
barOp, StringAttr::get(context.get(), "baz"), module);
@@ -86,7 +86,7 @@ TEST_F(ReplaceAllSymbolUsesTest, OperationInModuleOp) {
8686

8787
TEST_F(ReplaceAllSymbolUsesTest, StringAttrInModuleOp) {
8888
// Symbol as `StringAttr`, rename within module.
89-
testReplaceAllSymbolUses([&](auto symbolTable, auto module, auto fooOp,
89+
testReplaceAllSymbolUses([&](const auto &symbolTable, auto module, auto fooOp,
9090
auto barOp) -> LogicalResult {
9191
return symbolTable.replaceAllSymbolUses(
9292
StringAttr::get(context.get(), "bar"),
@@ -96,7 +96,7 @@ TEST_F(ReplaceAllSymbolUsesTest, StringAttrInModuleOp) {
9696

9797
TEST_F(ReplaceAllSymbolUsesTest, OperationInModuleBody) {
9898
// Symbol as `Operation *`, rename within module body.
99-
testReplaceAllSymbolUses([&](auto symbolTable, auto module, auto fooOp,
99+
testReplaceAllSymbolUses([&](const auto &symbolTable, auto module, auto fooOp,
100100
auto barOp) -> LogicalResult {
101101
return symbolTable.replaceAllSymbolUses(
102102
barOp, StringAttr::get(context.get(), "baz"), &module->getRegion(0));
@@ -105,7 +105,7 @@ TEST_F(ReplaceAllSymbolUsesTest, OperationInModuleBody) {
105105

106106
TEST_F(ReplaceAllSymbolUsesTest, StringAttrInModuleBody) {
107107
// Symbol as `StringAttr`, rename within module body.
108-
testReplaceAllSymbolUses([&](auto symbolTable, auto module, auto fooOp,
108+
testReplaceAllSymbolUses([&](const auto &symbolTable, auto module, auto fooOp,
109109
auto barOp) -> LogicalResult {
110110
return symbolTable.replaceAllSymbolUses(
111111
StringAttr::get(context.get(), "bar"),
@@ -115,7 +115,7 @@ TEST_F(ReplaceAllSymbolUsesTest, StringAttrInModuleBody) {
115115

116116
TEST_F(ReplaceAllSymbolUsesTest, OperationInFuncOp) {
117117
// Symbol as `Operation *`, rename within function.
118-
testReplaceAllSymbolUses([&](auto symbolTable, auto module, auto fooOp,
118+
testReplaceAllSymbolUses([&](const auto &symbolTable, auto module, auto fooOp,
119119
auto barOp) -> LogicalResult {
120120
return symbolTable.replaceAllSymbolUses(
121121
barOp, StringAttr::get(context.get(), "baz"), fooOp);
@@ -124,7 +124,7 @@ TEST_F(ReplaceAllSymbolUsesTest, OperationInFuncOp) {
124124

125125
TEST_F(ReplaceAllSymbolUsesTest, StringAttrInFuncOp) {
126126
// Symbol as `StringAttr`, rename within function.
127-
testReplaceAllSymbolUses([&](auto symbolTable, auto module, auto fooOp,
127+
testReplaceAllSymbolUses([&](const auto &symbolTable, auto module, auto fooOp,
128128
auto barOp) -> LogicalResult {
129129
return symbolTable.replaceAllSymbolUses(
130130
StringAttr::get(context.get(), "bar"),

0 commit comments

Comments
 (0)