nl_catch_brace
Add or remove newline before the '{' of a 'catch' statement, as in catch (decl) <here> {
.
Possible values are ignore, add, remove and force.
Examples
add
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';
}
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
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';
}
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
- nl_oc_catch_brace -- (OC) Add or remove newline before the
{
of a@catch
statement, as in@catch (decl) <here> {
'. - nl_oc_brace_catch -- (OC) Add or remove newline between
}
and@catch
.