C++: Fix isfromtemplateinstantiation test.

This commit is contained in:
Geoffrey White
2020-05-05 13:06:48 +01:00
parent 0b381b9ba7
commit 2940f4794e

View File

@@ -2,7 +2,7 @@ import cpp
class FunctionMonkeyPatch extends Function {
language[monotonicAggregates]
override string toString() {
override string getDescription() {
exists(string name, string templateArgs, string args |
result = name + templateArgs + args and
name = this.getQualifiedName() and
@@ -30,7 +30,7 @@ class FunctionMonkeyPatch extends Function {
}
class ParameterMonkeyPatch extends Parameter {
override string toString() { result = super.getType().getName() + " " + super.toString() }
override string getDescription() { result = super.getType().getName() + " " + super.getDescription() }
}
from Element e, Element ti