chromium/chrome/browser/ui/actions/tools/dump_actions.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

// This command-line program dumps the computed values of all actiop IDs to
// stdout.

#include <algorithm>
#include <iomanip>
#include <ios>
#include <iostream>
#include <string>

#include "base/ranges/algorithm.h"
#include "build/build_config.h"
#include "chrome/browser/ui/actions/chrome_action_id.h"
#include "ui/actions/action_id.h"

#define STRINGIZE_ACTION_IDS
#include "ui/actions/action_id_macros.inc"

namespace {
// clang-format off
const char* enum_names[] =;
// clang-format on
}  // namespace

// Note that this second include is not redundant. The second inclusion of the
// .inc file serves to undefine the macros the first inclusion defined.
#include "ui/actions/action_id_macros.inc"

int main(int argc, const char* argv[]) {}