[all-commits] [llvm/llvm-project] ef3fa2: [Formatters][NFCI] Replace 'is_regex' arguments wi...

Jorge Gorbe Moya via All-commits all-commits at lists.llvm.org
Tue Sep 13 13:00:50 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ef3fa232b338fd73475656ed61847295b0beef24
      https://github.com/llvm/llvm-project/commit/ef3fa232b338fd73475656ed61847295b0beef24
  Author: Jorge Gorbe Moya <jgorbe at google.com>
  Date:   2022-09-13 (Tue, 13 Sep 2022)

  Changed paths:
    M lldb/bindings/interface/SBTypeNameSpecifier.i
    M lldb/include/lldb/API/SBTypeNameSpecifier.h
    M lldb/include/lldb/DataFormatters/FormatClasses.h
    M lldb/include/lldb/DataFormatters/FormattersContainer.h
    M lldb/include/lldb/lldb-enumerations.h
    M lldb/source/API/SBTypeNameSpecifier.cpp
    M lldb/source/Core/FormatEntity.cpp

  Log Message:
  -----------
  [Formatters][NFCI] Replace 'is_regex' arguments with an enum.

Modify `SBTypeNameSpecifier` and `lldb_private::TypeMatcher` so they
have an enum value for the type of matching to perform instead of an
`m_is_regex` boolean value.

This change paves the way for introducing formatter matching based on
the result of a python callback in addition to the existing name-based
matching. See the RFC thread at
https://discourse.llvm.org/t/rfc-python-callback-for-data-formatters-type-matching/64204
for more details.

Differential Revision: https://reviews.llvm.org/D133240




More information about the All-commits mailing list