Menu

#124 Request for --align-pointer=whitespace option

1.0
closed
None
2024-12-06
2020-06-10
No

In our coding standard we would like all pointer declartions to have at lease 1 space before and after the declaration. So

char* foo1; 

would be

char * foo1; 

Just like what 'middle' would do
However we have blocks of defines like this.

 uint32_t val1 *      pointer_to_val1
 const char *         pointer_t_char

--align-pointer=middle works for most of our cases but in the above case it will do something similar to below

uint32_t val1   *    pointer_to_val1
 const char    *     pointer_t_char

Would it be possible to add a =whitespace option that would add whitespace if it was missing but if thre was already whitespace leave it alone?

Discussion

  • Jim Pattee

    Jim Pattee - 2020-06-11

    Ticket moved from /p/astyle/bugs/539/

     
  • André Simon

    André Simon - 2024-09-08
    • status: open --> accepted
    • assigned_to: André Simon
    • Milestone: --> 1.0
     
  • André Simon

    André Simon - 2024-11-28
    • status: accepted --> closed
     
  • André Simon

    André Simon - 2024-11-28

    This will be fixed in the next release

     
  • André Simon

    André Simon - 2024-12-06

    Should be fixed in 3.6.5

     

Log in to post a comment.

MongoDB Logo MongoDB