McuSupport: plugin code formatting

Change-Id: I561bd66431ff3da7819bb9b2ff780197b5593708
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Piotr Mućko
2022-02-15 11:18:56 +01:00
parent 5a32e9942d
commit 27cadc86ba
15 changed files with 628 additions and 557 deletions

View File

@@ -46,16 +46,18 @@ namespace Internal {
static FilePath cmakeFilePath(const Target *target)
{
const CMakeProjectManager::CMakeTool *tool =
CMakeProjectManager::CMakeKitAspect::cmakeTool(target->kit());
const CMakeProjectManager::CMakeTool *tool = CMakeProjectManager::CMakeKitAspect::cmakeTool(
target->kit());
return tool->filePath();
}
static QStringList flashAndRunArgs(const RunConfiguration *rc, const Target *target)
{
// Use buildKey if provided, fallback to projectName
const QString targetName = QLatin1String("flash_%1").arg(
!rc->buildKey().isEmpty() ? rc->buildKey() : target->project()->displayName());
const QString targetName = QLatin1String("flash_%1")
.arg(!rc->buildKey().isEmpty()
? rc->buildKey()
: target->project()->displayName());
return {"--build", ".", "--target", targetName};
}