<<< Date Index >>>     <<< Thread Index >>>

Re: Coding Style: Looking for the indent commandline options to format according to mutt codingstyle



Hello,

> --braces-after-if-line --brace-indent0  --case-indentation2 --indent-level2

this was a good start, but this matches it better:

indent -nce -bls --braces-after-if-line --brace-indent0  --case-indentation2 
--indent-level2 hcache.c

I had to cleanup 

        if(! hc)              \
        {                 ---- \     if(! hc) 
          return -1;      ---- /       return -1;
        }                     /

, etc and break some lines which are longer than 80 chars into two manually.

Thanks for the help,
                Thomas