mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
18 lines
417 B
Plaintext
18 lines
417 B
Plaintext
/**
|
|
* @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
|