roslint icon indicating copy to clipboard operation
roslint copied to clipboard

Impossible brace+paren combo

Open nickswalker opened this issue 5 years ago • 0 comments

I need to write some code that uses std::transform, like this:

  std::transform(rows.begin(), rows.end(), std::back_inserter(concepts), [this](const mysqlx::Row & row)
  {
    return Concept(row[0], *this);
  });

This will generate } should be on a line by itself [whitespace/braces] [4]. If I do this though, I'll just get closing ) should be moved to the previous line [whitespace/parens] [2].

nickswalker avatar Feb 12 '20 04:02 nickswalker