Skip to content

Commit c05ef12

Browse files
authored
Merge pull request github#5803 from MathiasVP/no-magic-in-getUnspecifiedType
C++: Add nomagic to getUnspecifiedType
2 parents b2c0259 + 39c7816 commit c05ef12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ class Type extends Locatable, @type {
101101
*
102102
* For example, starting with `const i64* const` in the context of `typedef long long i64;`, this predicate will return `long long*`.
103103
*/
104+
pragma[nomagic]
104105
Type getUnspecifiedType() { unspecifiedtype(underlyingElement(this), unresolveElement(result)) }
105106

106107
/**

0 commit comments

Comments
 (0)