[PATCH] D157146: [Clang][Docs] Consolidate option hiding in ClangOptionDocEmitter

Justin Bogner via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 4 15:22:14 PDT 2023


bogner created this revision.
bogner added a reviewer: MaskRay.
Herald added a subscriber: mcrosier.
Herald added a project: All.
bogner requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D157146

Files:
  clang/utils/TableGen/ClangOptionDocEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157146.547371.patch
Type: text/x-patch
Size: 4965 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230804/01464b41/attachment.bin>


More information about the cfe-commits mailing list