Hi,
I just encountered this use case with clang-format:
Consider the following function:
…
void Reset() { // Like Clear() but retain m_initialCommand. Used when an editor is reloaded
m_commands.clear();
}
…
and in my clang-format plugin, I have the option:
"Allow Short Functions on A Single Line" enabled.
So, after indenting I get this:
void Reset() { // Like Clear() but retain m_initialCommand. Used when an editor is reloaded m_commands.clear(); }
Which breaks compilation (and thanks to gcc poor error reporting it only took me 30 mins to figure what went wrong )
Thanks,