[CPP-340] Add a fourth query, ArgumentsToImplicit.ql, to deal strictly with implicitly declared

functions.  TooManyArguments.ql will now deal with explicitly declared/prototyped functions.
This commit is contained in:
Ziemowit Laski
2019-04-18 17:56:41 -07:00
parent 65130c40ab
commit 62b030d27f
7 changed files with 94 additions and 2 deletions

View File

@@ -0,0 +1 @@
| test.c:28:3:28:12 | call to undeclared | This call to an implicitly declared function $@ has arguments. | test.c:27:3:27:3 | undeclared | undeclared |

View File

@@ -0,0 +1 @@
Likely Bugs/Underspecified Functions/ArgumentsToImplicit.ql

View File

@@ -1,5 +1,4 @@
| test.c:23:3:23:16 | call to declared_empty | This call has more arguments than required by $@. | test.c:1:6:1:19 | declared_empty | declared_empty |
| test.c:28:3:28:12 | call to undeclared | This call has more arguments than required by $@. | test.c:27:3:27:3 | undeclared | undeclared |
| test.c:30:3:30:19 | call to not_yet_declared1 | This call has more arguments than required by $@. | test.c:30:3:30:3 | not_yet_declared1 | not_yet_declared1 |
| test.c:30:3:30:19 | call to not_yet_declared1 | This call has more arguments than required by $@. | test.c:65:6:65:22 | not_yet_declared1 | not_yet_declared1 |
| test.c:40:3:40:29 | call to declared_empty_defined_with | This call has more arguments than required by $@. | test.c:67:6:67:32 | declared_empty_defined_with | declared_empty_defined_with |