• Eugene Kosov's avatar
    MDEV-13631 Make use of clang-format · 039b8782
    Eugene Kosov authored
    Explicitly mention every options in .clang-format to protect us from possible
    future changes.
    
    Remove separate InnoDB style.
    
    Change style to look more like this script:
    for x in $@
    do
     indent -kr -bl -bli0 -l79 -i2 -nut -c48 -dj -cp0 $x
     sed -ri -e 's/ = /= /g'\
             -e '/switch.*\)$/{N;s/\n[ ]+/ /}' $x
    done
    
    Significant different is that 'switch' and '{' are put on different lines
    because it's impossible in clang-format to set formatting rules just for
    'switch' statement.
    039b8782
.clang-format 3.3 KB