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

Skip to content

Commit 54fdf9f

Browse files
author
Robert Marsh
committed
C++/Docs: respond to doc comments on PR
1 parent 44d8e6b commit 54fdf9f

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

cpp/config/suites/c/correctness

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
+ semmlecode-cpp-queries/Likely Bugs/Conversion/NonzeroValueCastToPointer.ql: /Correctness/Dangerous Conversions
88
+ semmlecode-cpp-queries/Likely Bugs/Conversion/ImplicitDowncastFromBitfield.ql: /Correctness/Dangerous Conversions
99
+ semmlecode-cpp-queries/Security/CWE/CWE-253/HResultBooleanConversion.ql: /Correctness/Dangerous Conversions
10-
# Consistent Use
10+
# Consistent Use
1111
+ semmlecode-cpp-queries/Critical/ReturnValueIgnored.ql: /Correctness/Consistent Use
1212
+ semmlecode-cpp-queries/Likely Bugs/InconsistentCheckReturnNull.ql: /Correctness/Consistent Use
1313
+ semmlecode-cpp-queries/Likely Bugs/InconsistentCallOnResult.ql: /Correctness/Consistent Use
1414
# Common Errors
1515
+ semmlecode-cpp-queries/Likely Bugs/Likely Typos/AssignWhereCompareMeant.ql: /Correctness/Common Errors
1616
+ semmlecode-cpp-queries/Likely Bugs/Likely Typos/CompareWhereAssignMeant.ql: /Correctness/Common Errors
1717
+ semmlecode-cpp-queries/Likely Bugs/Likely Typos/ExprHasNoEffect.ql: /Correctness/Common Errors
18+
+ semmlecode-cpp-queries/Likely Bugs/Likely Typos/FutileParams.ql: /Correctness/Common Errors
1819
+ semmlecode-cpp-queries/Likely Bugs/Likely Typos/ShortCircuitBitMask.ql: /Correctness/Common Errors
1920
+ semmlecode-cpp-queries/Likely Bugs/Likely Typos/MissingEnumCaseInSwitch.ql: /Correctness/Common Errors
2021
+ semmlecode-cpp-queries/Likely Bugs/Arithmetic/FloatComparison.ql: /Correctness/Common Errors

cpp/ql/src/Likely Bugs/Likely Typos/FutileParams.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ that the incorrect function is being called, or that the author misunderstood th
1111
<p>In C, a function declared with an empty parameter list `()` is considered to have an unknown
1212
parameter list, and therefore can be called with any set of arguments. To declare a function
1313
which takes no arguments, you must use `(void)` as the parameter list in any forward declarations.
14-
In C++, either style of declaration will be considered to take no arguments.</p>
14+
In C++, either style of declaration indicates that the function accepts no arguments.</p>
1515

1616
</overview>
1717
<recommendation>

cpp/ql/src/Likely Bugs/Likely Typos/FutileParams.ql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
* that the code does not follow the author's intent.
55
* @kind problem
66
* @problem.severity warning
7+
* @precision very-high
8+
* @id cpp/futile-params
9+
* @tags correctness
10+
* maintainability
711
*/
812

913
import cpp

0 commit comments

Comments
 (0)