mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
16 lines
342 B
Plaintext
16 lines
342 B
Plaintext
/**
|
|
* @id cpp/examples/throw-exception
|
|
* @name Throw exception of type
|
|
* @description Finds places where we throw `parse_error` or one of its sub-types
|
|
* @tags base
|
|
* class
|
|
* throw
|
|
* exception
|
|
*/
|
|
|
|
import cpp
|
|
|
|
from ThrowExpr throw
|
|
where throw.getType().(Class).getABaseClass*().getName() = "parse_error"
|
|
select throw
|