Skip to content

Commit e4636be

Browse files
committed
C++: Add 'nomagic' to the charpred of 'VariableAccessInInitializer'.
1 parent d00fec3 commit e4636be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp/ql/src/Likely Bugs/UseInOwnInitializer.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class VariableAccessInInitializer extends VariableAccess {
1515
Variable var;
1616
Initializer init;
1717

18+
pragma[nomagic]
1819
VariableAccessInInitializer() {
1920
init.getDeclaration() = var and
2021
init.getExpr().getAChild*() = this

0 commit comments

Comments
 (0)