llvm-project/lldb/source/Interpreter
Med Ismail Bennani c16fef19f6 [lldb/Interpreter] Make OptionGroupPythonClassWithDict options non-required
When using `OptionGroupPythonClassWithDict` options in an `OptionGroup`
with other `Options`, it can happen that the combinaison of some options
of each group makes the command invalid.

To solve that issue, this patch adds a bitmask argument to the
`OptionGroupPythonClassWithDict` constuctor that is used to mark each
option as required (or not).

If the `required_options` bitmask isn't passed to the constructor, the
class will keep its default behaviour, making the `--script-class` and
`--python-function` required.

rdar://65508855

Differential Revision: https://reviews.llvm.org/D97910

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
2021-03-04 20:24:26 +01:00
..
CMakeLists.txt [lldb] Move ScriptCommand and RegexCommand under Commands (NFC) 2020-09-01 17:33:39 -07:00
CommandAlias.cpp [lldb/Interpreter][NFC] Remove explicit default initialization of members and base classes 2021-02-28 19:23:18 +03:00
CommandHistory.cpp [lldb/Interpreter][NFC] Replace default constructors/destructors bodies with "=default" 2021-02-28 19:23:16 +03:00
CommandInterpreter.cpp [lldb/Interpreter][NFC] Remove explicit default initialization of members and base classes 2021-02-28 19:23:18 +03:00
CommandObject.cpp [lldb/Interpreter][NFC] Remove explicit default initialization of members and base classes 2021-02-28 19:23:18 +03:00
CommandOptionValidators.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
CommandReturnObject.cpp [lldb/Interpreter][NFC] Replace default constructors/destructors bodies with "=default" 2021-02-28 19:23:16 +03:00
InterpreterProperties.td [lldb/interpreter] Add ability to save lldb session to a file 2020-07-22 11:43:16 +02:00
OptionArgParser.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
OptionGroupArchitecture.cpp [lldb/Interpreter][NFC] Replace default constructors/destructors bodies with "=default" 2021-02-28 19:23:16 +03:00
OptionGroupBoolean.cpp [lldb/Interpreter][NFC] Replace default constructors/destructors bodies with "=default" 2021-02-28 19:23:16 +03:00
OptionGroupFile.cpp [lldb/Interpreter][NFC] Remove explicit default initialization of members and base classes 2021-02-28 19:23:18 +03:00
OptionGroupFormat.cpp [lldb/Interpreter][NFC] Replace default constructors/destructors bodies with "=default" 2021-02-28 19:23:16 +03:00
OptionGroupOutputFile.cpp [lldb/Interpreter][NFC] Remove explicit default initialization of members and base classes 2021-02-28 19:23:18 +03:00
OptionGroupPlatform.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
OptionGroupPythonClassWithDict.cpp [lldb/Interpreter] Make OptionGroupPythonClassWithDict options non-required 2021-03-04 20:24:26 +01:00
OptionGroupString.cpp [lldb/Interpreter][NFC] Replace default constructors/destructors bodies with "=default" 2021-02-28 19:23:16 +03:00
OptionGroupUInt64.cpp [lldb/Interpreter][NFC] Replace default constructors/destructors bodies with "=default" 2021-02-28 19:23:16 +03:00
OptionGroupUUID.cpp [lldb/Interpreter][NFC] Replace default constructors/destructors bodies with "=default" 2021-02-28 19:23:16 +03:00
OptionGroupValueObjectDisplay.cpp [lldb/Interpreter][NFC] Replace default constructors/destructors bodies with "=default" 2021-02-28 19:23:16 +03:00
OptionGroupVariable.cpp [lldb/Interpreter][NFC] Remove explicit default initialization of members and base classes 2021-02-28 19:23:18 +03:00
OptionGroupWatchpoint.cpp [lldb/Interpreter][NFC] Replace default constructors/destructors bodies with "=default" 2021-02-28 19:23:16 +03:00
OptionValue.cpp Fix a warning about named return value not being moved-from. 2021-03-01 09:25:26 -08:00
OptionValueArch.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueArgs.cpp [lldb][NFC] Make OptionValueArgs::GetArgs constant 2021-02-28 19:23:20 +03:00
OptionValueArray.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueBoolean.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueChar.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueDictionary.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueEnumeration.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueFileColonLine.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueFileSpec.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueFileSpecList.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueFormat.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueFormatEntity.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueLanguage.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValuePathMappings.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueProperties.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueRegex.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueSInt64.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueString.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueUInt64.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
OptionValueUUID.cpp [lldb/Interpreter] Fix deep copying for OptionValue classes 2021-02-28 19:23:25 +03:00
Options.cpp [lldb/Interpreter][NFC] Remove explicit default initialization of members and base classes 2021-02-28 19:23:18 +03:00
Property.cpp [lldb/Interpreter][NFC] Remove explicit default initialization of members and base classes 2021-02-28 19:23:18 +03:00
ScriptInterpreter.cpp [lldb] Revert ScriptedProcess patches 2021-03-01 23:23:27 +00:00
embedded_interpreter.py [lldb/Python] Fix the infinitely looping Python prompt bug 2020-06-16 11:05:19 -07:00