Skip to content

Ci/cpp clang format check example#6

Open
AndrewShkrob wants to merge 15 commits into
masterfrom
ci/cpp-clang-format-check-example
Open

Ci/cpp clang format check example#6
AndrewShkrob wants to merge 15 commits into
masterfrom
ci/cpp-clang-format-check-example

Conversation

@AndrewShkrob

Copy link
Copy Markdown
Owner

No description provided.

kirylkaveryn and others added 15 commits May 28, 2025 23:21
The iPad should NOT be detected using the trait collections because in the split view the hor size class may be `compact`.

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
And remove deprecated UI_USER_INTERFACE_IDIOM

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
To match swift naming conventions

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
Signed-off-by: Gonzalo Pesquero <gpesquero@yahoo.es>
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
[generator][indexer][android][ios] Charging station maximum power

Signed-off-by: Arthur Matteson <info@battery.ac>
Signed-off-by: Arthur Matteson <info@battery.ac>
Signed-off-by: Arthur Matteson <info@battery.ac>
Signed-off-by: Arthur Matteson <info@battery.ac>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

clang-format

[clang-format] reported by reviewdog 🐶

@property(nonatomic, readonly, nullable) NSString *maxPower;


[clang-format] reported by reviewdog 🐶

case MetadataID::FMD_MAX_POWER: _maxPower = [NSString stringWithFormat:NSLocalizedString(@"maximum_value", nil), ToNSString(value)]; break;


[clang-format] reported by reviewdog 🐶

EqualClassifType(range, GetClassifTypes({{"man_made", "tower", "communication"}, {"man_made", "communications_tower"}}));

Comment thread generator/osm2meta.cpp
return format(hours);
}

std::string MetadataTagProcessorImpl::MaxChargingPower(std::string_view const & previousMetadata, std::string const & k, std::string v)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
std::string MetadataTagProcessorImpl::MaxChargingPower(std::string_view const & previousMetadata, std::string const & k, std::string v)
std::string MetadataTagProcessorImpl::MaxChargingPower(std::string_view const & previousMetadata, std::string const & k,
std::string v)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks weird )

Comment thread generator/osm2meta.cpp
std::string_view constexpr kMaxPowerDC{" kW DC"};
std::string_view constexpr kMaxPowerAC{" kW AC"};
std::string_view constexpr kMaxPowerDelim{", "};
char constexpr kMaxPowerPoint='.';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
char constexpr kMaxPowerPoint='.';
char constexpr kMaxPowerPoint = '.';

Comment thread generator/osm2meta.cpp
Comment on lines +484 to +485
if (prev.size() > 1) {
if ((pos = prev.find(kMaxPowerDelim)) != std::string::npos) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
if (prev.size() > 1) {
if ((pos = prev.find(kMaxPowerDelim)) != std::string::npos) {
if (prev.size() > 1)
{
if ((pos = prev.find(kMaxPowerDelim)) != std::string::npos)
{

Comment thread generator/osm2meta.cpp
dc = prev.substr(0, pos - kMaxPowerDC.size());
ac = prev.substr(pos + kMaxPowerDelim.size(), prev.size() - (pos + kMaxPowerDelim.size() + kMaxPowerAC.size()));

if (kMaxPowerPoint != '.') {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
if (kMaxPowerPoint != '.') {
if (kMaxPowerPoint != '.')
{

Comment thread generator/osm2meta.cpp
std::replace(dc.begin(), dc.end(), kMaxPowerPoint, '.');
std::replace(ac.begin(), ac.end(), kMaxPowerPoint, '.');
}
} else if ((pos = prev.find(kMaxPowerDC)) != std::string::npos) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
} else if ((pos = prev.find(kMaxPowerDC)) != std::string::npos) {
}
else if ((pos = prev.find(kMaxPowerDC)) != std::string::npos)
{

Comment thread generator/osm2meta.cpp
Comment on lines +620 to +621
if (numeric > maximum) {
if (((mult = part.find('.')) != std::string::npos) && (mult < (part.size() - 2))) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
if (numeric > maximum) {
if (((mult = part.find('.')) != std::string::npos) && (mult < (part.size() - 2))) {
if (numeric > maximum)
{
if (((mult = part.find('.')) != std::string::npos) && (mult < (part.size() - 2)))
{

Comment thread generator/osm2meta.cpp

last = pos;
pos = v.find(split, last + 1);
} while ((last++) < (v.size() - 1));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
} while ((last++) < (v.size() - 1));
}
while ((last++) < (v.size() - 1));

Comment thread generator/osm2meta.cpp
Comment on lines +649 to +650
if (!dc.empty()) {
if (!ac.empty()) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
if (!dc.empty()) {
if (!ac.empty()) {
if (!dc.empty())
{
if (!ac.empty())
{

Comment thread generator/osm2meta.cpp
Comment on lines +655 to +656
prev = dc + static_cast<std::string>(kMaxPowerDC) + static_cast<std::string>(kMaxPowerDelim) + ac + static_cast<std::string>(kMaxPowerAC);
} else {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
prev = dc + static_cast<std::string>(kMaxPowerDC) + static_cast<std::string>(kMaxPowerDelim) + ac + static_cast<std::string>(kMaxPowerAC);
} else {
prev = dc + static_cast<std::string>(kMaxPowerDC) + static_cast<std::string>(kMaxPowerDelim) + ac +
static_cast<std::string>(kMaxPowerAC);
}
else
{

Comment thread generator/osm2meta.cpp
std::replace(dc.begin(), dc.end(), '.', kMaxPowerPoint);
prev = dc + static_cast<std::string>(kMaxPowerDC);
}
} else if (!ac.empty()) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
} else if (!ac.empty()) {
}
else if (!ac.empty())
{

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

JNIEXPORT void JNICALL
Java_app_organicmaps_Framework_nativeAddRoutePoint(JNIEnv * env, jclass, jstring title,
jstring subtitle, jobject markType,
jint intermediateIndex,
jboolean isMyPosition,
jdouble lat, jdouble lon,
jboolean reorderIntermediatePoints)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can it help to remove unused parameters when formatting functions?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

base::StringIL arr[] = {
{"aeroway", "terminal"},
{"aeroway", "gate"},
{"building", "train_station"},
{"emergency", "defibrillator"},
{"emergency", "fire_hydrant"},
{"emergency", "phone"},
{"highway", "bus_stop"},
{"highway", "elevator"},
{"highway", "ford"},
{"highway", "raceway"},
{"highway", "rest_area"},
{"highway", "services"},
{"highway", "speed_camera"},
{"man_made", "cross"},
{"man_made", "lighthouse"},
{"man_made", "water_tap"},
{"man_made", "water_well"},
{"natural", "beach"},
{"natural", "cave_entrance"},
{"natural", "geyser"},
{"natural", "hot_spring"},
{"natural", "peak"},
{"natural", "saddle"},
{"natural", "spring"},
{"natural", "volcano"},
{"waterway", "waterfall"}
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants