mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
Update FindIncorrectlyUsedExceptions.ql
This commit is contained in:
@@ -39,5 +39,6 @@ where
|
||||
fc.getTargetType().(Class).getABaseClass+().hasGlobalOrStdName("CException")
|
||||
) and
|
||||
fc instanceof ExprInVoidContext and
|
||||
not fc.isInMacroExpansion() and
|
||||
msg = "This object does not generate an exception."
|
||||
select fc, msg
|
||||
|
||||
Reference in New Issue
Block a user