style: clang-tidy auto fixes (#1663)

Fixes #1662.

---------

Co-authored-by: kuznetsss <15742918+kuznetsss@users.noreply.github.com>
Co-authored-by: Peter Chen <ychen@ripple.com>
This commit is contained in:
github-actions[bot]
2024-09-23 15:24:20 +01:00
committed by GitHub
parent c8e3da6470
commit 3343c1fa6b

View File

@@ -88,7 +88,7 @@ public:
// see here for more info:
// https://stackoverflow.com/questions/72835571/constexpr-c-error-destructor-used-before-its-definition
// https://godbolt.org/z/eMdWThaMY
constexpr virtual ~Constraint() noexcept {}; // NOLINT(google-default-destructor)
constexpr virtual ~Constraint() noexcept {}; // NOLINT(modernize-use-equals-default)
/**
* @brief Check if the value meets the specific constraint.
@@ -155,9 +155,7 @@ protected:
*/
class PortConstraint final : public Constraint {
public:
constexpr ~PortConstraint() override
{
} // NOLINT(google-default-destructor)
constexpr ~PortConstraint() override {}; // NOLINT(modernize-use-equals-default)
private:
/**
@@ -187,9 +185,7 @@ private:
*/
class ValidIPConstraint final : public Constraint {
public:
constexpr ~ValidIPConstraint() override
{
} // NOLINT(google-default-destructor)
constexpr ~ValidIPConstraint() override {}; // NOLINT(modernize-use-equals-default)
private:
/**
@@ -229,9 +225,7 @@ public:
{
}
constexpr ~OneOf() override
{
} // NOLINT(google-default-destructor)
constexpr ~OneOf() override {}; // NOLINT(modernize-use-equals-default)
private:
/**
@@ -285,9 +279,7 @@ public:
{
}
constexpr ~NumberValueConstraint() override
{
} // NOLINT(google-default-destructor)
constexpr ~NumberValueConstraint() override {}; // NOLINT(modernize-use-equals-default)
private:
/**
@@ -328,9 +320,7 @@ private:
*/
class PositiveDouble final : public Constraint {
public:
constexpr ~PositiveDouble() override
{
} // NOLINT(google-default-destructor)
constexpr ~PositiveDouble() override {}; // NOLINT(modernize-use-equals-default)
private:
/**