Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#230 --max-code-length option will not count spaces in continuation line

open
nobody
None
5
2015-01-03
2013-07-21
Timon Wong
No

See attachment

1 Attachments

Discussion

  • David Gobbi
    David Gobbi
    2013-12-30

    I also find the behavior of --max-code-length to be strange, in that it does not count the indentation as part of the length. This behavior makes --max-code-length useless to me.

    It would be very nice if astyle had a --max-line-length option, that considered the total line length.

     
  • Ppv.Alx
    Ppv.Alx
    2014-04-13

    +1
    Please fix.

    astyle --style=allman --indent=spaces=4 --align-pointer=middle --convert-tabs --max-code-length=80 --lineend=linux --formatted --recursive "*.cpp"

    Before:

        if(true||true||true||true||true||true||true||true||true||true||true||true||true||true||true||true||true||true||true||true||true||true||true||true||true||true||true||true||true||true||true) {}
    

    formatted:

        if(true||true||true||true||true||true||true||true||true||true||true||true||true
                ||true||true||true||true||true||true||true||true||true||true||true||true||true
                ||true||true||true||true||true) {}
    
     
    Last edit: Ppv.Alx 2014-04-13