mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
19 lines
453 B
Plaintext
19 lines
453 B
Plaintext
/**
|
|
* @id cpp/examples/override-method
|
|
* @name Override of method
|
|
* @description Finds methods that override `std::exception::what()`
|
|
* @tags function
|
|
* method
|
|
* override
|
|
*/
|
|
|
|
import cpp
|
|
|
|
from MemberFunction override, MemberFunction base
|
|
where
|
|
base.getName() = "what" and
|
|
base.getDeclaringType().getName() = "exception" and
|
|
base.getDeclaringType().getNamespace().getName() = "std" and
|
|
override.overrides+(base)
|
|
select override
|