Throw exception of type
Author: LGTM
import cpp
from ThrowExpr throw
where throw.getType().(Class).getABaseClass*().getName() = 'parse_error'
select throw
Description
Finds places where we throw `parse_error` or one of its sub-types
import cpp
from ThrowExpr throw
where throw.getType().(Class).getABaseClass*().getName() = 'parse_error'
select throw
Finds places where we throw `parse_error` or one of its sub-types