forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
|
@@ -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),
|
||||
|
@@ -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...);
|
||||
|
@@ -32,7 +32,6 @@
|
||||
#include <QTimer>
|
||||
#include <QWidget>
|
||||
|
||||
|
||||
namespace MesonProjectManager {
|
||||
namespace Internal {
|
||||
|
||||
|
@@ -87,7 +87,6 @@ void ToolsModel::apply()
|
||||
while (!m_itemsToRemove.isEmpty()) {
|
||||
MesonTools::removeTool(m_itemsToRemove.dequeue());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void ToolsModel::addMesonTool(const MesonTools::Tool_t &tool)
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user