mirror of
https://github.com/github/codeql.git
synced 2026-07-31 23:42:59 +02:00
This is a verbatim copy of the Ruby ParseRegExp.qll and RegExpTreeView.qll, with only the file-header comments updated to reflect the new path. The test files (parse.ql, regexp.ql, regexp.rb, *.expected) are also copied verbatim from the Ruby test suite as a baseline reference. This commit does NOT compile against C++: it still imports codeql.ruby.AST and references Ruby AST types (RegExpLiteral, StringlikeLiteral, etc.). The adaptation to compile against C++ is in the next commit. Also adds the codeql/regex dependency to cpp/ql/lib/qlpack.yml and the unreleased change-note at cpp/ql/lib/change-notes/2026-07-21-cpp-regex-tree-view.md.