Debian Codegraph @

Osi/src/OsiXpr/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=`basenamescip-shell system . . basename. $file`
8 echoscip-shell system . . echo. formatting "$sourceName"
9 clang-format -i -style=file $file
10
11 # adding vim modeline if not included yet
12 if ! grepscip-shell system . . grep. -q "/* vi: softtabstop=" $file; then
13 echoscip-shell system . . echo. '' >> $file
14 echoscip-shell system . . echo. '/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2scip-shell filesystem . . `/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2`.' >> $file
15 echoscip-shell system . . echo. '*/' >> $file
16 fi
17 done