[all-commits] [llvm/llvm-project] ce16c3: [Clang][Docs] Consolidate option hiding in ClangOp...

Justin Bogner via All-commits all-commits at lists.llvm.org
Mon Aug 14 00:00:15 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ce16c3cf30f5e63a395927ede95161393383d636
      https://github.com/llvm/llvm-project/commit/ce16c3cf30f5e63a395927ede95161393383d636
  Author: Justin Bogner <mail at justinbogner.com>
  Date:   2023-08-13 (Sun, 13 Aug 2023)

  Changed paths:
    M clang/utils/TableGen/ClangOptionDocEmitter.cpp

  Log Message:
  -----------
  [Clang][Docs] Consolidate option hiding in ClangOptionDocEmitter

Update the `hasFlag` check to account for an Option's groups to better
match how the option parsing logic works, and instead of checking if a
group has include/exclude flags just check if there are any visible
options in it.

This cleans up some the empty sections that are currently emitted in
clang's option docs.

Differential Revision: https://reviews.llvm.org/D157146




More information about the All-commits mailing list