[all-commits] [llvm/llvm-project] 767dcc: [llvm][Support] fix convertToSnakeFromCamelCase (#...

Maksim Levental via All-commits all-commits at lists.llvm.org
Fri Oct 6 14:33:26 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 767dcc5f77b61a3363f7836661cc208a5bfd1c9c
      https://github.com/llvm/llvm-project/commit/767dcc5f77b61a3363f7836661cc208a5bfd1c9c
  Author: Maksim Levental <maksim.levental at gmail.com>
  Date:   2023-10-06 (Fri, 06 Oct 2023)

  Changed paths:
    M llvm/lib/Support/StringExtras.cpp
    M llvm/unittests/ADT/StringExtrasTest.cpp

  Log Message:
  -----------
  [llvm][Support] fix convertToSnakeFromCamelCase (#68375)

Currently runs of caps aren't handled correctly so e.g. something like
`Intel_OCL_BI` is snake cased to `intel_o_c_l_b_i` (previously discussed
on this [phabricator
patch](https://reviews.llvm.org/rG92233062c17590d3157bdc6db430fcdfc54312fe)).




More information about the All-commits mailing list