1 parent 8b12f32 commit 918d51cCopy full SHA for 918d51c
1 file changed
cpp/ql/lib/semmle/code/cpp/regex/RegexFlowConfigs.qll
@@ -401,8 +401,11 @@ predicate hasNonEcmaScriptGrammarFlag(StringLiteral regex) {
401
* parser sees.
402
*/
403
newtype TRegexGrammar =
404
+ /** The ECMAScript grammar (the default for `std::regex`), modelled by `EcmaRegExp`. */
405
Ecma() or
406
+ /** The POSIX Basic Regular Expression grammar (`basic`/`grep` flags), modelled by `BreRegExp`. */
407
Bre() or
408
+ /** The POSIX Extended Regular Expression grammar (`extended`/`egrep`/`awk` flags), modelled by `EreRegExp`. */
409
Ere()
410
411
/**
0 commit comments