Meson: partially clang-format all files

Change-Id: Ie621792417e89aa732311129f0cfa99a5147183a
Reviewed-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Alexis Jeandet
2020-10-27 22:36:27 +01:00
committed by hjk
parent e35dfd592f
commit 09eeab7737
8 changed files with 17 additions and 23 deletions

View File

@@ -46,7 +46,6 @@ class MesonTools : public QObject
public:
using Tool_t = std::shared_ptr<ToolWrapper>;
static bool isMesonWrapper(const Tool_t &tool);
static bool isNinjaWrapper(const Tool_t &tool);

View File

@@ -38,8 +38,7 @@ namespace Internal {
class BuildSystemFilesParser
{
std::vector<Utils::FilePath> m_files;
static void appendFiles(const Utils::optional<QJsonArray> &arr,
std::vector<Utils::FilePath> &dest)
static void appendFiles(const Utils::optional<QJsonArray> &arr, std::vector<Utils::FilePath> &dest)
{
if (arr)
std::transform(std::cbegin(*arr),

View File

@@ -101,9 +101,7 @@ inline Utils::optional<QJsonObject> get<QJsonObject>(const QJsonObject &obj, con
}
template<typename T, typename... Strings>
inline Utils::optional<T> get(const QJsonObject &obj,
const QString &firstPath,
const Strings &... path)
inline Utils::optional<T> get(const QJsonObject &obj, const QString &firstPath, const Strings &...path)
{
if (obj.contains(firstPath))
return get<T>(obj[firstPath].toObject(), path...);

View File

@@ -32,7 +32,6 @@
#include <QTimer>
#include <QWidget>
namespace MesonProjectManager {
namespace Internal {

View File

@@ -87,7 +87,6 @@ void ToolsModel::apply()
while (!m_itemsToRemove.isEmpty()) {
MesonTools::removeTool(m_itemsToRemove.dequeue());
}
}
void ToolsModel::addMesonTool(const MesonTools::Tool_t &tool)

View File

@@ -26,8 +26,8 @@
#pragma once
#include "toolssettingspage.h"
#include <exewrappers/mesontools.h>
#include <utils/id.h>
#include <utils/fileutils.h>
#include <utils/id.h>
#include <utils/optional.h>
#include <utils/treemodel.h>
#include <QCoreApplication>