mirror of
https://github.com/clang-retro/llvm.git
synced 2026-12-06 09:09:34 -08:00
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
This commit is contained in:
1 parent
6824eee942
commit
c1b07d6177
27 files changed
+333
-321
No files matched your search
+4
-1
@@ -39,7 +39,10 @@ public:
|
||||
interpreter, "renderscript scriptgroup breakpoint set",
|
||||
"Place a breakpoint on all kernels forming a script group.",
|
||||
"renderscript scriptgroup breakpoint set <group_name>",
|
||||
eCommandRequiresProcess | eCommandProcessMustBeLaunched) {}
|
||||
eCommandRequiresProcess | eCommandProcessMustBeLaunched) {
|
||||
CommandArgumentData name_arg{eArgTypeName, eArgRepeatPlus};
|
||||
m_arguments.push_back({name_arg});
|
||||
}
|
||||
|
||||
~CommandObjectRenderScriptScriptGroupBreakpointSet() override = default;
|
||||
|
||||
|
||||
Reference in new issue
Block a user