AStyle built from git 2025-03-21 code produces: (full repro when inside .cpp file)
FilterConfig getConfig()
{
return
{
enumTimeDescr_.get(),
123
};
}
the expected "class" indentation should be:
FilterConfig getConfig()
{
return
{
enumTimeDescr_.get(),
123
};
}
using
--style=allman
--suffix=none
--keep-one-line-blocks
--align-pointer=type
--min-conditional-indent=0
--max-continuation-indent=80
--indent-switches
--indent-col1-comments
--indent-preproc-block
--indent-preproc-define
--pad-header
--pad-comma
--formatted
--lineend=linux
--indent-preproc-block
--convert-tabs
--preserve-ws
BTW thanks for your super-fast fixes recently! I'll be using Astyle 2025-03-21 in production now :)
There is also the opposite case:
AStyle produces:
while the expected result is: