mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
10 lines
340 B
Plaintext
10 lines
340 B
Plaintext
import csharp
|
|
private import semmle.code.csharp.commons.Compilation
|
|
|
|
query predicate directives(PreprocessorDirective d, Location l, string isActive) {
|
|
d.getALocation() = l and
|
|
if d.isActive() then isActive = "active" else isActive = "inactive"
|
|
}
|
|
|
|
query predicate comp(PreprocessorDirective d, Compilation c) { d.getCompilation() = c }
|