Skip to content

Cherrypick "default" and "changed" flags for settings set#12934

Open
JDevlieghere wants to merge 4 commits intoswiftlang:swift/release/6.4.xfrom
JDevlieghere:cherrypick-settings-commits
Open

Cherrypick "default" and "changed" flags for settings set#12934
JDevlieghere wants to merge 4 commits intoswiftlang:swift/release/6.4.xfrom
JDevlieghere:cherrypick-settings-commits

Conversation

kastiglione and others added 4 commits May 8, 2026 09:17
…3233)

Adds a `--defaults`/`-d` flag to `settings show`. This mode will _optionally_ show a
setting's default value. In other words, this does not always print a default value for
every setting.

A default value is not shown when the current value _is_ the default.

Note: some setting types do not print empty or invalid values. For these setting types,
if the default value is empty or invalid, the same elision logic is applied to printing
the default value.

(cherry picked from commit 545cda6)
Fixes a few test failures on windows. See
llvm#153233

(cherry picked from commit d4b9aca)
Add a `--changed`/`-c` flag to `settings show` that restricts the output
to settings whose current value differs from the default. This makes it
easy to inspect what has been customized in a session or config without
scrolling through the full property tree.

One thing worth calling out is that this works as expected with explicit
property paths, for example you can show only the modified settings
belonging to `target`:

```
(lldb) set show -c target
target.load-script-from-symbol-file (enum) = true (default: trusted)
(lldb)
```

If nothing has been changed, the output is empty:

```
(lldb) sett show -c target.process
(lldb)
```

rdar://176483441
(cherry picked from commit 180409d)
@JDevlieghere JDevlieghere requested a review from adrian-prantl May 8, 2026 16:28
@JDevlieghere JDevlieghere requested a review from a team as a code owner May 8, 2026 16:28
@JDevlieghere JDevlieghere requested a review from kastiglione May 8, 2026 16:28
@JDevlieghere
Copy link
Copy Markdown
Author

@swift-ci test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants