which Uncrustify setting replaces blank lines with indenting spaces? -


i've done number of read-thrus of my uncrustify settings page on past couple days haven't found setting. perhaps second pair of eyes knows missing.

in source code, blank lines within functions getting replaced indenting spaces.

for example (the 2 blank lines there returns):

int foo() {      return 1;  } 

turns into:

int foo() { ____         return 1; ____ } 

(well, "_" see there blank spaces)

which uncrustify setting controls behavior?

i had same problem, , figured out. it's not uncrustify doing this, it's xcode.

if run uncrustify outside of xcode, not insert blank tab/spaces on blank line (and if there remove them).

discovering this, found out it's xcode preference "automatically indent based on syntax" setting when enabled (and it's enabled default), insert spaces on blank lines after uncrustify runs.

to answer question, never figured out uncrustify setting removes blank spaces, can tell you, default uncrustify config file, did remove indenting spaces on blank lines.

here's xcode setting in xcode (5.0.2) xcode screenshot


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -