Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ SortUsingDeclarations: LexicographicNumeric
InsertNewlineAtEOF: true
LambdaBodyIndentation: OuterScope
MaxEmptyLinesToKeep: 1
EnumTrailingComma: Insert
KeepEmptyLines:
AtStartOfFile: false
AtStartOfBlock: false
Expand Down
6 changes: 5 additions & 1 deletion modules/performance/include/performance.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ struct PerfAttr {
struct PerfResults {
/// @brief Measured execution time in seconds.
double time_sec = 0.0;
enum class TypeOfRunning : uint8_t { kPipeline, kTaskRun, kNone };
enum class TypeOfRunning : uint8_t {
kPipeline,
kTaskRun,
kNone,
};
TypeOfRunning type_of_running = TypeOfRunning::kNone;
constexpr static double kMaxTime = 10.0;
};
Expand Down
11 changes: 7 additions & 4 deletions modules/task/include/task.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ enum class TypeOfTask : uint8_t {
/// Intel Threading Building Blocks (TBB)
kTBB,
/// Unknown task type
kUnknown
kUnknown,
};

using TaskMapping = std::pair<TypeOfTask, std::string>;
Expand All @@ -61,7 +61,7 @@ enum class StatusOfTask : uint8_t {
/// Task is enabled and should be executed
kEnabled,
/// Task is disabled and will be skipped
kDisabled
kDisabled,
};

/// @brief Returns a string representation of the task status.
Expand Down Expand Up @@ -96,7 +96,10 @@ inline std::string GetStringTaskType(TypeOfTask type_of_task, const std::string
return type_str + "_" + std::string((*list_settings)["tasks"][type_str]);
}

enum class StateOfTesting : uint8_t { kFunc, kPerf };
enum class StateOfTesting : uint8_t {
kFunc,
kPerf,
};

template <typename InType, typename OutType>
/// @brief Base abstract class representing a generic task with a defined pipeline.
Expand Down Expand Up @@ -267,7 +270,7 @@ class Task {
kPreProcessing,
kRun,
kDone,
kException
kException,
} stage_ = PipelineStage::kNone;
};

Expand Down
6 changes: 5 additions & 1 deletion modules/util/include/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ class DestructorFailureFlag {
inline static std::atomic<bool> failure_flag{false};
};

enum class GTestParamIndex : uint8_t { kTaskGetter, kNameTest, kTestParams };
enum class GTestParamIndex : uint8_t {
kTaskGetter,
kNameTest,
kTestParams,
};

std::string GetAbsoluteTaskPath(const std::string &id_path, const std::string &relative_path);
int GetNumThreads();
Expand Down
Loading