sp_brace_catch

Add or remove space between '}' and 'catch' if on the same line.

Possible values are ignore, add, remove and force. Default ignore.

Examples

add

Code before:

try {
  std::cout << "Throwing an integer exception...\n";
  throw 42;
}catch (int i) {
  std::cout << " the integer exception was caught, with value: " << i << '\n';
}

Code after:

try {
  std::cout << "Throwing an integer exception...\n";
  throw 42;
} catch (int i) {
  std::cout << " the integer exception was caught, with value: " << i << '\n';
}

remove

Code before:

try {
  std::cout << "Throwing an integer exception...\n";
  throw 42;
} catch (int i) {
  std::cout << " the integer exception was caught, with value: " << i << '\n';
}

Code after:

try {
  std::cout << "Throwing an integer exception...\n";
  throw 42;
}catch (int i) {
  std::cout << " the integer exception was caught, with value: " << i << '\n';
}

See also