Use clang-tidy 17 (#139678)

Fixes #ISSUE_NUMBER

Pull Request resolved: https://github.com/pytorch/pytorch/pull/139678
Approved by: https://github.com/Skylion007
This commit is contained in:
cyy
2024-11-05 16:00:25 +00:00
committed by PyTorch MergeBot
parent e0156f9faa
commit a2bc2e38f9
8 changed files with 9 additions and 5 deletions

View File

@@ -230,6 +230,7 @@ TEST(MetaprogrammingTest, TupleMap_mapsToDifferentTypes) {
TEST(MetaprogrammingTest, TupleMap_differentiatesLRValueReferences) {
struct Mapper {
// NOLINTNEXTLINE(*move*)
std::string operator()(std::string&& a) const {
return "moved";
}

View File

@@ -23,6 +23,7 @@ TEST(LoggingTest, TestEnforceFalse) {
CAFFE_ENFORCE(false, "This throws.");
// This should never be triggered.
ADD_FAILURE();
// NOLINTNEXTLINE(*catch*)
} catch (const ::c10::Error&) {
}
std::swap(FLAGS_caffe2_use_fatal_for_enforce, kFalse);