Automatic clang-tidy fixes.

This commit is contained in:
Ralf W. Grosse-Kunstleve 2021-06-24 12:53:09 -07:00 committed by Ralf W. Grosse-Kunstleve
parent f06f0927b3
commit a428f5755d

View File

@ -16,12 +16,12 @@ struct Foo {
std::string history; std::string history;
Foo(const std::string &history_) : history(history_) {} Foo(const std::string &history_) : history(history_) {}
Foo(const Foo &other) : history(other.history + "_CpCtor") {} Foo(const Foo &other) : history(other.history + "_CpCtor") {}
Foo(Foo &&other) : history(other.history + "_MvCtor") {} Foo(Foo &&other) noexcept : history(other.history + "_MvCtor") {}
Foo &operator=(const Foo &other) { Foo &operator=(const Foo &other) {
history = other.history + "_OpEqLv"; history = other.history + "_OpEqLv";
return *this; return *this;
} }
Foo &operator=(Foo &&other) { Foo &operator=(Foo &&other) noexcept {
history = other.history + "_OpEqRv"; history = other.history + "_OpEqRv";
return *this; return *this;
} }