[PATCH] D104222: [clang-format] [PR50702] Lamdba processing does not respect AfterClass and AfterNamespace

Francois JEAN via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 15 12:37:03 PDT 2021


Wawha added a comment.

Indeed, I found another case with a regression:

  return iter::chain.from_iterable(
    [](auto&& ite) -> auto&
    {
      return ite.second;
    });

it's format all inline.

And also another different in that case (without lambda):

  	ASSERT_NO_THROW(
  		{
  			iterator += 507408;
  		});

is now format like this:

  	ASSERT_NO_THROW({ iterator += 507408; });


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D104222/new/

https://reviews.llvm.org/D104222



More information about the cfe-commits mailing list