As suggested by clang-tidy.
{
}
-Args::Args(Args&& other) : m_args(std::move(other.m_args)), argv(m_args)
+Args::Args(Args&& other) noexcept
+ : m_args(std::move(other.m_args)), argv(m_args)
{
}
}
Args&
-Args::operator=(Args&& other)
+Args::operator=(Args&& other) noexcept
{
m_args = std::move(other.m_args);
argv.m_args = &m_args;
public:
Args();
Args(const Args& other);
- Args(Args&& other);
+ Args(Args&& other) noexcept;
static Args from_argv(int argc, const char* const* argv);
static Args from_string(const std::string& command);
static nonstd::optional<Args> from_gcc_atfile(const std::string& filename);
Args& operator=(const Args& other);
- Args& operator=(Args&& other);
+ Args& operator=(Args&& other) noexcept;
bool operator==(const Args& other) const;
bool operator!=(const Args& other) const;