summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2018-10-14 11:30:41 +0200
committerAkim Demaille <akim.demaille@gmail.com>2018-10-14 15:20:39 +0200
commitfa386893aac674320787e5a7d4b1fc6af357ef2b (patch)
treec52d9f92cf541f07403b6398b0c22080a9c47a0b /examples
parentdc73dc4fb217e1b8ecd62ea36486003a9f2979d4 (diff)
downloadbison-fa386893aac674320787e5a7d4b1fc6af357ef2b.tar.gz
C++: style: add missing space before parens
* data/c++.m4, data/lalr1.cc, data/stack.hh, data/variant.hh, * examples/variant-11.yy: here.
Diffstat (limited to 'examples')
-rw-r--r--examples/variant-11.yy2
-rw-r--r--examples/variant.yy4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/variant-11.yy b/examples/variant-11.yy
index a9454a1e..d378f300 100644
--- a/examples/variant-11.yy
+++ b/examples/variant-11.yy
@@ -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.
diff --git a/examples/variant.yy b/examples/variant.yy
index 8c7c8edd..e18929e6 100644
--- a/examples/variant.yy
+++ b/examples/variant.yy
@@ -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: