mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
CPP: Cache Expr.getType().
This commit is contained in:
@@ -57,7 +57,7 @@ class Expr extends StmtParent, @expr {
|
||||
* As the type of an expression can sometimes be a TypedefType, calling getUnderlyingType()
|
||||
* is often more useful than calling this predicate.
|
||||
*/
|
||||
pragma[nomagic] Type getType() { expr_types(underlyingElement(this),unresolveElement(result),_) }
|
||||
pragma[nomagic] cached Type getType() { expr_types(underlyingElement(this),unresolveElement(result),_) }
|
||||
|
||||
/**
|
||||
* Gets the type of this expression after typedefs have been resolved.
|
||||
|
||||
Reference in New Issue
Block a user