C++: Correct false positive. Only TimeConversionFunction that do not auto correct for leap year should be considered.

This commit is contained in:
REDMOND\brodes
2026-02-06 16:07:07 -05:00
parent d9feadcfec
commit ca18179bd2

View File

@@ -46,6 +46,7 @@ class SafeTimeGatheringFunction extends Function {
from FunctionCall fcall, TimeConversionFunction trf, Variable var
where
not trf.isAutoLeapYearCorrecting() and
fcall = trf.getACallToThisFunction() and
fcall instanceof ExprInVoidContext and
var.getUnderlyingType() instanceof UnpackedTimeType and