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