C++: Replace getAnExpandedElement with getAGeneratedElement as it's all we really need.

This commit is contained in:
Geoffrey White
2021-05-18 13:23:41 +01:00
parent 3b29920255
commit da83e9142b

View File

@@ -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