This commit is contained in:
Nav
2022-04-15 22:06:38 +01:00
parent ec060a469b
commit 3b0b39fe83
4 changed files with 18 additions and 3 deletions

View File

@@ -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

View File

@@ -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();

View File

@@ -37,7 +37,7 @@ namespace Bloom::TargetController
explicit TargetControllerComponent(
const ProjectConfig& projectConfig,
const EnvironmentConfig& environmentConfig
): projectConfig(projectConfig), environmentConfig(environmentConfig) {};
);
/**
* Entry point for the TargetController.

View File

@@ -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)
{}
};
}