AStyle built from git 2026-02-13 fails to converts this
void test()
{
Zstring targetExePath = appendPath(targetExePath, [&]
{
if (getOsVersion().version < OsVersion{6, 1})
throw FileError();
if (getOsVersion().version < OsVersion{10, 0} /*Windows 10*/)
throw FileError();
}());
}
into (expected):
void test()
{
Zstring targetExePath = appendPath(targetExePath, [&]
{
if (getOsVersion().version < OsVersion{6, 1})
throw FileError();
if (getOsVersion().version < OsVersion{10, 0} /*Windows 10*/)
throw FileError();
}());
}
using
--style=allman
--suffix=none
--formatted
--lineend=linux
--convert-tabs
--keep-one-line-blocks
--keep-one-line-statements
--align-pointer=type
--min-conditional-indent=1
--max-continuation-indent=80
--indent-switches
--indent-col1-comments
--indent-preproc-block
--indent-preproc-define
--indent-labels
--pad-header
--pad-comma
--pad-include
--preserve-ws
following issue might be related:
actual:
expected:
The first issue is related to this initializer list: OsVersion{6, 1}