Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 96b8bdf

Browse files
committed
[CPP-340] Add new queries to analysis-cpp.md; correct id of
TooFewArguments.ql
1 parent 03aa86e commit 96b8bdf

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

change-notes/1.21/analysis-cpp.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
| **Query** | **Tags** | **Purpose** |
88
|-----------------------------|-----------|--------------------------------------------------------------------|
9+
| `()`-declared function called with too few arguments (`cpp/too-few-arguments`) | Correctness | Find all cases where the number of arguments is less than the number of parameters of the function, provided the function is also properly declared/defined elsewhere. |
10+
| `()`-declared function called with mismatched arguments (`cpp/mismatched-function-arguments`) | Correctness | Find all cases where the types of arguments do not match the types of parameters of the function, provided the function is also properly declared/defined elsewhere. |
911

1012
## Changes to existing queries
1113

@@ -18,5 +20,6 @@
1820
| Resource not released in destructor (`cpp/resource-not-released-in-destructor`) | Fewer false positive results | Resource allocation and deallocation functions are now determined more accurately. |
1921
| Comparison result is always the same | Fewer false positive results | The range analysis library is now more conservative about floating point values being possibly `NaN` |
2022
| Wrong type of arguments to formatting function (`cpp/wrong-type-format-argument`) | More correct results and fewer false positive results | This query now more accurately identifies wide and non-wide string/character format arguments on different platforms. Platform detection has also been made more accurate for the purposes of this query. |
23+
| `()`-declared function called with too many arguments (`cpp/futile-params`) | Improved coverage | Query has been generalized to find all cases where the number of arguments exceedes the number of parameters of the function, provided the function is also properly declared/defined elsewhere. |
2124

2225
## Changes to QL libraries

cpp/ql/src/Likely Bugs/Underspecified Functions/TooFewArguments.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @kind problem
88
* @problem.severity error
99
* @precision very-high
10-
* @id cpp/too-few-params
10+
* @id cpp/too-few-arguments
1111
* @tags correctness
1212
* maintainability
1313
* security

0 commit comments

Comments
 (0)