Format all C++ and Java code via clang-format

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-08-17 14:32:37 +07:00
parent 9f0290c0ec
commit bfffa1fff4
2169 changed files with 56441 additions and 64188 deletions

View File

@@ -11,7 +11,6 @@
#include "geometry/mercator.hpp"
namespace generator
{
using namespace feature;
@@ -24,8 +23,7 @@ std::shared_ptr<FeatureMakerBase> FeatureMakerSimple::Clone() const
void FeatureMakerSimple::ParseParams(FeatureBuilderParams & params, OsmElement & p) const
{
auto const & cl = classif();
ftype::GetNameAndType(&p, params,
[&cl] (uint32_t type) { return cl.IsTypeValid(type); },
ftype::GetNameAndType(&p, params, [&cl](uint32_t type) { return cl.IsTypeValid(type); },
[this](OsmElement const * p) { return GetOrigin(*p); });
}
@@ -59,10 +57,8 @@ std::optional<m2::PointD> FeatureMakerSimple::GetOrigin(OsmElement const & e) co
return {};
}
for (auto const & m : e.m_members)
{
if (m.m_type == OsmElement::EntityType::Node)
return ReadNode(m.m_ref);
}
for (auto const & m : e.m_members)
{
@@ -149,17 +145,12 @@ bool FeatureMakerSimple::BuildFromRelation(OsmElement & p, FeatureBuilderParams
m_queue.push(std::move(fb));
};
helper.GetOuter().ForEachArea(true /* collectID */, [&](auto && pts, auto && ids)
{
createFB(std::move(pts), ids);
});
helper.GetOuter().ForEachArea(true /* collectID */, [&](auto && pts, auto && ids) { createFB(std::move(pts), ids); });
return size != m_queue.size();
}
FeatureMaker::FeatureMaker(IDRInterfacePtr const & cache)
: FeatureMakerSimple(cache)
FeatureMaker::FeatureMaker(IDRInterfacePtr const & cache) : FeatureMakerSimple(cache)
{
m_placeClass = classif().GetTypeByPath({"place"});
}
@@ -171,8 +162,7 @@ std::shared_ptr<FeatureMakerBase> FeatureMaker::Clone() const
void FeatureMaker::ParseParams(FeatureBuilderParams & params, OsmElement & p) const
{
ftype::GetNameAndType(&p, params, &feature::IsUsefulType,
[this](OsmElement const * p) { return GetOrigin(*p); });
ftype::GetNameAndType(&p, params, &feature::IsUsefulType, [this](OsmElement const * p) { return GetOrigin(*p); });
}
bool FeatureMaker::BuildFromRelation(OsmElement & p, FeatureBuilderParams const & params)