mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
C++: Work around CPP-331
This change suppresses results from "Declaration hides parameter" where the ParameterDeclarationEntry does not link up to the right FunctionDeclarationEntry.
This commit is contained in:
@@ -23,6 +23,7 @@ ParameterDeclarationEntry functionParameterNames(Function f, string name) {
|
||||
result.getFunctionDeclarationEntry() = fe and
|
||||
fe.getFunction() = f and
|
||||
fe.getLocation() = f.getDefinitionLocation() and
|
||||
result.getFile() = fe.getFile() and // Work around CPP-331
|
||||
strictcount(f.getDefinitionLocation()) = 1 and
|
||||
result.getName() = name
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user