Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 37fe68c

Browse files
committed
Improve Element::toString() performance by removing recursion
in TypeMention::toString().
1 parent 813e1e7 commit 37fe68c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,7 @@ private predicate suppressUnusedThis(Type t) { any() }
12761276

12771277
/** A source code location referring to a type */
12781278
class TypeMention extends Locatable, @type_mention {
1279-
override string toString() {result = "mention of " + getMentionedType()}
1279+
override string toString() {result = "type mention"}
12801280

12811281
/**
12821282
* Gets the type being referenced by this type mention.

0 commit comments

Comments
 (0)