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

@@ -2,13 +2,15 @@
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
#include "misc/geo/coordinategeodetic.h"
#include <cmath>
#include <QStringBuilder>
#include <QtGlobal>
#include "misc/logmessage.h"
#include "misc/verify.h"
#include <QtGlobal>
#include <QStringBuilder>
#include <cmath>
using namespace swift::misc::aviation;
using namespace swift::misc::physical_quantities;
using namespace swift::misc::math;
@@ -511,4 +513,4 @@ namespace swift::misc::geo
const int i = index.frontCasted<int>();
return (i >= static_cast<int>(IndexRelativeDistance)) && (i <= static_cast<int>(IndexRelativeBearing));
}
} // namespace
} // namespace swift::misc::geo

View File

@@ -6,22 +6,22 @@
#ifndef SWIFT_MISC_GEO_COORDINATEGEODETIC_H
#define SWIFT_MISC_GEO_COORDINATEGEODETIC_H
#include "misc/metaclass.h"
#include <array>
#include <QString>
#include <QVector3D>
#include "misc/aviation/altitude.h"
#include "misc/geo/latitude.h"
#include "misc/geo/longitude.h"
#include "misc/math/mathutils.h"
#include "misc/metaclass.h"
#include "misc/pq/angle.h"
#include "misc/pq/length.h"
#include "misc/pq/units.h"
#include "misc/aviation/altitude.h"
#include "misc/geo/latitude.h"
#include "misc/geo/longitude.h"
#include "misc/propertyindexref.h"
#include "misc/valueobject.h"
#include "misc/swiftmiscexport.h"
#include <QVector3D>
#include <QString>
#include <array>
#include "misc/valueobject.h"
SWIFT_DECLARE_VALUEOBJECT_MIXINS(swift::misc::geo, CCoordinateGeodetic)
@@ -359,7 +359,7 @@ namespace swift::misc
SWIFT_METAMEMBER(z),
SWIFT_METAMEMBER(geodeticHeight));
};
} // namespace
} // namespace geo
//! \cond
template <>
@@ -368,7 +368,7 @@ namespace swift::misc
static QString toQString(const geo::ICoordinateGeodetic &coord) { return coord.convertToQString(); }
};
//! \endcond
} // namespace
} // namespace swift::misc
Q_DECLARE_METATYPE(swift::misc::geo::CCoordinateGeodetic)

View File

@@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
#include "misc/geo/coordinategeodeticlist.h"
#include "misc/math/mathutils.h"
using namespace swift::misc::math;
@@ -41,4 +42,4 @@ namespace swift::misc::geo
return CElevationPlane(reference, elvStdDevMean.second, CElevationPlane::singlePointRadius());
}
} // namespace
} // namespace swift::misc::geo

View File

@@ -6,21 +6,18 @@
#ifndef SWIFT_MISC_GEO_COORDINATEGEODETICLIST_H
#define SWIFT_MISC_GEO_COORDINATEGEODETICLIST_H
#include "misc/geo/elevationplane.h"
#include "misc/geo/coordinategeodetic.h"
#include "misc/geo/geoobjectlist.h"
#include "misc/pq/length.h"
#include "misc/mixin/mixinmetatype.h"
#include "misc/mixin/mixinjson.h"
#include "misc/swiftmiscexport.h"
#include "misc/collection.h"
#include "misc/sequence.h"
#include <QMetaType>
#include "misc/collection.h"
#include "misc/geo/coordinategeodetic.h"
#include "misc/geo/elevationplane.h"
#include "misc/geo/geoobjectlist.h"
#include "misc/mixin/mixinjson.h"
#include "misc/mixin/mixinmetatype.h"
#include "misc/pq/length.h"
#include "misc/sequence.h"
#include "misc/swiftmiscexport.h"
SWIFT_DECLARE_SEQUENCE_MIXINS(swift::misc::geo, CCoordinateGeodetic, CCoordinateGeodeticList)
namespace swift::misc::geo
@@ -45,7 +42,7 @@ namespace swift::misc::geo
//! Average height within range and having an height
CElevationPlane averageGeodeticHeight(const CCoordinateGeodetic &reference, const physical_quantities::CLength &range, const physical_quantities::CLength &maxDeviation = physical_quantities::CLength(1.0, physical_quantities::CLengthUnit::m()), int minValues = 3, int sufficentValues = 5) const;
};
} // namespace
} // namespace swift::misc::geo
Q_DECLARE_METATYPE(swift::misc::geo::CCoordinateGeodeticList)
Q_DECLARE_METATYPE(swift::misc::CCollection<swift::misc::geo::CCoordinateGeodetic>)

View File

@@ -2,14 +2,15 @@
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
#include "misc/geo/earthangle.h"
#include "misc/pq/units.h"
#include "misc/geo/latitude.h"
#include "misc/geo/longitude.h"
#include <QRegularExpression>
#include <Qt>
#include <QtGlobal>
#include "misc/geo/latitude.h"
#include "misc/geo/longitude.h"
#include "misc/pq/units.h"
using namespace swift::misc::physical_quantities;
namespace swift::misc::geo
@@ -184,4 +185,4 @@ namespace swift::misc::geo
template class CEarthAngle<CLongitude>;
//! \endcond
} // namespace
} // namespace swift::misc::geo

