From e4305fbf17022ddfd341a9b09ed1c17a6cca0894 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Jul 2026 12:28:03 +0000 Subject: [PATCH] Commit 9: Remove leftover Ruby scratch corpus regexp.rb cpp/ql/test/library-tests/regex/regexp.rb was the commit-1 verbatim Ruby reference and has been fully replaced by test.cpp. Nothing in the C++ regex tests references it. Deletion has no effect on .expected. Bundle: github/codeql-action codeql-bundle-v2.26.1 (CodeQL CLI 2.26.1). --- cpp/ql/test/library-tests/regex/regexp.rb | 82 ----------------------- 1 file changed, 82 deletions(-) delete mode 100644 cpp/ql/test/library-tests/regex/regexp.rb diff --git a/cpp/ql/test/library-tests/regex/regexp.rb b/cpp/ql/test/library-tests/regex/regexp.rb deleted file mode 100644 index a68c4878094..00000000000 --- a/cpp/ql/test/library-tests/regex/regexp.rb +++ /dev/null @@ -1,82 +0,0 @@ -# Empty -// - -# Basic sequence -/abc/ - -# Repetition -/a*b+c?d/ -/a{4,8}/ -/a{,8}/ -/a{3,}/ -/a{7}/ - -# Alternation -/foo|bar/ - -# Character classes -/[abc]/ -/[a-fA-F0-9_]/ -/\A[+-]?\d+/ -/[\w]+/ -/\[\][123]/ -/[^A-Z]/ -/[]]/ # MRI gives a warning, but accepts this as matching ']' -/[^]]/ # MRI gives a warning, but accepts this as matching anything except ']' -/[^-]/ -/[|]/ - -# Nested character classes -/[[a-f]A-F]/ # BAD - not parsed correctly - -# Meta-character classes -/.*/ -/.*/m -/\w+\W/ -/\s\S/ -/\d\D/ -/\h\H/ -/\n\r\t/ - -# Anchors -/\Gabc/ -/\b!a\B/ - -# Groups -/(foo)*bar/ -/fo(o|b)ar/ -/(a|b|cd)e/ -/(?::+)\w/ # Non-capturing group matching colons - -# Named groups -/(?\w+)/ -/(?'foo'fo+)/ - -# Backreferences -/(a+)b+\1/ -/(?q+)\s+\k+/ - -# Named character properties using the p-style syntax -/\p{Word}*/ -/\P{Digit}+/ -/\p{^Alnum}{2,3}/ -/[a-f\p{Digit}]+/ # Also valid inside character classes - -# Two separate character classes, each containing a single POSIX bracket expression -/[[:alpha:]][[:digit:]]/ - -# A single character class containing two POSIX bracket expressions -/[[:alpha:][:digit:]]/ - -# A single character class containing two ranges and one POSIX bracket expression -/[A-F[:digit:]a-f]/ - -# *Not* a POSIX bracket expression; just a regular character class. -/[:digit:]/ - -# Simple constant interpolation -A = "a" -/#{A}bc/ - -# unicode -/\u{9879}/ \ No newline at end of file