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:
This should be fixed in 3.6.21.
Awesome! :) 3.6.21 works perfectly!
One (related?) issue "missing indent" before "nextdata":
Result of 3.6.21:
Expected: (This used to work I think in Astyle 3.1)
Last edit: Zenju 2026-11-04