[all-commits] [llvm/llvm-project] 396e94: [Flang] Generate documentation for compiler flags

DylanFleming-arm via All-commits all-commits at lists.llvm.org
Thu Jul 21 04:34:05 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 396e944d82f3e212746cd241e4caba445523aff6
      https://github.com/llvm/llvm-project/commit/396e944d82f3e212746cd241e4caba445523aff6
  Author: Dylan Fleming <Dylan.Fleming at arm.com>
  Date:   2022-07-21 (Thu, 21 Jul 2022)

  Changed paths:
    M clang/utils/TableGen/ClangOptionDocEmitter.cpp
    M flang/docs/CMakeLists.txt
    M flang/docs/index.md
    A flang/include/flang/FlangOptionsDocs.td

  Log Message:
  -----------
  [Flang] Generate documentation for compiler flags

This patch aims to create a webpage to document
Flang's command line options on https://flang.llvm.org/docs/
in a similar way to Clang's
https://clang.llvm.org/docs/ClangCommandLineReference.html

This is done by using clang_tablegen to generate an .rst
file from Options.td (which is current shared with Clang)
For this to work, ClangOptionDocEmitter.cpp was updated
to allow specific Flang flags to be included,
rather than bulk excluding clang flags.

Reviewed By: awarzynski

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




More information about the All-commits mailing list