// clang-format on
for(const auto& element: elements){if(element > 0){element++;}}
// clang-format off
some text
more text
// clang-format on
for(const auto& element: elements){if(element > 0){element++;}}
// clang-format off
some text
and after runnig clang-format I received
// clang-format on
for(const auto& element: elements)
{
if(element > 0)
{
element++;
}
}
// clang-format off
some text
// clang-format on <---------------
for(const auto& element: elements) <---------------
{
if(element > 0)
{
element++;
}
}
// clang-format off
some text
lines after text were shifted to the right.
I can resolve this with adding “;” before “// clang-format on”, so it will be: