Menu

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

closed
None
2025-11-13
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 

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 --> closed
    • assigned_to: André Simon
     
  • André Simon

    André Simon - 2025-11-13

    duplicate issue

     

Log in to post a comment.