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

@@ -7,7 +7,6 @@
#include "indexer/ftypes_matcher.hpp"
#include "indexer/search_string_utils.hpp"
namespace search
{
using namespace std;
@@ -37,9 +36,7 @@ CBV CategoriesCache::Load(MwmContext const & context) const
m_categories.ForEach([&request, &c](uint32_t const type)
{
c.ForEachInSubtree([&](uint32_t descendantType)
{
request.m_categories.emplace_back(FeatureTypeToString(c.GetIndexForType(descendantType)));
}, type);
{ request.m_categories.emplace_back(FeatureTypeToString(c.GetIndexForType(descendantType))); }, type);
});
Retrieval retrieval(context, m_cancellable);
@@ -49,47 +46,39 @@ CBV CategoriesCache::Load(MwmContext const & context) const
// StreetsCache ------------------------------------------------------------------------------------
StreetsCache::StreetsCache(base::Cancellable const & cancellable)
: CategoriesCache(ftypes::IsStreetOrSquareChecker::Instance(), cancellable)
{
}
{}
// SuburbsCache ------------------------------------------------------------------------------------
SuburbsCache::SuburbsCache(base::Cancellable const & cancellable)
: CategoriesCache(ftypes::IsSuburbChecker::Instance(), cancellable)
{
}
{}
// VillagesCache -----------------------------------------------------------------------------------
VillagesCache::VillagesCache(base::Cancellable const & cancellable)
: CategoriesCache(ftypes::IsVillageChecker::Instance(), cancellable)
{
}
{}
// CountriesCache ----------------------------------------------------------------------------------
CountriesCache::CountriesCache(base::Cancellable const & cancellable)
: CategoriesCache(ftypes::IsCountryChecker::Instance(), cancellable)
{
}
{}
// StatesCache -------------------------------------------------------------------------------------
StatesCache::StatesCache(base::Cancellable const & cancellable)
: CategoriesCache(ftypes::IsStateChecker::Instance(), cancellable)
{
}
{}
// CitiesTownsOrVillagesCache ----------------------------------------------------------------------
CitiesTownsOrVillagesCache::CitiesTownsOrVillagesCache(base::Cancellable const & cancellable)
: CategoriesCache(ftypes::IsCityTownOrVillageChecker::Instance(), cancellable)
{
}
{}
// HotelsCache -------------------------------------------------------------------------------------
HotelsCache::HotelsCache(base::Cancellable const & cancellable)
: CategoriesCache(ftypes::IsHotelChecker::Instance(), cancellable)
{
}
{}
// FoodCache ---------------------------------------------------------------------------------------
FoodCache::FoodCache(base::Cancellable const & cancellable)
: CategoriesCache(ftypes::IsEatChecker::Instance(), cancellable)
{
}
{}
} // namespace search