[all-commits] [llvm/llvm-project] b62085: [lldb] Make the g_arguments_data constexpr and fix...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Tue Jul 12 13:12:52 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b620852d235079e56a4fdf71828bf8e7c66f813f
      https://github.com/llvm/llvm-project/commit/b620852d235079e56a4fdf71828bf8e7c66f813f
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2022-07-12 (Tue, 12 Jul 2022)

  Changed paths:
    M lldb/include/lldb/Interpreter/CommandObject.h
    M lldb/source/Interpreter/CommandObject.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list