llvm-project/lldb/source
Jim Ingham c1b07d6177 Have CommandObjectParsed check for "commands that take no arguments".
This is currently being done in an ad hoc way, and so for some
commands it isn't being checked.  We have the info to make this check,
since commands are supposed to add their arguments to the m_arguments
field of the CommandObject.  This change uses that info to check whether
the command received arguments in error.

A handful of commands weren't defining their argument types, I also had
to fix them.  And a bunch of commands were checking for arguments by
hand, so I removed those checks in favor of the CommandObject one.  That
also meant I had to change some tests that were checking for the ad hoc
error outputs.

Differential Revision: https://reviews.llvm.org/D128453
2022-06-27 15:14:41 -07:00
..
API Have CommandObjectParsed check for "commands that take no arguments". 2022-06-27 15:14:41 -07:00
Breakpoint [lld] Don't use Optional::hasValue (NFC) 2022-06-26 19:29:40 -07:00
Commands Have CommandObjectParsed check for "commands that take no arguments". 2022-06-27 15:14:41 -07:00
Core [lld] Don't use Optional::hasValue (NFC) 2022-06-26 19:29:40 -07:00
DataFormatters [lldb] Add setting for max depth of value object printing (NFC) 2022-05-03 10:39:42 -07:00
Expression Support expressions in the context of a reference 2022-06-21 14:30:07 +02:00
Host [lldb] Add a log dump command 2022-06-27 10:02:34 -07:00
Initialization [lldb] Remove FileSystem::Initialize from FileCollector 2022-03-03 13:22:38 -08:00
Interpreter Have CommandObjectParsed check for "commands that take no arguments". 2022-06-27 15:14:41 -07:00
Plugins Have CommandObjectParsed check for "commands that take no arguments". 2022-06-27 15:14:41 -07:00
Symbol [lldb] Replace Host::SystemLog with Debugger::Report{Error,Warning} 2022-06-24 09:46:26 -07:00
Target [lld] Don't use Optional::hasValue (NFC) 2022-06-26 19:29:40 -07:00
Utility [lldb] Add a log dump command 2022-06-27 10:02:34 -07:00
Version
CMakeLists.txt