Skip to content

Commit 7f825c1

Browse files
committed
C++: Make getUnderlyingType 'nomagic'.
1 parent f53df25 commit 7f825c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class Type extends Locatable, @type {
9494
* The result of this predicate will be the type itself, except in the case of a TypedefType or a Decltype,
9595
* in which case the result will be type which results from (possibly recursively) resolving typedefs.
9696
*/
97-
Type getUnderlyingType() { result = this }
97+
pragma[nomagic] Type getUnderlyingType() { result = this }
9898

9999
/**
100100
* Gets this type after specifiers have been deeply stripped and typedefs have been resolved.

0 commit comments

Comments
 (0)