forked from qt-creator/qt-creator
Meson: Squash remaining namespaces
Change-Id: I44b8ba867f01dfd917a0d1c53c9487865b781d2a Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -3,8 +3,7 @@
|
|||||||
|
|
||||||
#include "arrayoptionlineedit.h"
|
#include "arrayoptionlineedit.h"
|
||||||
|
|
||||||
namespace MesonProjectManager {
|
namespace MesonProjectManager::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
ArrayOptionLineEdit::ArrayOptionLineEdit(QWidget *parent)
|
ArrayOptionLineEdit::ArrayOptionLineEdit(QWidget *parent)
|
||||||
: QPlainTextEdit(parent)
|
: QPlainTextEdit(parent)
|
||||||
@@ -65,5 +64,4 @@ void RegexHighlighter::highlightBlock(const QString &text)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace MesonProjectManager::Internal
|
||||||
} // namespace MesonProjectManager
|
|
||||||
|
|||||||
@@ -8,8 +8,7 @@
|
|||||||
#include <QRegularExpression>
|
#include <QRegularExpression>
|
||||||
#include <QSyntaxHighlighter>
|
#include <QSyntaxHighlighter>
|
||||||
|
|
||||||
namespace MesonProjectManager {
|
namespace MesonProjectManager::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class RegexHighlighter : public QSyntaxHighlighter
|
class RegexHighlighter : public QSyntaxHighlighter
|
||||||
{
|
{
|
||||||
@@ -35,5 +34,4 @@ protected:
|
|||||||
void keyPressEvent(QKeyEvent *e) override;
|
void keyPressEvent(QKeyEvent *e) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace MesonProjectManager::Internal
|
||||||
} // namespace MesonProjectManager
|
|
||||||
|
|||||||
@@ -14,8 +14,7 @@
|
|||||||
|
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
|
||||||
namespace MesonProjectManager {
|
namespace MesonProjectManager::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
struct ComboData
|
struct ComboData
|
||||||
{
|
{
|
||||||
@@ -45,13 +44,12 @@ struct FeatureData : ComboData
|
|||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace MesonProjectManager::Internal
|
||||||
} // namespace MesonProjectManager
|
|
||||||
Q_DECLARE_METATYPE(MesonProjectManager::Internal::FeatureData);
|
Q_DECLARE_METATYPE(MesonProjectManager::Internal::FeatureData);
|
||||||
Q_DECLARE_METATYPE(MesonProjectManager::Internal::ComboData);
|
Q_DECLARE_METATYPE(MesonProjectManager::Internal::ComboData);
|
||||||
|
|
||||||
namespace MesonProjectManager {
|
namespace MesonProjectManager::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
struct BuildOption
|
struct BuildOption
|
||||||
{
|
{
|
||||||
@@ -243,5 +241,4 @@ struct UnknownBuildOption : BuildOption
|
|||||||
|
|
||||||
using BuildOptionsList = std::vector<std::unique_ptr<BuildOption>>;
|
using BuildOptionsList = std::vector<std::unique_ptr<BuildOption>>;
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace MesonProjectManager::Internal
|
||||||
} // namespace MesonProjectManager
|
|
||||||
|
|||||||
@@ -13,8 +13,7 @@
|
|||||||
#include <QStyledItemDelegate>
|
#include <QStyledItemDelegate>
|
||||||
#include <QTextEdit>
|
#include <QTextEdit>
|
||||||
|
|
||||||
namespace MesonProjectManager {
|
namespace MesonProjectManager::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
// this could be relaxed once we have something able to link reliably meson build type
|
// this could be relaxed once we have something able to link reliably meson build type
|
||||||
// to QTC build type and update it, this must not break any features like tests/debug/profiling...
|
// to QTC build type and update it, this must not break any features like tests/debug/profiling...
|
||||||
@@ -192,5 +191,4 @@ void BuildOptionDelegate::setModelData(QWidget *editor,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace MesonProjectManager::Internal
|
||||||
} // namespace MesonProjectManager
|
|
||||||
|
|||||||
@@ -13,8 +13,7 @@
|
|||||||
#include <QItemEditorFactory>
|
#include <QItemEditorFactory>
|
||||||
#include <QStyledItemDelegate>
|
#include <QStyledItemDelegate>
|
||||||
|
|
||||||
namespace MesonProjectManager {
|
namespace MesonProjectManager::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class CancellableOption
|
class CancellableOption
|
||||||
{
|
{
|
||||||
@@ -164,5 +163,4 @@ public:
|
|||||||
const QModelIndex &index) const override;
|
const QModelIndex &index) const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace MesonProjectManager::Internal
|
||||||
} // namespace MesonProjectManager
|
|
||||||
|
|||||||
@@ -17,8 +17,7 @@
|
|||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
namespace MesonProjectManager {
|
namespace MesonProjectManager::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class BuildOptionsParser
|
class BuildOptionsParser
|
||||||
{
|
{
|
||||||
@@ -95,5 +94,4 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace MesonProjectManager::Internal
|
||||||
} // namespace MesonProjectManager
|
|
||||||
|
|||||||
@@ -11,8 +11,7 @@
|
|||||||
|
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
|
||||||
namespace MesonProjectManager {
|
namespace MesonProjectManager::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
inline T load(QJsonDocument &&doc);
|
inline T load(QJsonDocument &&doc);
|
||||||
@@ -89,5 +88,4 @@ inline std::optional<T> get(const QJsonObject &obj, const QString &firstPath, co
|
|||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace MesonProjectManager::Internal
|
||||||
} // namespace MesonProjectManager
|
|
||||||
|
|||||||
@@ -7,8 +7,7 @@
|
|||||||
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
namespace MesonProjectManager {
|
namespace MesonProjectManager::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
struct KitData
|
struct KitData
|
||||||
{
|
{
|
||||||
@@ -20,5 +19,4 @@ struct KitData
|
|||||||
Utils::QtMajorVersion qtVersion;
|
Utils::QtMajorVersion qtVersion;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace MesonProjectManager::Internal
|
||||||
} // namespace MesonProjectManager
|
|
||||||
|
|||||||
@@ -6,8 +6,7 @@
|
|||||||
#include <projectexplorer/task.h>
|
#include <projectexplorer/task.h>
|
||||||
#include <projectexplorer/taskhub.h>
|
#include <projectexplorer/taskhub.h>
|
||||||
|
|
||||||
namespace MesonProjectManager {
|
namespace MesonProjectManager::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
struct WarningRegex
|
struct WarningRegex
|
||||||
{
|
{
|
||||||
@@ -136,5 +135,4 @@ void MesonOutputParser::setSourceDirectory(const Utils::FilePath &sourceDir)
|
|||||||
emit newSearchDirFound(sourceDir);
|
emit newSearchDirFound(sourceDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace MesonProjectManager::Internal
|
||||||
} // namespace MesonProjectManager
|
|
||||||
|
|||||||
@@ -11,8 +11,7 @@
|
|||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|
||||||
namespace MesonProjectManager {
|
namespace MesonProjectManager::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class MesonOutputParser final : public ProjectExplorer::OutputTaskParser
|
class MesonOutputParser final : public ProjectExplorer::OutputTaskParser
|
||||||
{
|
{
|
||||||
@@ -39,5 +38,4 @@ public:
|
|||||||
void setSourceDirectory(const Utils::FilePath &sourceDir);
|
void setSourceDirectory(const Utils::FilePath &sourceDir);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace MesonProjectManager::Internal
|
||||||
} // namespace MesonProjectManager
|
|
||||||
|
|||||||
@@ -15,8 +15,7 @@
|
|||||||
|
|
||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
|
|
||||||
namespace MesonProjectManager {
|
namespace MesonProjectManager::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
MesonProject::MesonProject(const Utils::FilePath &path)
|
MesonProject::MesonProject(const Utils::FilePath &path)
|
||||||
: Project{Constants::Project::MIMETYPE, path}
|
: Project{Constants::Project::MIMETYPE, path}
|
||||||
@@ -57,5 +56,4 @@ DeploymentKnowledge MesonProject::deploymentKnowledge() const
|
|||||||
return DeploymentKnowledge::Bad;
|
return DeploymentKnowledge::Bad;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace MesonProjectManager::Internal
|
||||||
} // namespace MesonProjectManager
|
|
||||||
|
|||||||
@@ -9,8 +9,7 @@
|
|||||||
#include <projectexplorer/projectimporter.h>
|
#include <projectexplorer/projectimporter.h>
|
||||||
#include <projectexplorer/task.h>
|
#include <projectexplorer/task.h>
|
||||||
|
|
||||||
namespace MesonProjectManager {
|
namespace MesonProjectManager::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class MesonProject final : public ProjectExplorer::Project
|
class MesonProject final : public ProjectExplorer::Project
|
||||||
{
|
{
|
||||||
@@ -28,5 +27,4 @@ private:
|
|||||||
mutable std::unique_ptr<MesonProjectImporter> m_projectImporter;
|
mutable std::unique_ptr<MesonProjectImporter> m_projectImporter;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace MesonProjectManager::Internal
|
||||||
} // namespace MesonProjectManager
|
|
||||||
|
|||||||
@@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
#include <QLoggingCategory>
|
#include <QLoggingCategory>
|
||||||
|
|
||||||
namespace MesonProjectManager {
|
namespace MesonProjectManager::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
static Q_LOGGING_CATEGORY(mInputLog, "qtc.meson.import", QtWarningMsg);
|
static Q_LOGGING_CATEGORY(mInputLog, "qtc.meson.import", QtWarningMsg);
|
||||||
|
|
||||||
@@ -57,5 +56,4 @@ void MesonProjectImporter::deleteDirectoryData(void *directoryData) const
|
|||||||
Q_UNUSED(directoryData)
|
Q_UNUSED(directoryData)
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace MesonProjectManager::Internal
|
||||||
} // namespace MesonProjectManager
|
|
||||||
|
|||||||
@@ -29,8 +29,7 @@ using namespace Core;
|
|||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
|
|
||||||
namespace MesonProjectManager {
|
namespace MesonProjectManager::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
static Q_LOGGING_CATEGORY(mesonProcessLog, "qtc.meson.buildsystem", QtWarningMsg);
|
static Q_LOGGING_CATEGORY(mesonProcessLog, "qtc.meson.buildsystem", QtWarningMsg);
|
||||||
|
|
||||||
@@ -418,5 +417,4 @@ void MesonProjectParser::processStandardError()
|
|||||||
MessageManager::writeSilently(QString::fromLocal8Bit(m_process->readAllRawStandardError()));
|
MessageManager::writeSilently(QString::fromLocal8Bit(m_process->readAllRawStandardError()));
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace MesonProjectManager::Internal
|
||||||
} // namespace MesonProjectManager
|
|
||||||
|
|||||||
@@ -20,8 +20,7 @@
|
|||||||
|
|
||||||
#include <utils/qtcprocess.h>
|
#include <utils/qtcprocess.h>
|
||||||
|
|
||||||
namespace MesonProjectManager {
|
namespace MesonProjectManager::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class MesonProjectParser : public QObject
|
class MesonProjectParser : public QObject
|
||||||
{
|
{
|
||||||
@@ -118,5 +117,4 @@ private:
|
|||||||
QByteArray m_stderr;
|
QByteArray m_stderr;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace MesonProjectManager::Internal
|
||||||
} // namespace MesonProjectManager
|
|
||||||
|
|||||||
@@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
#include <utils/fileutils.h>
|
#include <utils/fileutils.h>
|
||||||
|
|
||||||
namespace MesonProjectManager {
|
namespace MesonProjectManager::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
NinjaParser::NinjaParser() {}
|
NinjaParser::NinjaParser() {}
|
||||||
|
|
||||||
@@ -45,5 +44,4 @@ bool NinjaParser::hasFatalErrors() const
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace MesonProjectManager::Internal
|
||||||
} // namespace MesonProjectManager
|
|
||||||
|
|||||||
@@ -9,8 +9,7 @@
|
|||||||
|
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
|
||||||
namespace MesonProjectManager {
|
namespace MesonProjectManager::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class NinjaParser final : public ProjectExplorer::OutputTaskParser
|
class NinjaParser final : public ProjectExplorer::OutputTaskParser
|
||||||
{
|
{
|
||||||
@@ -28,5 +27,4 @@ public:
|
|||||||
Q_SIGNAL void reportProgress(int progress);
|
Q_SIGNAL void reportProgress(int progress);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace MesonProjectManager::Internal
|
||||||
} // namespace MesonProjectManager
|
|
||||||
|
|||||||
@@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
#include <set>
|
#include <set>
|
||||||
|
|
||||||
namespace MesonProjectManager {
|
namespace MesonProjectManager::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
ProjectTree::ProjectTree() {}
|
ProjectTree::ProjectTree() {}
|
||||||
|
|
||||||
@@ -76,5 +75,4 @@ std::unique_ptr<MesonProjectNode> ProjectTree::buildTree(const Utils::FilePath &
|
|||||||
return root;
|
return root;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace MesonProjectManager::Internal
|
||||||
} // namespace MesonProjectManager
|
|
||||||
|
|||||||
@@ -8,8 +8,7 @@
|
|||||||
|
|
||||||
#include <utils/fileutils.h>
|
#include <utils/fileutils.h>
|
||||||
|
|
||||||
namespace MesonProjectManager {
|
namespace MesonProjectManager::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class ProjectTree
|
class ProjectTree
|
||||||
{
|
{
|
||||||
@@ -20,5 +19,4 @@ public:
|
|||||||
const Utils::FilePaths &bsFiles);
|
const Utils::FilePaths &bsFiles);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace MesonProjectManager::Internal
|
||||||
} // namespace MesonProjectManager
|
|
||||||
|
|||||||
@@ -11,8 +11,7 @@
|
|||||||
|
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
|
||||||
namespace MesonProjectManager {
|
namespace MesonProjectManager::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
inline QStringList cleanPath(QStringList &&paths)
|
inline QStringList cleanPath(QStringList &&paths)
|
||||||
{
|
{
|
||||||
@@ -125,5 +124,4 @@ void for_each_source_group(const TargetsList &targets, const function &f)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace MesonProjectManager::Internal
|
||||||
} // namespace MesonProjectManager
|
|
||||||
|
|||||||
Reference in New Issue
Block a user