mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
CPP: Generalize the fix to all template code.
This commit is contained in:
@@ -97,6 +97,6 @@ where
|
||||
assignOperatorWithWrongType(op, msg) or
|
||||
assignOperatorWithWrongResult(op, msg)
|
||||
) and
|
||||
// exclude template classes which may have incomplete function bodies
|
||||
not op.getDeclaringType() instanceof TemplateClass
|
||||
// exclude code in templates which may be incomplete
|
||||
not op.isFromUninstantiatedTemplate(_)
|
||||
select op, msg
|
||||
|
||||
Reference in New Issue
Block a user