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

Finds classes that derive from `std::exception`

import cpp

from Class type
where
  type.getABaseClass+().hasName("exception") and
  type.getNamespace().getName() = "std"
select type