This patch extends the loops checks that originally only had checked for-loops to also check while and do-while loops.  Changes are:<div><br></div><div>- Add a bit to VarDecl to keep track if a variable has been passed by reference (but not const reference) or had its address taken.</div>
<div>- If the bit above is set on a variable, do not emit the warning.  Also, don't emit the warning for parameter variables in while loops.</div><div>- Don't warn on variable declared inside a conditional.</div><div>
- Don't warn when there is a function call to a noreturn function inside the loop.</div>