Support clang-tidy (#1034)

This commit is contained in:
Fangjun Kuang
2024-06-19 20:51:57 +08:00
committed by GitHub
parent 656b9fa1c8
commit a11c859971
63 changed files with 381 additions and 237 deletions

View File

@@ -281,11 +281,12 @@ CopyableOrtValue &CopyableOrtValue::operator=(const CopyableOrtValue &other) {
return *this;
}
CopyableOrtValue::CopyableOrtValue(CopyableOrtValue &&other) {
CopyableOrtValue::CopyableOrtValue(CopyableOrtValue &&other) noexcept {
*this = std::move(other);
}
CopyableOrtValue &CopyableOrtValue::operator=(CopyableOrtValue &&other) {
CopyableOrtValue &CopyableOrtValue::operator=(
CopyableOrtValue &&other) noexcept {
if (this == &other) {
return *this;
}