mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
C++: Replace getAnExpandedElement with getAGeneratedElement as it's all we really need.
This commit is contained in:
@@ -79,7 +79,7 @@ class InsecureFunctionCall extends FunctionCall {
|
||||
explain = "function call"
|
||||
or
|
||||
exists(MacroInvocation mi |
|
||||
mi.getAGeneratedElement() = this.getAnArgument() and
|
||||
mi.getAnExpandedElement() = this.getAnArgument() and
|
||||
mi.getMacro() = getAnInsecureEncryptionMacro() and
|
||||
blame = mi and
|
||||
explain = "macro invocation"
|
||||
@@ -97,7 +97,7 @@ class InsecureFunctionCall extends FunctionCall {
|
||||
getTarget() = getAdditionalEvidenceFunction()
|
||||
or
|
||||
exists(MacroInvocation mi |
|
||||
mi.getAGeneratedElement() = this.getAnArgument() and
|
||||
mi.getAnExpandedElement() = this.getAnArgument() and
|
||||
mi.getMacro() = getAdditionalEvidenceMacro()
|
||||
)
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user