Meson: Squash remaining namespaces

Change-Id: I44b8ba867f01dfd917a0d1c53c9487865b781d2a
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2024-07-25 09:31:47 +02:00
parent 24dab04a33
commit 847012000f
20 changed files with 43 additions and 84 deletions

View File

@@ -3,8 +3,7 @@
#include "arrayoptionlineedit.h"
namespace MesonProjectManager {
namespace Internal {
namespace MesonProjectManager::Internal {
ArrayOptionLineEdit::ArrayOptionLineEdit(QWidget *parent)
: QPlainTextEdit(parent)
@@ -65,5 +64,4 @@ void RegexHighlighter::highlightBlock(const QString &text)
}
}
} // namespace Internal
} // namespace MesonProjectManager
} // namespace MesonProjectManager::Internal

View File

@@ -8,8 +8,7 @@
#include <QRegularExpression>
#include <QSyntaxHighlighter>
namespace MesonProjectManager {
namespace Internal {
namespace MesonProjectManager::Internal {
class RegexHighlighter : public QSyntaxHighlighter
{
@@ -35,5 +34,4 @@ protected:
void keyPressEvent(QKeyEvent *e) override;
};
} // namespace Internal
} // namespace MesonProjectManager
} // namespace MesonProjectManager::Internal

View File

@@ -14,8 +14,7 @@
#include <optional>
namespace MesonProjectManager {
namespace Internal {
namespace MesonProjectManager::Internal {
struct ComboData
{
@@ -45,13 +44,12 @@ struct FeatureData : ComboData
{}
};
} // namespace Internal
} // namespace MesonProjectManager
} // namespace MesonProjectManager::Internal
Q_DECLARE_METATYPE(MesonProjectManager::Internal::FeatureData);
Q_DECLARE_METATYPE(MesonProjectManager::Internal::ComboData);
namespace MesonProjectManager {
namespace Internal {
namespace MesonProjectManager::Internal {
struct BuildOption
{
@@ -243,5 +241,4 @@ struct UnknownBuildOption : BuildOption
using BuildOptionsList = std::vector<std::unique_ptr<BuildOption>>;
} // namespace Internal
} // namespace MesonProjectManager
} // namespace MesonProjectManager::Internal

View File

@@ -13,8 +13,7 @@
#include <QStyledItemDelegate>
#include <QTextEdit>
namespace MesonProjectManager {
namespace Internal {
namespace MesonProjectManager::Internal {
// 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...
@@ -192,5 +191,4 @@ void BuildOptionDelegate::setModelData(QWidget *editor,
}
}
} // namespace Internal
} // namespace MesonProjectManager
} // namespace MesonProjectManager::Internal

View File

@@ -13,8 +13,7 @@
#include <QItemEditorFactory>
#include <QStyledItemDelegate>
namespace MesonProjectManager {
namespace Internal {
namespace MesonProjectManager::Internal {
class CancellableOption
{
@@ -164,5 +163,4 @@ public:
const QModelIndex &index) const override;
};
} // namespace Internal
} // namespace MesonProjectManager
} // namespace MesonProjectManager::Internal

View File

@@ -17,8 +17,7 @@
#include <memory>
namespace MesonProjectManager {
namespace Internal {
namespace MesonProjectManager::Internal {
class BuildOptionsParser
{
@@ -95,5 +94,4 @@ public:
}
};
} // namespace Internal
} // namespace MesonProjectManager
} // namespace MesonProjectManager::Internal

View File

@@ -11,8 +11,7 @@
#include <optional>
namespace MesonProjectManager {
namespace Internal {
namespace MesonProjectManager::Internal {
template<typename T>
inline T load(QJsonDocument &&doc);
@@ -89,5 +88,4 @@ inline std::optional<T> get(const QJsonObject &obj, const QString &firstPath, co
return std::nullopt;
}
} // namespace Internal
} // namespace MesonProjectManager
} // namespace MesonProjectManager::Internal

View File

@@ -7,8 +7,7 @@
#include <QString>
namespace MesonProjectManager {
namespace Internal {
namespace MesonProjectManager::Internal {
struct KitData
{
@@ -20,5 +19,4 @@ struct KitData
Utils::QtMajorVersion qtVersion;
};
} // namespace Internal
} // namespace MesonProjectManager
} // namespace MesonProjectManager::Internal

View File

@@ -6,8 +6,7 @@
#include <projectexplorer/task.h>
#include <projectexplorer/taskhub.h>
namespace MesonProjectManager {
namespace Internal {
namespace MesonProjectManager::Internal {
struct WarningRegex
{
@@ -136,5 +135,4 @@ void MesonOutputParser::setSourceDirectory(const Utils::FilePath &sourceDir)
emit newSearchDirFound(sourceDir);
}
} // namespace Internal
} // namespace MesonProjectManager
} // namespace MesonProjectManager::Internal

View File

