[lldb][Format] Fall back to old function.name-with-args if language frame format is emtpy#148235
Conversation
…ame format is emtpy
There is currently no way to prevent `${function.name-with-args}` from
using the `plugin.cplusplus.display.function-name-format` setting. Even if the
setting is set to an empty string. As a way to disable formatting by
language plugin, this patch makes it so `plugin.cplusplus.display.function-name-format`
falls back to the old way of printing `${function.name-with-args}`. Even
if we didn't want to add a fallback, making the setting an empty string
shouldn't really "succeed".
|
@llvm/pr-subscribers-lldb Author: Michael Buch (Michael137) ChangesThere is currently no way to prevent Full diff: https://github.com/llvm/llvm-project/pull/148235.diff 2 Files Affected:
|
|
Is it a reasonable use case to want to not print anything? If not, then I think this is a valid way of deactivating the plugin formatting. |
There are better ways of not printing a function name in the frame. E.g., overriding the |
…rame format is emtpy
There is currently no way to prevent `${function.name-with-args}` from using the `plugin.cplusplus.display.function-name-format` setting. Even if the setting is set to an empty string. As a way to disable formatting by language plugin, this patch makes it so `plugin.cplusplus.display.function-name-format` falls back to the old way of printing `${function.name-with-args}`. Even if we didn't want to add a fallback, making the setting an empty string shouldn't really "succeed".
Cherry-picked from llvm#148235
There is currently no way to prevent
${function.name-with-args}from using theplugin.cplusplus.display.function-name-formatsetting. Even if the setting is set to an empty string. As a way to disable formatting by language plugin, this patch makes it soplugin.cplusplus.display.function-name-formatfalls back to the old way of printing${function.name-with-args}. Even if we didn't want to add a fallback, making the setting an empty string shouldn't really "succeed".