Tidying
This commit is contained in:
@@ -24,6 +24,7 @@ Checks: >
|
||||
-cppcoreguidelines-owning-memory,
|
||||
-cppcoreguidelines-non-private-member-variables-in-classes,
|
||||
-misc-non-private-member-variables-in-classes,
|
||||
-bugprone-easily-swappable-parameters,
|
||||
CheckOptions:
|
||||
- key: readability-function-cognitive-complexity.DescribeBasicIncrements
|
||||
value: 1
|
||||
|
||||
@@ -20,6 +20,14 @@ namespace Bloom::TargetController
|
||||
using namespace Bloom::Events;
|
||||
using namespace Bloom::Exceptions;
|
||||
|
||||
TargetControllerComponent::TargetControllerComponent(
|
||||
const ProjectConfig& projectConfig,
|
||||
const EnvironmentConfig& environmentConfig
|
||||
)
|
||||
: projectConfig(projectConfig)
|
||||
, environmentConfig(environmentConfig)
|
||||
{}
|
||||
|
||||
void TargetControllerComponent::run() {
|
||||
try {
|
||||
this->startup();
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace Bloom::TargetController
|
||||
explicit TargetControllerComponent(
|
||||
const ProjectConfig& projectConfig,
|
||||
const EnvironmentConfig& environmentConfig
|
||||
): projectConfig(projectConfig), environmentConfig(environmentConfig) {};
|
||||
);
|
||||
|
||||
/**
|
||||
* Entry point for the TargetController.
|
||||
|
||||
@@ -16,7 +16,10 @@ namespace Bloom::Targets::Microchip::Avr
|
||||
FuseType type;
|
||||
std::uint8_t value;
|
||||
|
||||
Fuse(FuseType type, std::uint8_t value): type(type), value(value) {}
|
||||
Fuse(FuseType type, std::uint8_t value)
|
||||
: type(type)
|
||||
, value(value)
|
||||
{}
|
||||
};
|
||||
|
||||
struct FuseBitsDescriptor
|
||||
@@ -31,6 +34,9 @@ namespace Bloom::Targets::Microchip::Avr
|
||||
*/
|
||||
std::uint8_t bitMask;
|
||||
|
||||
FuseBitsDescriptor(FuseType fuseType, std::uint8_t bitMask): fuseType(fuseType), bitMask(bitMask) {}
|
||||
FuseBitsDescriptor(FuseType fuseType, std::uint8_t bitMask)
|
||||
: fuseType(fuseType)
|
||||
, bitMask(bitMask)
|
||||
{}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user