mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
13 lines
183 B
Plaintext
13 lines
183 B
Plaintext
/**
|
|
* @name Test for try catches
|
|
*/
|
|
|
|
import csharp
|
|
|
|
where
|
|
forall(TryStmt s |
|
|
exists(s.getBlock()) and
|
|
(exists(s.getACatchClause()) or exists(s.getFinally()))
|
|
)
|
|
select 1
|