We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 641126a + 36cd4d4 commit d2fa7aaCopy full SHA for d2fa7aa
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