File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ Checks: >
23
23
performance-move-const-arg,
24
24
performance-unnecessary-copy-initialization,
25
25
performance-unnecessary-value-param,
26
+ performance-no-automatic-move,
26
27
modernize-make-shared,
27
28
modernize-use-bool-literals,
28
29
modernize-use-emplace,
Original file line number Diff line number Diff line change @@ -471,7 +471,7 @@ std::string locate_batch_file(const std::string &fname) {
471
471
if (ifs.is_open ()) return fname;
472
472
473
473
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;
475
475
ifs.open (fullname);
476
476
if (ifs.is_open ()) {
477
477
BENCHDNN_PRINT (50 , " batch file used: %s\n " , fullname.c_str ());
@@ -493,7 +493,7 @@ std::string locate_batch_file(const std::string &fname) {
493
493
+ std::string (driver_name);
494
494
}
495
495
// NOLINTNEXTLINE(performance-inefficient-string-concatenation)
496
- const std::string fullname = fdir + " /" + fname;
496
+ std::string fullname = fdir + " /" + fname;
497
497
ifs.open (fullname);
498
498
if (ifs.is_open ()) {
499
499
search_paths[n_paths++] = std::move (fdir);
You can’t perform that action at this time.
0 commit comments