[all-commits] [llvm/llvm-project] 2c3724: [lldb][Language] Add Language::GetDisplayNameForLa...

Michael Buch via All-commits all-commits at lists.llvm.org
Fri Oct 3 15:23:30 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2c3724419c04c3b6d918eb4c2eec00a4372d2937
      https://github.com/llvm/llvm-project/commit/2c3724419c04c3b6d918eb4c2eec00a4372d2937
  Author: Michael Buch <michaelbuch12 at gmail.com>
  Date:   2025-10-03 (Fri, 03 Oct 2025)

  Changed paths:
    M lldb/include/lldb/Target/Language.h
    M lldb/source/Target/Language.cpp

  Log Message:
  -----------
  [lldb][Language] Add Language::GetDisplayNameForLanguageType API (#161803)

The intention for this API is to be used when presenting language names
to the user, e.g., in expression evaluation diagnostics or LLDB errors.

Most uses of `GetNameForLanguageType` can be probably replaced with
`GetDisplayNameForLanguageType`, but that's out of scope of this PR.

This uses `llvm::dwarf::LanguageDescription` under the hood, so we would
lose the version numbers in the names. If we deem those to be important,
we could switch to an implementation that hardcodes a list of
user-friendly names with version numbers included.

The intention is to use it from
https://github.com/llvm/llvm-project/pull/161688

Depends on https://github.com/llvm/llvm-project/pull/161804



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list