mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 10:43:02 +00:00
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:
@@ -117,7 +117,8 @@ m4_define([b4_location_define],
|
|||||||
/// Compute max (min, lhs+rhs).
|
/// Compute max (min, lhs+rhs).
|
||||||
static unsigned add_ (unsigned lhs, int rhs, int min)
|
static unsigned add_ (unsigned lhs, int rhs, int min)
|
||||||
{
|
{
|
||||||
return static_cast<unsigned>(std::max(min, static_cast<int>(lhs) + rhs));
|
return static_cast<unsigned> (std::max (min,
|
||||||
|
static_cast<int> (lhs) + rhs));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
make_string_uptr (Args&&... args)
|
make_string_uptr (Args&&... args)
|
||||||
{
|
{
|
||||||
// std::make_unique is C++14.
|
// 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.
|
// Convert to string.
|
||||||
|
|||||||
Reference in New Issue
Block a user