View File

@@ -77,6 +77,6 @@ namespace swift::misc::geo
extern template class SWIFT_MISC_EXPORT_DECLARE_TEMPLATE CEarthAngle<CLatitude>;
extern template class SWIFT_MISC_EXPORT_DECLARE_TEMPLATE CEarthAngle<CLongitude>;
//! \endcond
} // ns
} // namespace swift::misc::geo
#endif // guard

View File

@@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
#include "misc/geo/elevationplane.h"
#include "misc/geo/coordinategeodetic.h"
#include "misc/pq/length.h"
#include "misc/propertyindexref.h"
@@ -194,4 +195,4 @@ namespace swift::misc::geo
static const CElevationPlane p;
return p;
}
} // namespace
} // namespace swift::misc::geo

View File

@@ -142,7 +142,7 @@ namespace swift::misc::geo
CElevationPlane,
SWIFT_METAMEMBER(radius));
};
} // namespace
} // namespace swift::misc::geo
Q_DECLARE_METATYPE(swift::misc::geo::CElevationPlane)

View File

@@ -6,14 +6,15 @@
#ifndef SWIFT_MISC_GEO_GEOOBJECTLIST_H
#define SWIFT_MISC_GEO_GEOOBJECTLIST_H
#include "misc/aviation/altitude.h"
#include "misc/pq/length.h"
#include "misc/swiftmiscexport.h"
#include "misc/sequence.h"
#include "misc/geo/coordinategeodetic.h"
#include <tuple>
#include <QList>
#include <tuple>
#include "misc/aviation/altitude.h"
#include "misc/geo/coordinategeodetic.h"
#include "misc/pq/length.h"
#include "misc/sequence.h"
#include "misc/swiftmiscexport.h"
namespace swift::misc::geo
{
@@ -300,6 +301,6 @@ namespace swift::misc::geo
IGeoObjectWithRelativePositionList()
{}
};
} // namespace
} // namespace swift::misc::geo
#endif // guard

View File

@@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
#include "misc/geo/kmlutils.h"
#include <QStringBuilder>
using namespace swift::misc;
@@ -69,4 +70,4 @@ namespace swift::misc::geo
CKmlUtils::wrapAsKmlCoordinates(coordinatesRaw) %
u"</LineString>";
}
} // ns
} // namespace swift::misc::geo

View File

@@ -55,6 +55,6 @@ namespace swift::misc::geo
//! As KML line
static QString asLineString(const QString &coordinatesRaw, const KMLSettings &settings);
};
} // ns
} // namespace swift::misc::geo
#endif // guard

View File

@@ -6,8 +6,8 @@
#ifndef SWIFT_MISC_GEO_LATITUDE_H
#define SWIFT_MISC_GEO_LATITUDE_H
#include "misc/swiftmiscexport.h"
#include "misc/geo/earthangle.h"
#include "misc/swiftmiscexport.h"
namespace swift::misc::geo
{
@@ -55,7 +55,7 @@ namespace swift::misc::geo
//! \remark Latitude measurements range from 0° to (+/)90°
CLatitude(double value, const swift::misc::physical_quantities::CAngleUnit &unit) : CEarthAngle(value, unit) {}
};
} // ns
} // namespace swift::misc::geo
Q_DECLARE_METATYPE(swift::misc::geo::CLatitude)

View File

@@ -6,8 +6,8 @@
#ifndef SWIFT_MISC_GEO_LONGITUDE_H
#define SWIFT_MISC_GEO_LONGITUDE_H
#include "misc/swiftmiscexport.h"
#include "misc/geo/earthangle.h"
#include "misc/swiftmiscexport.h"
namespace swift::misc::geo
{
@@ -55,7 +55,7 @@ namespace swift::misc::geo
//! Longitude measurements range from 0° to (+/)180°.
CLongitude(double value, const swift::misc::physical_quantities::CAngleUnit &unit) : CEarthAngle(value, unit) {}
};
} // ns
} // namespace swift::misc::geo
Q_DECLARE_METATYPE(swift::misc::geo::CLongitude)

View File

@@ -4,11 +4,11 @@
#include "misc/geo/registermetadatageo.h"
// Geo headers
#include "misc/geo/latitude.h"
#include "misc/geo/longitude.h"
#include "misc/geo/coordinategeodetic.h"
#include "misc/geo/coordinategeodeticlist.h"
#include "misc/geo/elevationplane.h"
#include "misc/geo/latitude.h"
#include "misc/geo/longitude.h"
namespace swift::misc::geo
{
@@ -21,4 +21,4 @@ namespace swift::misc::geo
CElevationPlane::registerMetadata();
}
} // ns
} // namespace swift::misc::geo

View File

@@ -12,6 +12,6 @@ namespace swift::misc::geo
{
//! Register metadata for geo
SWIFT_MISC_EXPORT void registerMetadata();
} // ns
} // namespace swift::misc::geo
#endif // guard