Menu

#102 Comment belongs to code-length

1.0
accepted
2023-01-27
2017-03-02
Per
No

Hello,

I used version 2.06 with option "--max-code-length=80".

My code:

int               myInt    = 0;      // type some info type some info type some info type some info type some info type some info type some info type some info

becomes

int               myInt    =
    0;      // type some info type some info type some info type some info type some info type some info type some info type some info

From my point of view it would be nice if comments are not used to calculate the code-length in a line. Maybe this could be an option?

Discussion

  • Jim Pattee

    Jim Pattee - 2018-01-29

    Ticket moved from /p/astyle/bugs/426/

     
  • André Simon

    André Simon - 2023-01-27
    • status: open --> accepted
    • assigned_to: André Simon
    • Milestone: --> 1.0
     

Log in to post a comment.