core: rename mbgl namespace to mln (#4487)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Bart Louwers
2026-08-14 23:25:20 +02:00
committed by GitHub
parent 836b862984
commit 550f64be22
1970 changed files with 8931 additions and 8967 deletions

View File

@@ -7,7 +7,7 @@
#include <sstream>
#include <filesystem>
using namespace mbgl;
using namespace mln;
using namespace std::literals;
namespace {

View File

@@ -20,9 +20,9 @@
#include <regex>
using namespace mbgl;
using namespace mbgl::style;
using namespace mbgl::style::conversion;
using namespace mln;
using namespace mln::style;
using namespace mln::style::conversion;
using namespace std::literals;
namespace {
@@ -407,7 +407,7 @@ std::optional<TestData> parseTestData(const std::filesystem::path& path) {
TestData data;
auto maybeJson = readJson(path.string());
if (!maybeJson.is<JSDocument>()) { // NOLINT
mbgl::Log::Error(mbgl::Event::General, "Cannot parse test '" + path.string() + "'.");
mln::Log::Error(mln::Event::General, "Cannot parse test '" + path.string() + "'.");
return std::nullopt;
}

View File

@@ -9,7 +9,7 @@
#include <vector>
#include <filesystem>
using namespace mbgl;
using namespace mln;
struct Input {
Input(std::optional<float> zoom_,

View File

@@ -105,7 +105,7 @@ TestRunOutput runExpressionTest(TestData& data, const std::string& rootPath, con
std::vector<Value> outputs;
if (!data.inputs.empty()) {
for (const auto& input : data.inputs) {
mbgl::style::expression::EvaluationResult evaluationResult;
mln::style::expression::EvaluationResult evaluationResult;
if (input.canonical) {
evaluationResult = expression->evaluate(
input.zoom, input.feature, input.heatmapDensity, input.availableImages, *input.canonical);

View File

@@ -3,7 +3,7 @@
#include <cmath>
#include <regex>
using namespace mbgl;
using namespace mln;
// Strip precision for numbers, so that we can compare evaluated results with
// fixtures. Copied from JS expression harness.

View File

@@ -5,7 +5,7 @@
#include <string>
#include <vector>
using namespace mbgl;
using namespace mln;
Value stripPrecision(const Value& value);
std::vector<std::string> tokenize(std::string str);