C++: Disable magic to prevent re-evaluation.

This commit is contained in:
Mathias Vorreiter Pedersen
2026-02-26 14:35:59 +00:00
parent 5d75b255a8
commit 17e6fd2fe9

View File

@@ -555,6 +555,7 @@ private Locatable getSupportedFunctionTemplateArgument(Function templateFunction
* Normalize the `n`'th parameter of `f` by replacing template names
* with `func:N` (where `N` is the index of the template).
*/
pragma[nomagic]
private string getTypeNameWithoutFunctionTemplates(Function f, int n, int remaining) {
exists(Function templateFunction |
templateFunction = getFullyTemplatedFunction(f) and