C++: style: add missing space before parens

* data/c++.m4, data/lalr1.cc, data/stack.hh, data/variant.hh,
* examples/variant-11.yy: here.
This commit is contained in:
Akim Demaille
2018-10-14 11:30:41 +02:00
parent dc73dc4fb2
commit fa386893aa
7 changed files with 15 additions and 14 deletions

View File

@@ -66,7 +66,7 @@
make_string_uptr (Args&&... args)
{
// std::make_unique is C++14.
return std::unique_ptr<std::string>(new std::string{std::forward<Args>(args)...});
return string_uptr (new std::string{std::forward<Args> (args)...});
}
// Convert to string.

View File

@@ -48,7 +48,7 @@ typedef std::vector<std::string> strings_type;
{
o << '{';
const char *sep = "";
for (strings_type::const_iterator i = ss.begin(), end = ss.end();
for (strings_type::const_iterator i = ss.begin (), end = ss.end ();
i != end; ++i)
{
o << sep << *i;
@@ -110,7 +110,7 @@ namespace yy
{
static int stage = -1;
++stage;
parser::location_type loc(YY_NULLPTR, stage + 1, stage + 1);
parser::location_type loc (YY_NULLPTR, stage + 1, stage + 1);
switch (stage)
{
case 0: