Skip to content

Commit 918d51c

Browse files
authored
Add QLdoc to TRegexGrammar branches
1 parent 8b12f32 commit 918d51c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cpp/ql/lib/semmle/code/cpp/regex/RegexFlowConfigs.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,11 @@ predicate hasNonEcmaScriptGrammarFlag(StringLiteral regex) {
401401
* parser sees.
402402
*/
403403
newtype TRegexGrammar =
404+
/** The ECMAScript grammar (the default for `std::regex`), modelled by `EcmaRegExp`. */
404405
Ecma() or
406+
/** The POSIX Basic Regular Expression grammar (`basic`/`grep` flags), modelled by `BreRegExp`. */
405407
Bre() or
408+
/** The POSIX Extended Regular Expression grammar (`extended`/`egrep`/`awk` flags), modelled by `EreRegExp`. */
406409
Ere()
407410

408411
/**

0 commit comments

Comments
 (0)