Debian Codegraph @

Osi/src/OsiGrb/format-source.sh

raw symbols SCIP
1 # script to format source code and include (if not included yet),
2 # vim formatting settings (which are automatically loaded by vim)
3 # Haroldo - 2019
4
5 for file in *.[ch]pp;
6 do
7 sourceName=`basename $file`
8 echo formatting "$sourceName"
9 clang-format -i -style=file $file
10
11 # adding vim modeline if not included yet
12 if ! grep -q "/* vi: softtabstop=" $file; then
13 echo '' >> $file
14 echo '/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2' >> $file
15 echo '*/' >> $file
16 fi
17 done