mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
C++/Docs: respond to doc comments on PR
This commit is contained in:
@@ -11,7 +11,7 @@ that the incorrect function is being called, or that the author misunderstood th
|
||||
<p>In C, a function declared with an empty parameter list `()` is considered to have an unknown
|
||||
parameter list, and therefore can be called with any set of arguments. To declare a function
|
||||
which takes no arguments, you must use `(void)` as the parameter list in any forward declarations.
|
||||
In C++, either style of declaration will be considered to take no arguments.</p>
|
||||
In C++, either style of declaration indicates that the function accepts no arguments.</p>
|
||||
|
||||
</overview>
|
||||
<recommendation>
|
||||
|
||||
@@ -4,6 +4,10 @@
|
||||
* that the code does not follow the author's intent.
|
||||
* @kind problem
|
||||
* @problem.severity warning
|
||||
* @precision very-high
|
||||
* @id cpp/futile-params
|
||||
* @tags correctness
|
||||
* maintainability
|
||||
*/
|
||||
|
||||
import cpp
|
||||
|
||||
Reference in New Issue
Block a user