refactor: clang-format

This commit is contained in:
Lars Toenning
2024-11-16 11:00:14 +01:00
parent a4a896d82d
commit 97eed9562a
1855 changed files with 10922 additions and 9422 deletions

View File

@@ -17,6 +17,6 @@ namespace swift::misc::math
//! PI * 2
constexpr double c_pi2 = c_pi * 2;
} // ns
} // namespace swift::misc::math
#endif // guard

View File

@@ -1,16 +1,18 @@
// SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
#include "misc/math/constants.h"
#include "misc/math/mathutils.h"
#include "misc/verify.h"
#include <QTime>
#include <QtGlobal>
#include <cmath>
#include <cstdlib>
#include <limits>
#include <QTime>
#include <QtGlobal>
#include "misc/math/constants.h"
#include "misc/verify.h"
namespace swift::misc::math
{
double CMathUtils::round(double value, int digits)
@@ -170,4 +172,4 @@ namespace swift::misc::math
const double sd = sqrt(varianceValue);
return QPair<double, double>(sd, meanValue);
}
} // namespace
} // namespace swift::misc::math

View File

@@ -6,14 +6,16 @@
#ifndef SWIFT_MISC_MATH_MATHUTILS_H
#define SWIFT_MISC_MATH_MATHUTILS_H
#include "misc/swiftmiscexport.h"
#include <QRandomGenerator>
#include <QtCore/qmath.h>
#include <QPair>
#include <cmath>
#include <numeric>
#include <QPair>
#include <QRandomGenerator>
#include "misc/swiftmiscexport.h"
namespace swift::misc::math
{
//! Math utils
@@ -109,6 +111,6 @@ namespace swift::misc::math
//! The squared differences to mean
static QList<double> squaredDifferences(const QList<double> &values, double meanValue);
};
} // namespace
} // namespace swift::misc::math
#endif // guard