mirror of
https://github.com/github/codeql.git
synced 2026-01-15 23:44:47 +01:00
This PR separates the core cpp packs into `codeql/cpp-queries` and `codeql/cpp-all`. There are very few lines of code changed. Almost all changes are moving files around.
11 lines
275 B
Plaintext
11 lines
275 B
Plaintext
import cpp
|
|
|
|
/**
|
|
* A C++ class or structure which (possibly by inheritance) has at least one virtual method.
|
|
*/
|
|
class PolymorphicClass extends Class {
|
|
PolymorphicClass() {
|
|
exists(MemberFunction f | this.getABaseClass*() = f.getDeclaringType() and f.isVirtual())
|
|
}
|
|
}
|