Menu

#604 Lines starting with #define and end with ',' are pre-padded with space

open-fixed
None
2026-02-24
2025-11-10
No

Lines starting with '#something ' (e.g. '#define') and end with ',' are pre-padded with a space when using '--align-pointer=type'.
How to reproduce:
1) create a file.cpp with the following line:

#define MYDEFINE (1424) // blabla ends with comma,

2) run astyle 3.6.13:

astyle --align-pointer=type file.cpp

3) check the difference:

< #define MYDEFINE (1424) // blabla ends with comma,
---
>  #define MYDEFINE (1424) // blabla ends with comma,

Discussion

  • André Simon

    André Simon - 2025-11-13
    • status: open --> open-accepted
    • assigned_to: André Simon
     
  • André Simon

    André Simon - 2026-01-08

    I have pushed a fix to the git repo

     
  • André Simon

    André Simon - 2026-02-24
    • status: open-accepted --> open-fixed
     
  • André Simon

    André Simon - 2026-02-24

    Released in v 3.6.14.

     

Log in to post a comment.

MongoDB Logo MongoDB