diff --git a/.clang-tidy b/.clang-tidy index 9e775a89796..993d62c018a 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -26,11 +26,9 @@ Checks: > -bugprone-unhandled-self-assignment, -bugprone-unused-raii, -cert-env33-c, - -cert-err09-cpp, -cert-err33-c, -cert-err34-c, -cert-err58-cpp, - -cert-err61-cpp, -cert-flp30-c, -cert-msc30-c, -cert-msc32-c, @@ -121,7 +119,6 @@ Checks: > -misc-no-recursion, -misc-non-private-member-variables-in-classes, -misc-redundant-expression, - -misc-throw-by-value-catch-by-reference, -misc-unconventional-assign-operator, -misc-uniqueptr-reset-release, -misc-unused-parameters, diff --git a/tests/tt_metal/tt_metal/perf_microbenchmark/ethernet/test_ethernet_bidirectional_bandwidth_no_edm.cpp b/tests/tt_metal/tt_metal/perf_microbenchmark/ethernet/test_ethernet_bidirectional_bandwidth_no_edm.cpp index f351b0a75d7..98eba2469d1 100644 --- a/tests/tt_metal/tt_metal/perf_microbenchmark/ethernet/test_ethernet_bidirectional_bandwidth_no_edm.cpp +++ b/tests/tt_metal/tt_metal/perf_microbenchmark/ethernet/test_ethernet_bidirectional_bandwidth_no_edm.cpp @@ -270,7 +270,7 @@ int main(int argc, char** argv) { } } } - } catch (std::exception e) { + } catch (std::exception& e) { test_fixture.TearDown(); return -1; } diff --git a/tests/tt_metal/tt_metal/perf_microbenchmark/ethernet/test_ethernet_hop_latencies_no_edm.cpp b/tests/tt_metal/tt_metal/perf_microbenchmark/ethernet/test_ethernet_hop_latencies_no_edm.cpp index 476e9890797..f9adf4f13fb 100644 --- a/tests/tt_metal/tt_metal/perf_microbenchmark/ethernet/test_ethernet_hop_latencies_no_edm.cpp +++ b/tests/tt_metal/tt_metal/perf_microbenchmark/ethernet/test_ethernet_hop_latencies_no_edm.cpp @@ -533,7 +533,7 @@ int main(int argc, char** argv) { } } } - } catch (std::exception e) { + } catch (std::exception& e) { test_fixture.TearDown(); return -1; } diff --git a/tests/tt_metal/tt_metal/perf_microbenchmark/ethernet/test_ethernet_link_ping_latency_no_edm.cpp b/tests/tt_metal/tt_metal/perf_microbenchmark/ethernet/test_ethernet_link_ping_latency_no_edm.cpp index d2544f39271..d473716b05c 100644 --- a/tests/tt_metal/tt_metal/perf_microbenchmark/ethernet/test_ethernet_link_ping_latency_no_edm.cpp +++ b/tests/tt_metal/tt_metal/perf_microbenchmark/ethernet/test_ethernet_link_ping_latency_no_edm.cpp @@ -287,7 +287,7 @@ int main(int argc, char** argv) { } } } - } catch (std::exception e) { + } catch (std::exception& e) { test_fixture.TearDown(); return -1; }