mirror of
https://github.com/zebrajr/pytorch.git
synced 2026-01-15 12:15:51 +00:00
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:
@@ -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";
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user