[all-commits] [llvm/llvm-project] d1c238: [llvm-cov] Migrate gcov to OptTable (#224955)

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Sep 24 10:28:15 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d1c2388b476953feb646d8de5ee291ff988b9a07
      https://github.com/llvm/llvm-project/commit/d1c2388b476953feb646d8de5ee291ff988b9a07
  Author: Fangrui Song <i at maskray.me>
  Date:   2026-09-24 (Thu, 24 Sep 2026)

  Changed paths:
    M llvm/docs/CommandGuide/llvm-cov.md
    M llvm/tools/llvm-cov/CMakeLists.txt
    A llvm/tools/llvm-cov/GcovOpts.td
    M llvm/tools/llvm-cov/gcov.cpp
    M llvm/utils/gn/secondary/llvm/tools/llvm-cov/BUILD.gn
    M utils/bazel/llvm-project-overlay/llvm/BUILD.bazel

  Log Message:
  -----------
  [llvm-cov] Migrate gcov to OptTable (#224955)

llvm-cov gcov is the last user of cl::Grouping. Parse its options with
an OptTable that enables grouped short options, as the other
binutils-style tools do, so that cl::Grouping can be removed.

Spellings follow the other migrated tools: long options take `--` only,
so `-gcno` and `-gcda=` become `--gcno` and `--gcda=`. `--help` now
lists only gcov's options rather than every cl:: option linked into
llvm-cov, and an unknown option or a missing source file is reported
as `llvm-cov gcov: error: ...`.

LLM-aided



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list