Select Git revision
Forked from
Dynare / dynare
9800 commits behind the upstream repository.
Sébastien Villemot authored
indent-c++ 282 B
#!/bin/sh
# Reindents the C++ source code file given in argument.
if [ -z "$1" ]; then
echo "Give a filename in argument"
exit 1
fi
SCRIPTS_DIR=$(dirname $0)
uncrustify -l CPP --replace -c ${SCRIPTS_DIR}/uncrustify.cfg $1
emacs -batch $1 -l ${SCRIPTS_DIR}/indent-c++.el