Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rak3-sh committed Nov 13, 2024
1 parent 85036d5 commit 73c075d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions change_notes/2024-11-13-fix-fp-796.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `A13-3-1` - `FunctionThatContainsForwardingReferenceAsItsArgumentOverloaded.ql`:
- Reduce false positives by explicitly checking that the locations of overloaded functions are different.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ where
OperatorsPackage::functionThatContainsForwardingReferenceAsItsArgumentOverloadedQuery()) and
not f.isDeleted() and
f = c.getAnOverload() and
// CodeQL sometimes fetches an overloaded function at the same location.
// Thus, a check is added explicitly (refer #796).
f.getLocation() != c.getLocation() and
// allow for overloading with different number of parameters, because there is no
// confusion on what function will be called.
f.getNumberOfParameters() = c.getNumberOfParameters() and
Expand Down

0 comments on commit 73c075d

Please sign in to comment.