Skip to content

Commit 915f036

Browse files
committed
style: apply performance-no-automatic-move
1 parent 32a5e9a commit 915f036

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.clang-tidy

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Checks: >
2323
performance-move-const-arg,
2424
performance-unnecessary-copy-initialization,
2525
performance-unnecessary-value-param,
26+
performance-no-automatic-move,
2627
modernize-make-shared,
2728
modernize-use-bool-literals,
2829
modernize-use-emplace,

tests/benchdnn/common.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ std::string locate_batch_file(const std::string &fname) {
471471
if (ifs.is_open()) return fname;
472472

473473
for (int n = 0; n < n_paths; ++n) {
474-
const std::string fullname = search_paths[n] + "/" + fname;
474+
std::string fullname = search_paths[n] + "/" + fname;
475475
ifs.open(fullname);
476476
if (ifs.is_open()) {
477477
BENCHDNN_PRINT(50, "batch file used: %s\n", fullname.c_str());
@@ -493,7 +493,7 @@ std::string locate_batch_file(const std::string &fname) {
493493
+ std::string(driver_name);
494494
}
495495
// NOLINTNEXTLINE(performance-inefficient-string-concatenation)
496-
const std::string fullname = fdir + "/" + fname;
496+
std::string fullname = fdir + "/" + fname;
497497
ifs.open(fullname);
498498
if (ifs.is_open()) {
499499
search_paths[n_paths++] = std::move(fdir);

0 commit comments

Comments
 (0)