Clean up the misc/formater.hh file.

* src/misc/formater.hh (formater::format, formater::prime): Move ...
* src/misc/formater.cc: ... in this new file.
* src/misc/Makefile.am: Add it.
* src/sanity/style.test: Allow <iostream> in headers where << or >> are
used.
This commit is contained in:
Alexandre Duret-Lutz 2012-10-05 13:52:54 +02:00
parent f6dc6412d3
commit 3f5e6102dc
4 changed files with 64 additions and 35 deletions

View file

@ -198,7 +198,7 @@ for dir in "${INCDIR-..}" "${INCDIR-..}"/../iface; do
case $file in
*.hh | *.hxx)
if egrep '(cout|cerr|clog)' $tmp >/dev/null; then
if egrep '(<<|>>)' $tmp >/dev/null; then
:
else
grep '#.*include.*<iostream>' $tmp &&