diff options
| author | Jan Svoboda <jan_svoboda@apple.com> | 2020-12-18 13:55:48 +0100 |
|---|---|---|
| committer | Jan Svoboda <jan_svoboda@apple.com> | 2020-12-21 11:32:47 +0100 |
| commit | 70410a264949101ced3ce3458f37dd4cc2f5af85 (patch) | |
| tree | a556384161d6a76f1244a6ef7294146ef713dd41 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 27b7d646886d499c70dec3481dfc3c82dfc43dd7 (diff) | |
[clang][cli] Let denormalizer decide how to render the option based on the option class
Before this patch, you needed to use `AutoNormalizeEnumJoined` whenever you wanted to **de**normalize joined enum.
Besides the naming confusion, this means the fact the option is joined is specified in two places: in the normalization multiclass and in the `Joined<["-"], ...>` multiclass.
This patch makes this work automatically, taking into account the `OptionClass` of options.
Also, the enum denormalizer now just looks up the spelling of the present enum case in a table and forwards it to the string denormalizer.
I also added more tests that exercise this.
Reviewed By: dexonsmith
Original patch by Daniel Grumberg.
Differential Revision: https://reviews.llvm.org/D84189
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
