[all-commits] [llvm/llvm-project] 28b7e2: [Support] Add `\g<ref>` backreferences in Regex::s...

Igor Kudrin via All-commits all-commits at lists.llvm.org
Wed Oct 11 10:25:00 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 28b7e281d4eaea0d5d56b1a4cf7a550be746a007
      https://github.com/llvm/llvm-project/commit/28b7e281d4eaea0d5d56b1a4cf7a550be746a007
  Author: Igor Kudrin <ikudrin at accesssoftek.com>
  Date:   2023-10-12 (Thu, 12 Oct 2023)

  Changed paths:
    M llvm/include/llvm/Support/Regex.h
    M llvm/lib/Support/Regex.cpp
    M llvm/unittests/Support/RegexTest.cpp

  Log Message:
  -----------
  [Support] Add `\g<ref>` backreferences in Regex::sub() (#67220)

The existing format of backreferences, `\<ref>`, does not allow digits
to be placed directly after the reference because they are included in
the reference number. The new format solves this problem by adding
explicit delimiters.




More information about the All-commits mailing list