[PATCH] D113425: gcc extension # NNN directive lines

Aaron Puchert via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 9 18:02:07 PST 2021


aaronpuchert added inline comments.


================
Comment at: clang/docs/LanguageExtensions.rst:4058
+
+* ``1`:` Push the current source file name onto the include stack and
+  enter a new file.
----------------
urnathan wrote:
> aaronpuchert wrote:
> > Produces
> > 
> > ```
> > /home/buildbot/llvm-build-dir/clang-sphinx-docs/llvm/build/tools/clang/docs/LanguageExtensions.rst:4059:Inline literal start-string without end-string.
> > ```
> > 
> > I guess the problem is that the characters are swapped.
> I've pushed the obvious fix, but how did I not see this in my local build?  I thought I was building docs -- is there some target I need to name?
I think docs aren't built by default, you might need `-DLLVM_ENABLE_SPHINX:BOOL=ON -DLLVM_BUILD_DOCS:BOOL=ON` on the CMake command line. Then the target should be `docs-clang-html`.

Of course you'll need to have Sphinx installed.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113425/new/

https://reviews.llvm.org/D113425



More information about the cfe-commits mailing list