clang-format: ShortFunctionsOnASingleLine

Hello,

I have this piece of code:

class C
{
  C() {}
};

void f() {}

AllowShortFunctionsOnASingleLine is set to empty, so I expect these function to be left as is.

florian@asaru ~/scratch (git)-[master] % clang-format -style=file -dump-config | grep ShortFunction
AllowShortFunctionsOnASingleLine: Empty

However:

florian@asaru ~/scratch (git)-[master] % clang-format -style=file clangformat.cpp
class C
{
  C()
  {
  }
};

void f()
{
}

Is there something I misunderstand about this option?

Thanks,
Florian

Seems like that option doesn’t properly work together with the brace style you have selected. Feel free to file a bug.

Ok, complete config is:

Seems like that option doesn't properly work together with the brace style
you have selected. Feel free to file a bug.

Done: https://llvm.org/bugs/show_bug.cgi?id=25192