CodeQL queries 1.25
Skip to end of metadata
Go to start of metadata

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