You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is a snippet of isolated and formatted C++ code, but in my configuration, it causes the section between "clang-format off" and "clang-format on" to be formatted. It seems that the SeparateDefinitionBlocks option doesn't prevent formatting and still triggers it before the // clang-format on section.
// clang-format offvoidfunction()
{
}
// clang-format on
The formatting result adds an extra line between the function and the // clang-format on comment:
// clang-format offvoidfunction()
{
}
// clang-format on