Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b6e1f35

Browse files
committed
CPP: Generalize the fix to all template code.
1 parent 8044fef commit b6e1f35

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cpp/ql/src/jsf/4.10 Classes/AV Rule 82.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,6 @@ where
9797
assignOperatorWithWrongType(op, msg) or
9898
assignOperatorWithWrongResult(op, msg)
9999
) and
100-
// exclude template classes which may have incomplete function bodies
101-
not op.getDeclaringType() instanceof TemplateClass
100+
// exclude code in templates which may be incomplete
101+
not op.isFromUninstantiatedTemplate(_)
102102
select op, msg

0 commit comments

Comments
 (0)