@@ -11,8 +11,7 @@
#include <array>
namespace MesonProjectManager {
namespace Internal {
namespace MesonProjectManager::Internal {
class MesonOutputParser final : public ProjectExplorer::OutputTaskParser
{
@@ -39,5 +38,4 @@ public:
void setSourceDirectory(const Utils::FilePath &sourceDir);
};
} // namespace Internal
} // namespace MesonProjectManager
} // namespace MesonProjectManager::Internal

View File

@@ -15,8 +15,7 @@
using namespace ProjectExplorer;
namespace MesonProjectManager {
namespace Internal {
namespace MesonProjectManager::Internal {
MesonProject::MesonProject(const Utils::FilePath &path)
: Project{Constants::Project::MIMETYPE, path}
@@ -57,5 +56,4 @@ DeploymentKnowledge MesonProject::deploymentKnowledge() const
return DeploymentKnowledge::Bad;
}
} // namespace Internal
} // namespace MesonProjectManager
} // namespace MesonProjectManager::Internal

View File

@@ -9,8 +9,7 @@
#include <projectexplorer/projectimporter.h>
#include <projectexplorer/task.h>
namespace MesonProjectManager {
namespace Internal {
namespace MesonProjectManager::Internal {
class MesonProject final : public ProjectExplorer::Project
{
@@ -28,5 +27,4 @@ private:
mutable std::unique_ptr<MesonProjectImporter> m_projectImporter;
};
} // namespace Internal
} // namespace MesonProjectManager
} // namespace MesonProjectManager::Internal

View File

@@ -5,8 +5,7 @@
#include <QLoggingCategory>
namespace MesonProjectManager {
namespace Internal {
namespace MesonProjectManager::Internal {
static Q_LOGGING_CATEGORY(mInputLog, "qtc.meson.import", QtWarningMsg);
@@ -57,5 +56,4 @@ void MesonProjectImporter::deleteDirectoryData(void *directoryData) const
Q_UNUSED(directoryData)
}
} // namespace Internal
} // namespace MesonProjectManager
} // namespace MesonProjectManager::Internal

View File

@@ -29,8 +29,7 @@ using namespace Core;
using namespace ProjectExplorer;
using namespace Utils;
namespace MesonProjectManager {
namespace Internal {
namespace MesonProjectManager::Internal {
static Q_LOGGING_CATEGORY(mesonProcessLog, "qtc.meson.buildsystem", QtWarningMsg);
@@ -418,5 +417,4 @@ void MesonProjectParser::processStandardError()
MessageManager::writeSilently(QString::fromLocal8Bit(m_process->readAllRawStandardError()));
}
} // namespace Internal
} // namespace MesonProjectManager
} // namespace MesonProjectManager::Internal

View File

@@ -20,8 +20,7 @@
#include <utils/qtcprocess.h>
namespace MesonProjectManager {
namespace Internal {
namespace MesonProjectManager::Internal {
class MesonProjectParser : public QObject
{
@@ -118,5 +117,4 @@ private:
QByteArray m_stderr;
};
} // namespace Internal
} // namespace MesonProjectManager
} // namespace MesonProjectManager::Internal

View File

@@ -5,8 +5,7 @@
#include <utils/fileutils.h>
namespace MesonProjectManager {
namespace Internal {
namespace MesonProjectManager::Internal {
NinjaParser::NinjaParser() {}
@@ -45,5 +44,4 @@ bool NinjaParser::hasFatalErrors() const
return false;
}
} // namespace Internal
} // namespace MesonProjectManager
} // namespace MesonProjectManager::Internal

View File

@@ -9,8 +9,7 @@
#include <optional>
namespace MesonProjectManager {
namespace Internal {
namespace MesonProjectManager::Internal {
class NinjaParser final : public ProjectExplorer::OutputTaskParser
{
@@ -28,5 +27,4 @@ public:
Q_SIGNAL void reportProgress(int progress);
};
} // namespace Internal
} // namespace MesonProjectManager
} // namespace MesonProjectManager::Internal

View File

@@ -5,8 +5,7 @@
#include <set>
namespace MesonProjectManager {
namespace Internal {
namespace MesonProjectManager::Internal {
ProjectTree::ProjectTree() {}
@@ -76,5 +75,4 @@ std::unique_ptr<MesonProjectNode> ProjectTree::buildTree(const Utils::FilePath &
return root;
}
} // namespace Internal
} // namespace MesonProjectManager
} // namespace MesonProjectManager::Internal

View File

@@ -8,8 +8,7 @@
#include <utils/fileutils.h>
namespace MesonProjectManager {
namespace Internal {
namespace MesonProjectManager::Internal {
class ProjectTree
{
@@ -20,5 +19,4 @@ public:
const Utils::FilePaths &bsFiles);
};
} // namespace Internal
} // namespace MesonProjectManager
} // namespace MesonProjectManager::Internal

View File

@@ -11,8 +11,7 @@
#include <optional>
namespace MesonProjectManager {
namespace Internal {
namespace MesonProjectManager::Internal {
inline QStringList cleanPath(QStringList &&paths)
{
@@ -125,5 +124,4 @@ void for_each_source_group(const TargetsList &targets, const function &f)
}
}
} // namespace Internal
} // namespace MesonProjectManager
} // namespace MesonProjectManager::Internal