Created attachment 24154
example of used .clang-format configuration
We use Whitesmiths code formatting. Everything works fine except lambdas
namespace NS
{
class C
{
void foo()
{
for (...)
{
}
if (...)
{
}
auto bad_lambda = []
{
// several instructions to not collapse lambda into a single line
};
auto good_lambda = []
{
// several instructions to not collapse lambda into a single line
};
}
}
}
Actual result: Every parentheses is intended with 2 columns. Lambda parentheses
- no, they behave as bad_lambda example.
Expected result: as good_lambda in example.
.clang-format in attachment.
.clang-format
(7322 bytes, text/plain)