[lldb] Make the g_arguments_data constexpr and fix the static assert
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 12 Jul 2022 17:56:01 +0000 (10:56 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 12 Jul 2022 20:12:36 +0000 (13:12 -0700)
commitb620852d235079e56a4fdf71828bf8e7c66f813f
treeae1afc0997472ad1d9653cfaca44b28427fdf417
parent42ca354cb5b83ec329ca66540ddc29f8d9e0d5ac
[lldb] Make the g_arguments_data constexpr and fix the static assert

This fixes the static assert that's meant to keep the g_arguments_data
table in sync with the CommandArgumentType enumeration. Indeed, the
assert didn't fire even though the current code is missing an entry.
This patches fixes that as well.

Differential revision: https://reviews.llvm.org/D129529
lldb/include/lldb/Interpreter/CommandObject.h
lldb/source/Interpreter/CommandObject.cpp