Merge pull request #1838 from jbj/leap-year-name

C++: Change name of UncheckedReturnValueForTimeFunctions.ql
This commit is contained in:
Geoffrey White
2019-08-29 17:32:31 +01:00
committed by GitHub
2 changed files with 8 additions and 4 deletions

View File

@@ -1,6 +1,8 @@
/**
* @name Year field changed using an arithmetic operation is used on an unchecked time conversion function
* @description A year field changed using an arithmetic operation is used on a time conversion function, but the return value of the function is not checked for success or failure.
* @name Arithmetic operation assumes 365 days per year
* @description When an arithmetic operation modifies a date by a constant
* value of 365, it may be a sign that leap years are not taken
* into account.
* @kind problem
* @problem.severity warning
* @id cpp/leap-year/adding-365-days-per-year

View File

@@ -1,6 +1,8 @@
/**
* @name Year field changed using an arithmetic operation is used on an unchecked time conversion function
* @description A year field changed using an arithmetic operation is used on a time conversion function, but the return value of the function is not checked for success or failure
* @name Unchecked return value for time conversion function
* @description When the return value of a fallible time conversion function is
* not checked for failure, its output parameters may contain
* invalid dates.
* @kind problem
* @problem.severity warning
* @id cpp/leap-year/unchecked-return-value-for-time-conversion-function