home  

sp_cpp_lambda_assign

Properties

  Category: Spacing options
      Type: multiple (ignore add remove force)
   Default: ignore

Description

Add or remove space around '=' in C++11 lambda capture specifications.

Overrides sp_assign.
[=](function_parameters) -> return_type { body }

Examples

raw CPP code sp_cpp_lambda_assign=ignore sp_cpp_lambda_assign=add sp_cpp_lambda_assign=remove sp_cpp_lambda_assign=force space
sp_cpp_lambda_assign=force
auto x = [=]() -> int { }(); auto x = [= ]() -> int { }(); auto x = [ =]() -> int { }(); auto x = [ = ]() -> int { }(); auto x = [=]() -> int { }(); auto x = [= ]() -> int { }(); auto x = [ =]() -> int { }(); auto x = [ = ]() -> int { }(); auto x = [ = ]() -> int { }(); auto x = [ = ]() -> int { }(); auto x = [ = ]() -> int { }(); auto x = [ = ]() -> int { }(); auto x = [=]() -> int { }(); auto x = [=]() -> int { }(); auto x = [=]() -> int { }(); auto x = [=]() -> int { }(); auto x = [ = ]() -> int { }(); auto x = [ = ]() -> int { }(); auto x = [ = ]() -> int { }(); auto x = [ = ]() -> int { }(); autox=[=]()->int{ }(); autox=[=]()->int{ }(); autox=[=]()->int{ }(); autox=[=]()->int{ }();
 

Info

  fixme: maybe --tracking not invoked with the right --set
  See also sp_assign
  Edited by JEAYNE

TAGS: c++ fixme

Not the best code for this option? See how to improve the .uds file used to generate these examples.