2 Jul
2014
2 Jul
'14
8:50 p.m.
On Wed, Jul 2, 2014 at 4:45 PM, Johan Engelen <jbc.engelen@...2592...> wrote:
We could enable "-Wparentheses" for this. It also nicely catches some other issues like: if (x = 0) {
} forcing one to write if ((x = 0)) {
} if you really meant the assignment.
So if I write
if (SPItem* item = dynamic_cast<SPItem*>(obj)) { // do something with item }
Would it flag that too?