Tidying lambdas
This commit is contained in:
@@ -102,19 +102,19 @@ namespace Bloom
|
|||||||
static auto mapping = std::map<std::string, std::function<std::unique_ptr<DebugTool>()>> {
|
static auto mapping = std::map<std::string, std::function<std::unique_ptr<DebugTool>()>> {
|
||||||
{
|
{
|
||||||
"atmel-ice",
|
"atmel-ice",
|
||||||
[]() {
|
[] {
|
||||||
return std::make_unique<DebugToolDrivers::AtmelIce>();
|
return std::make_unique<DebugToolDrivers::AtmelIce>();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"power-debugger",
|
"power-debugger",
|
||||||
[]() {
|
[] {
|
||||||
return std::make_unique<DebugToolDrivers::PowerDebugger>();
|
return std::make_unique<DebugToolDrivers::PowerDebugger>();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"snap",
|
"snap",
|
||||||
[]() {
|
[] {
|
||||||
return std::make_unique<DebugToolDrivers::MplabSnap>();
|
return std::make_unique<DebugToolDrivers::MplabSnap>();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -136,7 +136,7 @@ namespace Bloom
|
|||||||
mapping = {
|
mapping = {
|
||||||
{
|
{
|
||||||
"avr8",
|
"avr8",
|
||||||
[]() {
|
[] {
|
||||||
return std::make_unique<Targets::Microchip::Avr::Avr8Bit::Avr8>();
|
return std::make_unique<Targets::Microchip::Avr::Avr8Bit::Avr8>();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -158,7 +158,7 @@ namespace Bloom
|
|||||||
if (!mapping.contains(targetName)) {
|
if (!mapping.contains(targetName)) {
|
||||||
mapping.insert({
|
mapping.insert({
|
||||||
targetName,
|
targetName,
|
||||||
[targetName, targetSignatureHex]() {
|
[targetName, targetSignatureHex] {
|
||||||
return std::make_unique<Targets::Microchip::Avr::Avr8Bit::Avr8>(
|
return std::make_unique<Targets::Microchip::Avr::Avr8Bit::Avr8>(
|
||||||
targetName,
|
targetName,
|
||||||
Targets::Microchip::Avr::TargetSignature(targetSignatureHex)
|
Targets::Microchip::Avr::TargetSignature(targetSignatureHex)
|
||||||
|
|||||||
Reference in New Issue
Block a user