Skip to content

Commit 6a904ed

Browse files
authored
Merge pull request #21390 from MathiasVP/less-reevaluation-4
C++: Reduce re-evaluation
2 parents a2f45f1 + db33dad commit 6a904ed

File tree

17 files changed

+2283
-2231
lines changed

17 files changed

+2283
-2231
lines changed

cpp/ql/lib/semmle/code/cpp/dataflow/ExternalFlow.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,7 @@ private Locatable getSupportedFunctionTemplateArgument(Function templateFunction
555555
* Normalize the `n`'th parameter of `f` by replacing template names
556556
* with `func:N` (where `N` is the index of the template).
557557
*/
558+
pragma[nomagic]
558559
private string getTypeNameWithoutFunctionTemplates(Function f, int n, int remaining) {
559560
exists(Function templateFunction |
560561
templateFunction = getFullyTemplatedFunction(f) and

cpp/ql/lib/semmle/code/cpp/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ module SourceSinkInterpretationInput implements
201201
string toString() {
202202
result = this.asElement().toString()
203203
or
204-
result = this.asNode().toString()
204+
result = this.asNode().toStringImpl()
205205
or
206206
result = this.asCall().toString()
207207
}

0 commit comments

Comments
 (0)