[all-commits] [llvm/llvm-project] c5cf4f: [clang][doc] Don't escape _ in .rst files. (#65277)

Mark de Wever via All-commits all-commits at lists.llvm.org
Tue Sep 5 08:54:59 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c5cf4f7e4f76abbee0cceaacb708d56b0dcb750d
      https://github.com/llvm/llvm-project/commit/c5cf4f7e4f76abbee0cceaacb708d56b0dcb750d
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2023-09-05 (Tue, 05 Sep 2023)

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

  Log Message:
  -----------
  [clang][doc] Don't escape _ in .rst files. (#65277)

The current generated ClangCommandLineReference.rst unconditionally
escapes underscores. This leads odd output on the website
https://clang.llvm.org/docs/ClangCommandLineReference.html

For example

   -fchar8\_t, -fno-char8\_t

Whether an underscore should be escaped depends on the state. Currently
the escape routine doesn't keep track of the state and currently
underscores are not used in places where they need to be escaped.
Therefore remove the underscore from the list of escaped characters.




More information about the All-commits mailing list