mirror of
https://github.com/github/codeql.git
synced 2026-07-26 05:29:42 +02:00
Ports the Ruby regex library to C++/ECMAScript (`std::regex` default dialect): - `cpp/ql/lib/semmle/code/cpp/regex/internal/ParseRegExp.qll`: ECMAScript-adapted parser over `StringLiteral` - `cpp/ql/lib/semmle/code/cpp/regex/RegexTreeView.qll`: tree view implementing `RegexTreeViewSig` - `cpp/ql/lib/qlpack.yml`: add `codeql/regex` dependency (already present) - `cpp/ql/test/library-tests/regex/`: hermetic test corpus (test.cpp with std:: stubs), parse.ql, regexp.ql, RegExpConfig.qll - `cpp/ql/lib/change-notes/released/12.1.0.md`: minorAnalysis change note Note: .expected files are placeholders; run `codeql test run --accept` after database generation to populate them.
6 lines
408 B
Markdown
6 lines
408 B
Markdown
## 12.1.0
|
|
|
|
### Minor Analysis Improvements
|
|
|
|
* Added an internal C++ regular-expression parse library and parse-tree view targeting the ECMAScript dialect, which is the default for `std::regex`. The new library lives in `semmle.code.cpp.regex` and implements the shared `RegexTreeViewSig` interface. No new queries are added in this release; the library provides the foundation for future C++ ReDoS analyses.
|