Menu

#582 Preserve function argument whitespace

closed-fixed
None
2025-02-27
2025-01-20
Zenju
No

Hi,

the latest Astyle 3.6.6 removes horizontal whitespace between function arguments - manually crafted in my case:

    std::erase_if(deleteLeft,  [](const FileSystemObject* fsObj) { return fsObj->isEmpty<SelectSide::left >(); });
    std::erase_if(deleteRight, [](const FileSystemObject* fsObj) { return fsObj->isEmpty<SelectSide::right>(); });

becomes:

    std::erase_if(deleteLeft, [](const FileSystemObject* fsObj) { return fsObj->isEmpty<SelectSide::left >(); });
    std::erase_if(deleteRight, [](const FileSystemObject* fsObj) { return fsObj->isEmpty<SelectSide::right>(); });

This is a regression compared to Astyle 3.1. Am I out of luck with the latest Astyle, or is there some option I'm missing?

--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

Best, Zenju

Discussion

  • André Simon

    André Simon - 2025-02-27
    • status: open --> closed-fixed
    • assigned_to: André Simon
     
  • André Simon

    André Simon - 2025-02-27

    Bugfix version 3.6.7 was released, it has a new option --preserve-ws.

     

Log in to post a comment.

MongoDB Logo MongoDB