mirror of
https://github.com/github/codeql.git
synced 2026-07-23 04:02:07 +02:00
15 lines
416 B
Plaintext
15 lines
416 B
Plaintext
/**
|
|
* Tests for the construction-site flag detection wired into `RegExpLiteral`.
|
|
*/
|
|
|
|
import cpp
|
|
import semmle.code.cpp.regex.RegexTreeView
|
|
|
|
query predicate ignoreCase(RegExpLiteral lit) { lit.isIgnoreCase() }
|
|
|
|
query predicate multiline(RegExpLiteral lit) { lit.isMultiline() }
|
|
|
|
query predicate dotAll(RegExpLiteral lit) { lit.isDotAll() }
|
|
|
|
query predicate flags(RegExpLiteral lit, string f) { f = lit.getFlags() }
|