quick-fix for "Catching by reference is recommended" to add const& should add the const in the place as given by Code-style preferences setting for placing const keyword.
int main(int argc, char **argv) {
try {
throw S{};
} catch (S s) { // should catch by const-reference!
}
}
should result in
int main(int argc, char **argv) {
try {
throw S{};
} catch (S const & s) { // should catch by const-reference!
}
}
Actual Behavior
it seems that const is always placed left.
int main(int argc, char **argv) {
try {
throw S{};
} catch (const S & s) { // should catch by const-reference!
}
}
Expected Behavior
quick-fix for "Catching by reference is recommended" to add const& should add the const in the place as given by Code-style preferences setting for placing const keyword.
should result in
Actual Behavior
it seems that const is always placed left.
Cevelop Version, Operating System and Compiler
Version: 1.9.1-201802220948