We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec10b76 commit 36cd4d4Copy full SHA for 36cd4d4
cpp/ql/src/semmle/code/cpp/exprs/Expr.qll
@@ -57,7 +57,7 @@ class Expr extends StmtParent, @expr {
57
* As the type of an expression can sometimes be a TypedefType, calling getUnderlyingType()
58
* is often more useful than calling this predicate.
59
*/
60
- pragma[nomagic] Type getType() { expr_types(underlyingElement(this),unresolveElement(result),_) }
+ pragma[nomagic] cached Type getType() { expr_types(underlyingElement(this),unresolveElement(result),_) }
61
62
/**
63
* Gets the type of this expression after typedefs have been resolved.
0 commit comments