Apply clang-format to Lts/Common and DTC/enum headers

- Formatted all CodeGen module files (9 files)
- Formatted LtsAppDescriptor module files
- Formatted LtsAppManager/AppChooser files
- Applied clang-format to all DTC and enum headers across modules
- Removed coordTransTests from CommonUnitTestsPlaceholder (moved to tests/)

Cosmetic changes only, no functional modifications.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
torstenandCopilot committed 2026-08-19 14:46:29 +02:00
1 parent 1881d68aef
commit d6b6ffce7c
848 files changed
+89305 -100020

No files matched your search

@@ -6,11 +6,12 @@
#ifndef ISM_ENUMS_HPP
#define ISM_ENUMS_HPP
#include <cstdint>
#include <QString>
#include <QDebug>
#include <QString>
#include <cstdint>
namespace InfrastructureManagement {
namespace InfrastructureManagement
{
// MountingPointType als enum class mit allen Werten
enum class MountingPointType : int32_t {
@@ -31,24 +32,16 @@ enum class MountingPointType : int32_t {
};
// MountingPointState als enum class mit allen Werten
enum class MountingPointState : int32_t {
Undefined = 0,
Equipped = 1,
Empty = 2,
Idle = 3
};
enum class MountingPointState : int32_t { Undefined = 0, Equipped = 1, Empty = 2, Idle = 3 };
// AimState als enum class
enum class AimState : int32_t {
Undefined = 0,
Active = 1,
Inactive = 2
};
enum class AimState : int32_t { Undefined = 0, Active = 1, Inactive = 2 };
// DDS type wrapper für MountingPointType
struct MountingPointType_def {
struct MountingPointType_def
{
using type = MountingPointType;
// Enum values als static members für Kompatibilität
static constexpr MountingPointType Undefined = MountingPointType::Undefined;
static constexpr MountingPointType Generic = MountingPointType::Generic;
@@ -67,9 +60,10 @@ struct MountingPointType_def {
};
// DDS type wrapper für MountingPointState
struct MountingPointState_def {
struct MountingPointState_def
{
using type = MountingPointState;
static constexpr MountingPointState Undefined = MountingPointState::Undefined;
static constexpr MountingPointState Equipped = MountingPointState::Equipped;
static constexpr MountingPointState Empty = MountingPointState::Empty;
@@ -77,9 +71,10 @@ struct MountingPointState_def {
};
// DDS type wrapper für AimState
struct AimState_def {
struct AimState_def
{
using type = AimState;
static constexpr AimState Undefined = AimState::Undefined;
static constexpr AimState Active = AimState::Active;
static constexpr AimState Inactive = AimState::Inactive;
@@ -88,27 +83,31 @@ struct AimState_def {
} // namespace InfrastructureManagement
// QDebug operator<< für MountingPointType
inline QDebug operator<<(QDebug debug, InfrastructureManagement::MountingPointType type) {
inline QDebug operator<<(QDebug debug, InfrastructureManagement::MountingPointType type)
{
QDebugStateSaver saver(debug);
debug.nospace() << "MountingPointType(" << static_cast<int32_t>(type) << ")";
return debug;
}
// QDebug operator<< für MountingPointState
inline QDebug operator<<(QDebug debug, InfrastructureManagement::MountingPointState state) {
inline QDebug operator<<(QDebug debug, InfrastructureManagement::MountingPointState state)
{
QDebugStateSaver saver(debug);
debug.nospace() << "MountingPointState(" << static_cast<int32_t>(state) << ")";
return debug;
}
// qHash für MountingPointType (für QMap/QHash)
namespace dds {
namespace core {
static inline uint qHash(const InfrastructureManagement::MountingPointType &mpt)
namespace dds
{
return ::qHash(static_cast<int32_t>(mpt));
namespace core
{
static inline uint qHash(const InfrastructureManagement::MountingPointType& mpt)
{
return ::qHash(static_cast<int32_t>(mpt));
}
}
}
} // namespace core
} // namespace dds
#endif // ISM_ENUMS_HPP