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

@@ -539,7 +539,7 @@ m4_define([AT_YYERROR_DEFINE(c++)],
void
]AT_NAME_PREFIX[::parser::error (]AT_LOCATION_IF([[const location_type& l, ]])[const std::string& m)
{
std::cerr << ]AT_LOCATION_IF([l << ": " << ])[m << std::endl;
std::cerr << ]AT_LOCATION_IF([l << ": " << ])[m << '\n';
}]])
@@ -892,7 +892,7 @@ void foo()
}
catch (...)
{
std::cerr << "Inner caught" << std::endl;
std::cerr << "Inner caught\n";
throw;
}
}
@@ -905,7 +905,7 @@ int main()
}
catch (...)
{
std::cerr << "Outer caught" << std::endl;
std::cerr << "Outer caught\n";
return 0;
}
return 1;