mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
Swift/C++: Use instanceof in more places
This commit is contained in:
@@ -66,9 +66,7 @@ class ElseDirective extends Directive {
|
||||
override predicate mismatched() { depth() < 1 }
|
||||
}
|
||||
|
||||
class EndifDirective extends Directive {
|
||||
EndifDirective() { this instanceof PreprocessorEndif }
|
||||
|
||||
class EndifDirective extends Directive instanceof PreprocessorEndif {
|
||||
override int depthChange() { result = -1 }
|
||||
|
||||
override predicate mismatched() { depth() < 0 }
|
||||
|
||||
Reference in New Issue
Block a user