|T O P I C R E V I E W
||Posted - Mar 18 2016 : 11:23:39 AM
I've been bitten a few times due to my hasty use of tab-completion when I start to type out a variable name. For example:
const bool bSomeBoolean = ...
const bool bSomeBooleanOther = ...
if (bSomeBoolean && bSomeBoolean)
Yes, static analysis or a descent compiler would catch this (or even proper testing on my part).
A nice feature of VA would be to understand that context and make bSomeBooleanOther the primary suggestion while typing out the "bSome" the second time inside the if.
|1 L A T E S T R E P L I E S (Newest First)
||Posted - Mar 18 2016 : 3:09:49 PM
A good point, I have put in a bug report for this to see what our developers make of it:
We do our best to make the suggestions helpful, but there are always going to be cases where our best guess is not as helpful as we would like, and suggestions need to be considered before accepting them.