DescriptionHelper code for finding problematic uses of IntToString variants.
By defining the pre-processor symbol
STRING_NUMBER_CONVERSIONS_DETECT_RISKY_CONVERSIONS a lot of extra overloads of
the *Int*ToString functions are added which catch cases where a potentially
unwanted implicit conversion is performed.
The number of errors caught by this CL is not that large, and the errors
are not usually serious, so it is probably not worth the extra complexity
of checking it in.
BUG=505479
Patch Set 1 #Patch Set 2 : Template-based implementation with less false positives. #Patch Set 3 : Handle enum arguments to IntToString(). #Patch Set 4 : Disable warnings on IntToString's own tests. #
|