mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
21 lines
391 B
Plaintext
21 lines
391 B
Plaintext
/**
|
|
* @id cpp/examples/derives-from-class
|
|
* @name Class derives from
|
|
* @description Finds classes that derive from `std::exception`
|
|
* @tags base
|
|
* class
|
|
* derive
|
|
* inherit
|
|
* override
|
|
* subtype
|
|
* supertype
|
|
*/
|
|
|
|
import cpp
|
|
|
|
from Class type
|
|
where
|
|
type.getABaseClass+().hasName("exception") and
|
|
type.getNamespace().getName() = "std"
|
|
select type
|