mirror of
https://github.com/github/codeql.git
synced 2026-05-11 09:49:26 +02:00
C++: Handle FunctionAccesses with qualifiers
Also fix the IR generation for these and add more IR tests involving value categories.
This commit is contained in:
@@ -368,6 +368,11 @@ class FunctionAccess extends Access, @routineexpr {
|
||||
/** Gets the accessed function. */
|
||||
override Function getTarget() { funbind(underlyingElement(this), unresolveElement(result)) }
|
||||
|
||||
/**
|
||||
* Gets the expression generating the function being accessed.
|
||||
*/
|
||||
Expr getQualifier() { this.getChild(-1) = result }
|
||||
|
||||
/** Gets a textual representation of this function access. */
|
||||
override string toString() {
|
||||
if exists(this.getTarget())
|
||||
|
||||
Reference in New Issue
Block a user