uncrustify/mystyle.cfg Can I add functions to Uncrustify
Hi group,
I need a way to add function to Uncrustify. Specifically, I wish to make him change "if (" to "if( " as well as while, for, etc. I would also like to make the closing brace on the last line of a group, not on a newline. The config file for Uncrustify is daunting. I know this is not an accepted style but it is what I need to be able to read my code. I AM DYSLEXIC! Trolls need not reply! Thanks for your time and your replies. |
You might try this config file instead of the default: https://github.com/uncrustify/uncrus...cs/ben.cfg.txt
For example, to remove the space in "if (" change "force" on line 61 to "remove": Code:
sp_before_sparen = remove # "if (" vs "if(" |
Quote:
Code:
uncrustify --version |
So I found a config file that gives me the Lisp style I want except for one little thing, I want this:
Code:
if( ( Term = initscr() ) == NULL) { Code:
if( ( Term = initscr() ) == NULL) { |
All times are GMT -5. The time now is 02:18 AM. |