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:
848 files changed
+89305
-100020
No files matched your search
Executable → Regular
+40
-47
@@ -1,73 +1,66 @@
|
||||
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <ostream>
|
||||
#include <string>
|
||||
|
||||
namespace IDL
|
||||
{
|
||||
enum class PartitionType
|
||||
{
|
||||
Any,
|
||||
Global,
|
||||
Exercise,
|
||||
AllExercises,
|
||||
Replay,
|
||||
enum class PartitionType {
|
||||
Any,
|
||||
Global,
|
||||
Exercise,
|
||||
AllExercises,
|
||||
Replay,
|
||||
};
|
||||
|
||||
inline std::string toStdString(PartitionType pt)
|
||||
{
|
||||
switch (pt)
|
||||
{
|
||||
case PartitionType::Any:
|
||||
return "Any";
|
||||
case PartitionType::Global:
|
||||
return "Global";
|
||||
case PartitionType::Exercise:
|
||||
return "Exercise";
|
||||
case PartitionType::AllExercises:
|
||||
return "AllExercises";
|
||||
case PartitionType::Replay:
|
||||
return "Replay";
|
||||
}
|
||||
return std::string("invalid:") + std::to_string(static_cast<int>(pt));
|
||||
switch (pt)
|
||||
{
|
||||
case PartitionType::Any:
|
||||
return "Any";
|
||||
case PartitionType::Global:
|
||||
return "Global";
|
||||
case PartitionType::Exercise:
|
||||
return "Exercise";
|
||||
case PartitionType::AllExercises:
|
||||
return "AllExercises";
|
||||
case PartitionType::Replay:
|
||||
return "Replay";
|
||||
}
|
||||
return std::string("invalid:") + std::to_string(static_cast<int>(pt));
|
||||
}
|
||||
|
||||
inline std::ostream& operator <<(std::ostream &o, PartitionType pt)
|
||||
inline std::ostream& operator<<(std::ostream& o, PartitionType pt)
|
||||
{
|
||||
|
||||
switch (pt)
|
||||
{
|
||||
case PartitionType::Any:
|
||||
case PartitionType::Global:
|
||||
case PartitionType::Exercise:
|
||||
case PartitionType::AllExercises:
|
||||
case PartitionType::Replay:
|
||||
return o << std::string("PartitionType::") + toStdString(pt);
|
||||
default:
|
||||
return o << std::to_string(static_cast<int>(pt));
|
||||
}
|
||||
switch (pt)
|
||||
{
|
||||
case PartitionType::Any:
|
||||
case PartitionType::Global:
|
||||
case PartitionType::Exercise:
|
||||
case PartitionType::AllExercises:
|
||||
case PartitionType::Replay:
|
||||
return o << std::string("PartitionType::") + toStdString(pt);
|
||||
default:
|
||||
return o << std::to_string(static_cast<int>(pt));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
inline std::string exercisePartition(int exerciseId)
|
||||
{
|
||||
if (exerciseId < 0)
|
||||
return { "ex_*" };
|
||||
return std::string("ex_") + std::to_string(exerciseId);
|
||||
if (exerciseId < 0)
|
||||
return {"ex_*"};
|
||||
return std::string("ex_") + std::to_string(exerciseId);
|
||||
}
|
||||
|
||||
|
||||
|
||||
inline std::string replayPartition(int partitionId)
|
||||
{
|
||||
if (partitionId < 0)
|
||||
return { "srp_*" };
|
||||
return std::string("srp_") + std::to_string(partitionId);
|
||||
if (partitionId < 0)
|
||||
return {"srp_*"};
|
||||
return std::string("srp_") + std::to_string(partitionId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
} // namespace IDL
|
||||
Reference in new issue
Block a user