mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
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:
@@ -11174,13 +11174,13 @@ calcxx_driver::parse (const std::string &f)
|
||||
void
|
||||
calcxx_driver::error (const yy::location& l, const std::string& m)
|
||||
@{
|
||||
std::cerr << l << ": " << m << std::endl;
|
||||
std::cerr << l << ": " << m << '\n';
|
||||
@}
|
||||
|
||||
void
|
||||
calcxx_driver::error (const std::string& m)
|
||||
@{
|
||||
std::cerr << m << std::endl;
|
||||
std::cerr << m << '\n';
|
||||
@}
|
||||
@end example
|
||||
|
||||
@@ -11533,7 +11533,7 @@ main (int argc, char *argv[])
|
||||
else if (argv[i] == std::string ("-s"))
|
||||
driver.trace_scanning = true;
|
||||
else if (!driver.parse (argv[i]))
|
||||
std::cout << driver.result << std::endl;
|
||||
std::cout << driver.result << '\n';
|
||||
else
|
||||
res = 1;
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user