Skip to content

Commit de55a68

Browse files
authored
Merge pull request #2204 from alexet/cache-to-string
Cache the computation of core toString predicates for cpp c# and java.
2 parents 665d386 + 924d23f commit de55a68

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cpp/ql/src/semmle/code/cpp/Element.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ pragma[inline]
4747
*/
4848
class ElementBase extends @element {
4949
/** Gets a textual representation of this element. */
50+
cached
5051
string toString() { none() }
5152

5253
/**

csharp/ql/src/semmle/code/dotnet/Element.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import semmle.code.csharp.Location
1010
*/
1111
class Element extends @dotnet_element {
1212
/** Gets a textual representation of this element. */
13+
cached
1314
string toString() { none() }
1415

1516
/** Gets the location of this element. */

0 commit comments

Comments
 (0)