[all-commits] [llvm/llvm-project] 8a0fa4: [lldb] Add --exists flag to `settings set`

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Tue Mar 8 22:59:52 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8a0fa4db39d862b99eb5d440a211c5c0228e13ce
      https://github.com/llvm/llvm-project/commit/8a0fa4db39d862b99eb5d440a211c5c0228e13ce
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2022-03-08 (Tue, 08 Mar 2022)

  Changed paths:
    M lldb/source/Commands/CommandObjectSettings.cpp
    M lldb/source/Commands/Options.td
    M lldb/test/API/commands/settings/TestSettings.py

  Log Message:
  -----------
  [lldb] Add --exists flag to `settings set`

Add a --exists/-e flag to `settings set` that sets the setting if it
exists, but doesn't print an error otherwise. This is useful for example
when setting options in your ~/.lldbinit that might not exist in older
versions of lldb.

Differential revision: https://reviews.llvm.org/D121155




More information about the All-commits mailing list