[clang-format] [PR47936] AfterControlStatement: MultiLine breaks AllowShortFunctionsO...
authormydeveloperday <mydeveloperday@gmail.com>
Thu, 25 Nov 2021 08:30:31 +0000 (08:30 +0000)
committermydeveloperday <mydeveloperday@gmail.com>
Thu, 25 Nov 2021 08:30:31 +0000 (08:30 +0000)
commit72e4f4a2a117f97118692857d91210fc62c066b0
tree9067d1a356fc19e39fe2e59764109a8ef3ca7cb2
parent8804d08e9921b86eb96e993af5d753f63f3c8829
[clang-format] [PR47936] AfterControlStatement: MultiLine breaks AllowShortFunctionsOnASingleLine

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

Using the MultiLine setting for BraceWrapping.AfterControlStatement appears to disable AllowShortFunctionsOnASingleLine, even in cases without any control statements

Reviewed By: HazardyKnusperkeks, curdeius

Differential Revision: https://reviews.llvm.org/D114521
clang/lib/Format/UnwrappedLineFormatter.cpp
clang/unittests/Format/FormatTest.cpp