style: don't use std::endl

* data/lalr1.cc, doc/bison.texi, etc/bench.pl.in, examples/variant.yy,
* tests/actions.at, tests/atlocal.in, tests/c++.at, tests/headers.at,
* tests/local.at, tests/types.at:
Don't use std::endl, it flushes uselessly, and is considered bad
style.
This commit is contained in:
Akim Demaille
2018-05-08 12:15:55 +02:00
parent ad9500f3fd
commit dbd1609311
10 changed files with 32 additions and 33 deletions

View File

@@ -85,7 +85,7 @@ typedef std::list<std::string> strings_type;
%%
result:
list { std::cout << $1 << std::endl; }
list { std::cout << $1 << '\n'; }
;
list:
@@ -135,7 +135,7 @@ namespace yy
void
parser::error (const parser::location_type& loc, const std::string& msg)
{
std::cerr << loc << ": " << msg << std::endl;
std::cerr << loc << ": " << msg << '\n';
}
}